Esempio n. 1
0
File: ad.php Progetto: Kheros/MMOver
            construct_hidden_code('ad_location', $vbulletin->GPC['ad_location']);
            construct_hidden_code('ad_html', $vbulletin->GPC['ad_html']);
            construct_hidden_code('displayorder', intval($vbulletin->GPC['displayorder']));
            construct_hidden_code('active', $vbulletin->GPC['active']);
            construct_hidden_code('criteria_serialized', $criterion);
            print_table_header($vbphrase['vbulletin_message']);
            print_description_row(construct_phrase($vbphrase['template_eval_error'], $errors));
            print_description_row(construct_phrase($template_un, $errors));
            print_submit_row($vbphrase['continue'], 0, 2, $vbphrase['go_back']);
            print_cp_footer();
            exit;
        }
    }
    // The insert of the template.
    replace_ad_template(0, $vbulletin->GPC['ad_location'], $template, $template_un, $vbulletin->userinfo['username'], $vbulletin->options['templateversion']);
    replace_ad_template(-1, $vbulletin->GPC['ad_location'], $template, $template_un, $vbulletin->userinfo['username'], $vbulletin->options['templateversion']);
    build_all_styles();
    define('CP_REDIRECT', 'ad.php');
    print_stop_message('saved_ad_x_successfully', $vbulletin->GPC['title']);
}
// #############################################################################
// confirm deletion of a ad
if ($_REQUEST['do'] == 'delete') {
    print_delete_confirmation('ad', $vbulletin->GPC['adid'], 'ad', 'remove');
}
// #############################################################################
// remove an ad
if ($_POST['do'] == 'remove') {
    // get ad location
    $adlocation = $ad_cache[$vbulletin->GPC['adid']]['adlocation'];
    // delete criteria
Esempio n. 2
0
File: ad.php Progetto: 0hyeah/yurivn
            construct_hidden_code('ad_html', $vbulletin->GPC['ad_html']);
            construct_hidden_code('displayorder', intval($vbulletin->GPC['displayorder']));
            construct_hidden_code('active', $vbulletin->GPC['active']);
            construct_hidden_code('criteria_serialized', $criterion);
            print_table_header($vbphrase['vbulletin_message']);
            print_description_row(construct_phrase($vbphrase['template_eval_error'], $errors));
            print_description_row(construct_phrase($template_un, $errors));
            print_submit_row($vbphrase['continue'], 0, 2, $vbphrase['go_back']);
            print_cp_footer();
            exit;
        }
    }
    // The insert of the template.
    replace_ad_template(0, $ad_location, $template, $template_un, $vbulletin->userinfo['username'], $vbulletin->options['templateversion'], $ad_locations[$ad_location]['product']);
    replace_ad_template(-1, $ad_location, $template, $template_un, $vbulletin->userinfo['username'], $vbulletin->options['templateversion'], $ad_locations[$ad_location]['product']);
    replace_ad_template(-2, $ad_location, $template, $template_un, $vbulletin->userinfo['username'], $vbulletin->options['templateversion'], $ad_locations[$ad_location]['product']);
    build_all_styles(0, 0, '', false, 'standard');
    build_all_styles(0, 0, '', false, 'mobile');
    define('CP_REDIRECT', 'ad.php');
    print_stop_message('saved_ad_x_successfully', $vbulletin->GPC['title']);
}
// #############################################################################
// confirm deletion of a ad
if ($_REQUEST['do'] == 'delete') {
    print_delete_confirmation('ad', $vbulletin->GPC['adid'], 'ad', 'remove');
}
// #############################################################################
// remove an ad
if ($_POST['do'] == 'remove') {
    // get ad location
    $adlocation = $ad_cache[$vbulletin->GPC['adid']]['adlocation'];