Viewing file: config.php (1.04 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<? $sm = new Smarty(); $sm->template_dir = "user/templates/"; $sm->compile_dir = "tmp/_compile_user/"; $sm->cache_dir = "tmp/_cache_user/";
function Window($value, $type) { global $sm; $sm->assign('type', $type); $sm->assign('value', $value); return $sm->fetch("panel.tpl"); }
if (isset($_POST['screen_width'])) { $_SESSION['screen_width'] = $_POST['screen_width']; $_SESSION['screen_height'] = $_POST['screen_height']; } if (GetParam("MainPageType") == 'page') { $mod = new Pages(); $arr = $_GET; $_GET['mod'] = 'Pages'; $_GET['page_id'] = GetParam("MainPageValue"); $res = $mod->User(); $_GET = $arr; $AMCMS_PageHtml = Window($res, 'page'); $AMCMS_Config["MainPageTitle"] = GetParam("MainPageTitle"); } $AMCMS_Config["PageTitle"] = GetParam("SiteName", $ulang); $AMCMS_Config["date"] = GetUsefulDate(GetCurrentDateAndTime(), true, false); $AMCMS_Config["time"] = GetCurrentHours().":".GetCurrentMinutes(); $AMCMS_Config["day"] = $ULANG['Day'.GetCurrentDayOfWeek()]; ?>
|