Example #1
0
<?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
Example #2
0
 /**
  * is called when profiler is destroyed
  */
 public function __destruct()
 {
     parent::__destruct();
 }