die; } $db->set_charset(DB_CHARSET); /** */ spl_autoload_register(function ($cn) { $type = strstr($cn, '\\', true); if ($type == 'plugin') { $cn = str_replace('\\', '/', $cn); include DIR . '/' . UPDIR . '/' . substr($cn, strpos($cn, '/') + 1) . '.php'; } else { include DIR . '/' . IDIR . '/' . str_replace('\\', '/', $cn) . '.php'; } }); /** */ $load = new \main\load(); $LANG = $load->get_ap_language(); include 'includes/functions.php'; if ($GLOBALS['me'] && $GLOBALS['me']->is_subadmin) { include 'includes/template.php'; include 'etc/connector.php'; include 'includes/admin.php'; include 'includes/query.php'; include 'includes/widgets.php'; include 'includes/importer.php'; // this it's not mandatory, but good to clear informations in real time actions::cleardata(true, \query\main::get_option('delete_old_coupons')); if (isset($_GET['ajax']) && file_exists('ajax/' . $_GET['ajax'])) { include 'ajax/' . $_GET['ajax']; die; } else { if (isset($_GET['download']) && file_exists('etc/download/' . $_GET['download'])) {