$value) $settings[strtolower($key)] = $value; $this->systemSettings = $settings; include(ROOTPATH . 'resources/settings_countries.php'); $this->systemSettings['countries'] = $settings_countries; // input controller include ROOTPATH . 'functions/class.input.php'; $this->input = new inputcontrol; $this->input->initiate(); // connect to database $this->db = $database; // macros $this->macros = parse_ini_file_quotes_safe("templates/macros.ini"); foreach($this->macros as $key=>$value) $this->macros[$key] = translateBlurb($value); $GLOBALS['macros'] = $this->macros; // language $this->language = $language; // access controller include ROOTPATH . 'functions/class.accesscontrol.php'; $this->access = new accessControl; $this->access->db = &$this->db; $this->access->language = &$this->language; $this->access->control(); $this->user = $this->access->user; // page details include ROOTPATH . 'functions/class.pagedetails.php'; $this->pageDetails = new pagedetails; $this->pageDetails->db = &$this->db; $this->pageDetails->macros = &$this->macros; $this->pageDetails->systemSettings = &$this->systemSettings; $this->pageDetails->buildAdminTabMenu($this->access->user['accesslevel']); // posts handler include ROOTPATH . 'functions/class.posts.php'; $this->posts = new posthandler(); $this->posts->db = &$this->db; $this->posts->user = &$this->user; $this->posts->access = &$this->access; $this->posts->macros = &$this->macros; // load in display... thing... include ROOTPATH . 'ccc-adminpanel/functions/class.display.php'; $this->display = new display; $this->display->user = $this->user; $this->display->content = &$this->content; $this->display->pageDetails = &$this->pageDetails; } /* * Backwards compatibility... */ function displayInfoBar($message=false,$type=false) { $this->display->displayInfoBar($message,$type); } /** * Displays our template * * @param string $tplfile */ function display($tplfile='wrapper.html') { $this->display->output($tplfile); } }