Actually, it is. You can run PHP inside of the templates. To do so, replace the open and close PHP tags:

Code:
<?php
and

Code:
?>
With:

Code:
{php}
and

Code:
{/php}