Esempio n. 1
0
        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'])) {
            include 'etc/download/' . $_GET['download'];
            die;
        }
    }
    include 'html/header.php';
    include 'html/nav.php';
    include 'html/logged.php';
    new importer();
    if (!isset($_GET['action'])) {
        $_GET['action'] = '';
Esempio n. 2
0
<?php

if (!isset($_GET['secret']) || $_GET['secret'] !== \query\main::get_option('cron_secret')) {
    die('Unauthorized');
}
include ADMINDIR . '/includes/admin.php';
actions::cleardata(isset($_GET['coupons']) && $_GET['coupons'] == 'true' ? true : false, isset($_GET['days']) && (int) $_GET['days'] > 0 ? (int) $_GET['days'] : 30);
echo 'OK';