Exemple #1
0
$C_auth = new CORE_auth($force);
$smarty = new Smarty();
$C_list = new CORE_list();
$C_block = new CORE_block();
for ($i = 0; $i < count(@$_SERVER["argv"]); $i++) {
    if (@$_SERVER["argv"][$i] == "_task=1") {
        $VAR['_task'] = 1;
    }
}
if (isset($VAR['_task'])) {
    require_once PATH_MODULES . 'task/task.inc.php';
    $task = new task();
    $task->run_all();
    exit;
}
$C_method->do_all();
if (isset($C_auth2) && $C_auth2 != false && defined("FORCE_SESS_ACCOUNT")) {
    $smarty->assign("SESS_LOGGED", FORCE_SESS_LOGGED);
    $smarty->assign("SESS_ACCOUNT", FORCE_SESS_ACCOUNT);
} else {
    $smarty->assign("SESS_LOGGED", SESS_LOGGED);
    $smarty->assign("SESS_ACCOUNT", SESS_ACCOUNT);
}
$smarty->assign_by_ref("method", $C_method);
$smarty->assign_by_ref("list", $C_list);
$smarty->assign_by_ref("block", $C_block);
$smarty->assign_by_ref("alert", $C_debug->alert);
$smarty->assign("VAR", $VAR);
$smarty->assign("SESS", SESS);
$smarty->assign("SSL_URL", SSL_URL);
$smarty->assign("URL", URL);