<?php session_start(); require "classes.php"; require "conf/globals.php"; require "conf/passwd.php"; require "conf/modules.php"; $timer = new CTimer(); $timer->start(); $MDL = new CModules(); $ERR = new CErrors(); $PDIV = new CPageDivider(10); $FLTR = new CFiltration(); require "config.php"; //reading all configs for all modules $list = read_dir_ext($GV["modules_conf_dir"], $GV["module_ext"]); foreach ($list as $lst) { require $GV["modules_conf_dir"] . "/{$lst}"; } define("SK_DIR", $GV["skin_dir"]); //AUTHORIZATION: if (!isset($p)) { switch ($act) { case "noskin": $p = $page; $act = $noskinact; $GLOBALS['act'] = $noskinact; $GLOBALS['p'] = $page; $_GET['act'] = $noskinact; $_GET['p'] = $page; //Authenticate current user
function GetModulesList() { global $GV; $list = read_dir_ext($GV["modules_dir"], $GV["module_ext"]); for ($i = 0; $i < count($list); ++$i) { $list[$i] = get_file_name($list[$i]); } return $list; }