Пример #1
0
<?php

session_name('nessquik');
session_start();
// Used for including files
if (!defined("_ABSPATH")) {
    define("_ABSPATH", dirname(dirname(__FILE__)));
}
require_once _ABSPATH . '/confs/config-inc.php';
require_once _ABSPATH . '/lib/Smarty.php';
require_once _ABSPATH . '/lib/functions.php';
require_once _ABSPATH . '/lib/Help.php';
$db = nessquikDB::getInstance();
$sa = resultsDB::getInstance();
$_hlp = Help::getInstance();
$tpl = SmartyTemplate::getInstance();
$tpl->template_dir = _ABSPATH . '/templates/';
$tpl->compile_dir = _ABSPATH . '/templates_c/';
if ($_POST) {
    $action = import_var('action', 'P');
} else {
    $action = import_var('action', 'G');
    switch ($action) {
        case "make_report":
            continue;
        default:
            exit;
    }
}
switch ($action) {
    case "show_help_categories":