require("common.php"); $filename = REQ_REL_DIR . REQ_FILE; $php_file = REQ_REL_DIR . REQ_FILENAME . ".php"; if (file_exists($filename)) { sendFile($filename); } else if (file_exists($php_file)) { $tpl->loadTemplate(); $NOT_FOR_MAIN_INCLUDE = false; if (!REQ_REL_DIR && REQ_FILENAME == "index") require("_index_.php"); else if (!REQ_REL_DIR && $REQ_FILENAME == "_index_") endWithNotFound(); else require($php_file); if ($NOT_FOR_MAIN_INCLUDE) endWithNotFound(); $tpl->show(); } // if (file_exists($php_file)) else if (!processDirModules()) endWithNotFound(); cache_saveAndPrint(); ?>