//ищем
if (isset($_SESSION["log"]) && !strcmp($_SESSION["log"], ADMIN_LOGIN))
echo "<br><center><a href=\"admin.php\"><font color=red>".ADMINISTRATE_LINK."</font></a></center><p>";
//заменяем на
$smarty->assign( "adminka",isset($_SESSION["log"]) && !strcmp($_SESSION["log"], ADMIN_LOGIN));