private final function buildContent() { foreach ($this->aTemplateTree as $temp) { self::setHead($temp); self::setContent($temp); } /// css lib files /// $aCss = explode(",", $this->sCssLib); foreach ($aCss as $css) { cBuildIndex::addCssToHead("pages/tpl/css/lib/" . trim($css) . ".css"); } foreach ($this->aHeadCssTemps as $temp) { cBuildIndex::addCssToHead("pages/tpl/css/" . $temp . ".css"); } /// javascript lib files /// $aJs = explode(",", $this->sJsLib); foreach ($aJs as $js) { cBuildIndex::addJsToHead("pages/tpl/js/lib/" . trim($js) . ".js"); } foreach ($this->aHeadJsTemps as $temp) { cBuildIndex::addJsToHead("pages/tpl/js/" . $temp . ".js"); } /// vars of this page are not set /// if (!isset($this->aContent[$this->getName()])) { $oVar = new stdClass(); $this->aContent[$this->getName()] = array("oVars" => $oVar, "content" => ""); } else { $oVar = $this->aContent[$this->getName()]['oVars']; } foreach (self::getFinalVars() as $name => $val) { eval("\$oVar->" . $name . " = \$val;"); } $this->aContent[$this->getName()]['oVars'] = $oVar; }
if ($connection) { $CFG = new cCfg(); if (!isset($_GET['_pageAction_'])) { if (is_string($CFG->getDefaultPage('path'))) { header("Location: " . $CFG->getDefaultPage('path')); } else { if (!ADMIN_PAGE_ACCESS_AUTHORIZIED) { header("Location: " . HTTP_PATH . "admin"); } } } $action = get_magic_quotes_gpc() ? $_GET['_pageAction_'] : addslashes($_GET['_pageAction_']); //$Logs->addLog($action,"_pageAction_"); $CORE = new cBuildIndex($action); if (MK_DEBUG) { $CORE->addCssToHead("core/logs.css"); } $Authent = new cAuthentication(); $Authent->authenticate(); /// user authenticated /// if ($CFG->isAuthenticated()) { $Logs->addLog("user authenticated", "authentication process"); $CFG->setUserAccount(); } $CORE->buildPage(); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <?php