<?php
if(!empty($HTTP_GET_VARS)) {
foreach($HTTP_GET_VARS as $k => $value) {
${$k} = $value;
}
}
if(!empty($HTTP_POST_VARS)) {
foreach($HTTP_POST_VARS as $k => $value) {
${$k} = $value;
}
}
if(!empty($HTTP_SESSION_VARS)) {
foreach($HTTP_SESSION_VARS as $k => $value) {
${$k} = $value;
}
}
if(!empty($_GET)) {
foreach($_GET as $k => $value) {
${$k} = $value;
}
}
if(!empty($_POST)) {
foreach($_POST as $k => $value) {
${$k} = $value;
}
}
@session_start();
$rel = "../../";
require_once("../../root.inc");
include_once($rel.$cbDirInclude."config.ini");
include_once($rel.$cbDirLib."CB_option.class.php" );
include_once($rel.$cbDirLib."smarty/Smarty.class.php" );
$templateDir = $rel."templates/default/";
$tpl = new Smarty;
$tpl->template_dir = "templates/";
$tpl->compile_dir = $templateDir."compiled/";
$tpl->assign("SID", SID);
$tpl->assign("TEMPLATE_DIR", "templates/");
$tpl->assign("PHP_SELF", $PHP_SELF);
?>