assign('alerts', show_alerts()); $smarty->display("header.tpl"); $smarty->display("menu.tpl"); $smarty->display($body_tpl); // FOOTER if ($display_footer) { include_once("$modules_directory/footer.php"); if ($cnf['layout'] === 'new_layout' && DOMAIN === 'sadpol') { $smarty->display("footer_green.tpl"); } else { $smarty->display("footer.tpl"); } } //file_put_contents('a.log', date('Y-m-d H:i:s').' '.$_SERVER['REDIRECT_STATUS'].' '.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'].' '.$_SERVER['SERVER_ADDR'].' '.$_SERVER['HTTP_USER_AGENT'].PHP_EOL, FILE_APPEND); ob_flush();