Ejemplo n.º 1
0
                $GET['id'] = $v;
                break;
            case 'user':
                $GET['loc'] = 'user';
                $GET['id'] = $v;
                break;
                // This will read a page from themes location
            // This will read a page from themes location
            case 'tpage':
                $GET['loc'] = 'tpage';
                $GET['id'] = $v;
                break;
            case 'ajax':
                $GET['loc'] = 'ajax';
                $GET['id'] = $v;
                break;
            case 'cron':
                $GET['loc'] = 'cron';
                $GET['id'] = $v;
                break;
            case 'plugin':
                $GET['loc'] = 'plugin';
                $GET['id'] = $v;
                break;
        }
    }
}
$load = new \main\load();
$LANG = $load->get_language();
$load->execute();
$db->close();
Ejemplo n.º 2
0
    header('Location: ../index.php');
    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 {