View file includes/tail.php
<?php // by Mike O. (mides), coolcms.org if ($_SERVER['PHP_SELF'] !== '/index.php') { echo '<div class="navig"><a href="'.HTTPHOME.'"><img src="'.HTTPHOME.'/images/home.png"> Главная</a></div>'; $main = ''; } else { $main = '_index'; } include_once FLEVEL.'local/main/tail'.$main.'.tpl'; echo '</body>'; echo '</html>'; ?>