require_once("config.php"); require("tools.php"); if (page_check($_GET['page'])) { $error = "Access denied!"; } else { parse_info(); if (!$ADAS_FSMODE) { parse_config(); } if ($_GET['page']) { $page = $_GET['page']; } else { $page = 'about.php'; } if (preg_match("/^(monitor|adjustconfig|adjustconfigdb)(\.php)?$/", $page)) { $page_new = 1; } else { $page_new = 0; } if (preg_match("/(rtdata|adjustconfig|control|^usb|upload|uploaddb|stop|start|restart|reset|shutdown|reboot|ntprestart|clean|setmode)/", $page)) { authenticate(); } if ($page_new) { include($page); } } if (preg_match("/\.xml$/", $page)) { if (stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml+xml")) { header("Content-Type: application/xhtml+xml; charset=KOI8-R"); } else { header("Content-type: text/xml"); } } else { if (stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml+xml")) { header("Content-Type: application/xhtml+xml; charset=KOI8-R"); } else { header("Content-type: text/html"); } } if (!$error) { if (($page_new)&&(function_exists("page_headers"))) { page_headers(); } } ?> "; } else {?> }?>
| }?> | if ($error) echo $error; else { if ($page_new) { if (function_exists("page_body")) { page_body(); } } else include($page); } ?> |