当前位置: 首页>>代码示例>>PHP>>正文


PHP print_delete_confirmation函数代码示例

本文整理汇总了PHP中print_delete_confirmation函数的典型用法代码示例。如果您正苦于以下问题:PHP print_delete_confirmation函数的具体用法?PHP print_delete_confirmation怎么用?PHP print_delete_confirmation使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了print_delete_confirmation函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

    					'username'		=> $vbulletin->userinfo['username']
    			), array(
    					'title'		=> 'ad_' . $location,
    					'styleid' => array(-1,0)
    			));
    		}
    
    		build_all_styles();
    	}
    */
    print_stop_message2(array('saved_channel_x_successfully', $vbulletin->GPC['channel']['title']), 'forum', array('do' => 'modify', 'n' => $vbulletin->GPC['nodeid'] . "#channel" . $vbulletin->GPC['nodeid']));
}
// ###################### Start Remove #######################
if ($_REQUEST['do'] == 'remove') {
    $vbulletin->input->clean_array_gpc('r', array('nodeid' => vB_Cleaner::TYPE_UINT));
    print_delete_confirmation('vBForum:node', $vbulletin->GPC['nodeid'], 'forum', 'kill', 'channel', 0, $vbphrase['are_you_sure_you_want_to_delete_this_channel'], 'htmltitle', 'nodeid');
}
// ###################### Start Kill #######################
if ($_POST['do'] == 'kill') {
    $vbulletin->input->clean_array_gpc('p', array('nodeid' => vB_Cleaner::TYPE_UINT));
    vB_Api::instanceInternal('content_channel')->delete($vbulletin->GPC['nodeid']);
    print_stop_message2('deleted_channel_successfully', 'forum');
}
// ###################### Start do order #######################
if ($_POST['do'] == 'doorder') {
    $vbulletin->input->clean_array_gpc('p', array('order' => vB_Cleaner::TYPE_ARRAY));
    if (is_array($vbulletin->GPC['order'])) {
        $channels = vB_Api::instanceInternal('search')->getChannels(true);
        foreach ($channels as $channel) {
            if (!isset($vbulletin->GPC['order']["{$channel['nodeid']}"])) {
                continue;
开发者ID:cedwards-reisys,项目名称:nexus-web,代码行数:31,代码来源:forum.php

示例2: fetch_product_dependencies

    }
    $children = fetch_product_dependencies($vbulletin->GPC['productid'], $dependency_list);
    $product_list = fetch_product_list(true);
    $children_text = array();
    foreach ($children as $childproductid) {
        $childproduct = $product_list["{$childproductid}"];
        if ($childproduct) {
            $children_text[] = $childproduct['title'];
        }
    }
    if ($children_text) {
        $affected_children = construct_phrase($vbphrase['uninstall_product_break_products_x'], '<li>' . implode('</li><li>', $children_text) . '</li>');
    } else {
        $affected_children = '';
    }
    print_delete_confirmation('product', $vbulletin->GPC['productid'], 'plugin', 'productkill', '', 0, $affected_children);
}
// #############################################################################
if ($_POST['do'] == 'productimport') {
    $vbulletin->input->clean_array_gpc('p', array('serverfile' => TYPE_STR, 'allowoverwrite' => TYPE_BOOL));
    $vbulletin->input->clean_array_gpc('f', array('productfile' => TYPE_FILE));
    if (file_exists($vbulletin->GPC['productfile']['tmp_name'])) {
        // got an uploaded file?
        $xml = file_read($vbulletin->GPC['productfile']['tmp_name']);
    } else {
        if (file_exists($vbulletin->GPC['serverfile'])) {
            // no uploaded file - got a local file?
            $xml = file_read($vbulletin->GPC['serverfile']);
        } else {
            print_stop_message('no_file_uploaded_and_no_local_file_found');
        }
开发者ID:Kheros,项目名称:MMOver,代码行数:31,代码来源:plugin.php

示例3: fetch_userinfo

    $user = fetch_userinfo($repinfo['userid']);
    if ($user) {
        $userdm =& datamanager_init('User', $vbulletin, ERRTYPE_CP);
        $userdm->set_existing($user);
        $userdm->set('reputation', $user['reputation'] - $repinfo['reputation']);
        $userdm->save();
        unset($userdm);
    }
    $db->query_write("\n\t\tDELETE FROM " . TABLE_PREFIX . "reputation\n\t\tWHERE reputationid = " . $vbulletin->GPC['reputationid']);
    define('CP_REDIRECT', "adminreputation.php?do=list&amp;u={$repinfo['userid']}");
    print_stop_message('deleted_reputation_successfully');
}
// *************************************************************************************************
if ($_REQUEST['do'] == 'deletereputation') {
    $vbulletin->input->clean_array_gpc('r', array('reputationid' => TYPE_INT));
    print_delete_confirmation('reputation', $vbulletin->GPC['reputationid'], 'adminreputation', 'killreputation');
}
if ($_REQUEST['do'] == 'modify') {
    $reputationlevels = $db->query_read("\n\t\tSELECT *\n\t\tFROM " . TABLE_PREFIX . "reputationlevel\n\t\tORDER BY minimumreputation\n\t");
    print_form_header('adminreputation', 'updateminimums');
    print_table_header($vbphrase['user_reputation_manager'], 3);
    print_cells_row(array($vbphrase['reputation_level'], $vbphrase['minimum_reputation_level'], $vbphrase['controls']), 1);
    while ($reputationlevel = $db->fetch_array($reputationlevels)) {
        $reputationlevel['level'] = htmlspecialchars_uni($vbphrase['reputation' . $reputationlevel['reputationlevelid']]);
        $cell = array();
        $cell[] = "{$vbphrase['user']} <b>{$reputationlevel['level']}</b>";
        $cell[] = "<input type=\"text\" class=\"bginput\" tabindex=\"1\" name=\"reputation[{$reputationlevel['reputationlevelid']}]\" value=\"{$reputationlevel['minimumreputation']}\" size=\"5\" />";
        $cell[] = construct_link_code($vbphrase['edit'], "adminreputation.php?" . $vbulletin->session->vars['sessionurl'] . "do=edit&reputationlevelid={$reputationlevel['reputationlevelid']}") . construct_link_code($vbphrase['delete'], "adminreputation.php?" . $vbulletin->session->vars['sessionurl'] . "do=remove&minimumreputation={$reputationlevel['minimumreputation']}");
        print_cells_row($cell);
    }
    print_submit_row($vbphrase['update'], $vbphrase['reset'], 3);
开发者ID:0hyeah,项目名称:yurivn,代码行数:31,代码来源:adminreputation.php

示例4: print_submit_row

            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
    $db->query_write("\r\n\t\tDELETE FROM " . TABLE_PREFIX . "adcriteria\r\n\t\tWHERE adid = " . $vbulletin->GPC['adid']);
    // delete ad
    $db->query_write("\r\n\t\tDELETE FROM " . TABLE_PREFIX . "ad\r\n\t\tWHERE adid = " . $vbulletin->GPC['adid']);
    // remove record from ad_cache
    unset($ad_cache[$vbulletin->GPC['adid']]);
    $ad_cache = array_values($ad_cache);
    // rebuild affected template
    require_once DIR . '/includes/functions_ad.php';
开发者ID:Kheros,项目名称:MMOver,代码行数:31,代码来源:ad.php

示例5: define

    if ($vbulletin->GPC['forumid'] == -1) {
        define('CP_REDIRECT', 'moderator.php?do=showlist');
    } else {
        if (!empty($vbulletin->GPC['redir'])) {
            define('CP_REDIRECT', 'moderator.php?do=' . ($vbulletin->GPC['redir'] == 'showmods' ? 'showmods' : 'showlist') . '&f=' . $vbulletin->GPC['forumid']);
        } else {
            define('CP_REDIRECT', "forum.php?do=modify&amp;f=" . $vbulletin->GPC['forumid'] . "#forum" . $vbulletin->GPC['forumid']);
        }
    }
    print_stop_message('saved_moderator_x_successfully', implode('; ', $successnames));
}
// ###################### Start Remove moderator #######################
if ($_REQUEST['do'] == 'remove') {
    $vbulletin->input->clean_array_gpc('r', array('redir' => TYPE_STR));
    $hidden = array('redir' => $vbulletin->GPC['redir']);
    print_delete_confirmation('moderator', $vbulletin->GPC['moderatorid'], 'moderator', 'kill', 'moderator', $hidden);
}
// ###################### Start Kill moderator #######################
if ($_POST['do'] == 'kill') {
    $mod = $db->query_first("\n\t\tSELECT moderator.*, user.username\n\t\tFROM " . TABLE_PREFIX . "moderator AS moderator\n\t\tLEFT JOIN " . TABLE_PREFIX . "user AS user USING (userid)\n\t\tWHERE moderatorid = " . $vbulletin->GPC['moderatorid']);
    if (!$mod) {
        print_stop_message('invalid_moderator_specified');
    }
    log_admin_action('username = ' . $mod['username'] . ', userid = ' . $mod['userid']);
    $moddata =& datamanager_init('Moderator', $vbulletin, ERRTYPE_CP);
    $moddata->set_existing($mod);
    $moddata->delete(true);
    $vbulletin->input->clean_array_gpc('p', array('redir' => TYPE_STR));
    if ($vbulletin->GPC['redir'] == 'modlist') {
        define('CP_REDIRECT', 'moderator.php?do=showlist');
    } else {
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:moderator.php

示例6: str_replace

    $vbulletin->GPC['bbcodereplacement'] = str_replace('%', '%%', $vbulletin->GPC['bbcodereplacement']);
    if ($vbulletin->GPC['twoparams']) {
        $vbulletin->GPC['bbcodereplacement'] = str_replace('{param}', '%1$s', $vbulletin->GPC['bbcodereplacement']);
        $vbulletin->GPC['bbcodereplacement'] = str_replace('{option}', '%2$s', $vbulletin->GPC['bbcodereplacement']);
    } else {
        $vbulletin->GPC['bbcodereplacement'] = str_replace('{param}', '%1$s', $vbulletin->GPC['bbcodereplacement']);
    }
    $db->query_write("\n\t\tUPDATE " . TABLE_PREFIX . "bbcode SET\n\t\t\ttitle = '" . $db->escape_string($vbulletin->GPC['title']) . "',\n\t\t\tbbcodetag = '" . $db->escape_string($vbulletin->GPC['bbcodetag']) . "',\n\t\t\tbbcodereplacement = '" . $db->escape_string($vbulletin->GPC['bbcodereplacement']) . "',\n\t\t\tbbcodeexample = '" . $db->escape_string($vbulletin->GPC['bbcodeexample']) . "',\n\t\t\tbbcodeexplanation = '" . $db->escape_string($vbulletin->GPC['bbcodeexplanation']) . "',\n\t\t\ttwoparams = '" . $db->escape_string($vbulletin->GPC['twoparams']) . "',\n\t\t\tbuttonimage = '" . $db->escape_string($vbulletin->GPC['buttonimage']) . "',\n\t\t\toptions = " . convert_array_to_bits($vbulletin->GPC['options'], $vbulletin->bf_misc['bbcodeoptions']) . "\n\t\tWHERE bbcodeid = " . $vbulletin->GPC['bbcodeid']);
    build_bbcode_cache();
    define('CP_REDIRECT', 'bbcode.php?do=modify');
    print_stop_message('saved_bb_code_x_successfully', "[" . $vbulletin->GPC['bbcodetag'] . "]");
}
// ####################################### REMOVE #####################################
if ($_REQUEST['do'] == 'remove') {
    $vbulletin->input->clean_array_gpc('r', array('bbcodeid' => TYPE_INT));
    print_delete_confirmation('bbcode', $vbulletin->GPC['bbcodeid'], 'bbcode', 'kill', 'bb_code');
}
// ######################################## KILL #####################################
if ($_POST['do'] == 'kill') {
    $vbulletin->input->clean_array_gpc('p', array('bbcodeid' => TYPE_INT));
    $db->query_write("DELETE FROM " . TABLE_PREFIX . "bbcode WHERE bbcodeid = " . $vbulletin->GPC['bbcodeid']);
    build_bbcode_cache();
    $_REQUEST['do'] = 'modify';
}
// ######################################### TEST ######################################
if ($_POST['do'] == 'test') {
    $vbulletin->input->clean_array_gpc('p', array('text' => TYPE_STR));
    $parser = new vB_BbCodeParser($vbulletin, fetch_tag_list());
    $parsed_code = $parser->do_parse($vbulletin->GPC['text'], false, false, true, false, true);
    print_form_header('bbcode', 'test');
    print_table_header($vbphrase['test_your_bb_code']);
开发者ID:benyamin20,项目名称:vbregistration,代码行数:31,代码来源:bbcode.php

示例7: array

}
// ###################### Start email password #######################
if ($_REQUEST['do'] == 'emailpassword') {
    $vbulletin->input->clean_array_gpc('r', array('email' => TYPE_STR, 'userid' => TYPE_UINT));
    print_form_header('../login', 'emailpassword');
    construct_hidden_code('email', $vbulletin->GPC['email']);
    construct_hidden_code('url', $vbulletin->config['Misc']['admincpdir'] . "/user.php?do=find&user[email]=" . urlencode($vbulletin->GPC['email']));
    construct_hidden_code('u', $vbulletin->GPC['userid']);
    print_table_header($vbphrase['email_password_reminder_to_user']);
    print_description_row(construct_phrase($vbphrase['click_the_button_to_send_password_reminder_to_x'], "<i>" . htmlspecialchars_uni($vbulletin->GPC['email']) . "</i>"));
    print_submit_row($vbphrase['send'], 0);
}
// ###################### Start Remove #######################
if ($_REQUEST['do'] == 'remove') {
    $vbulletin->input->clean_array_gpc('r', array('userid' => TYPE_INT));
    print_delete_confirmation('user', $vbulletin->GPC['userid'], 'user', 'kill', 'user', '', $vbphrase['all_posts_will_be_set_to_guest']);
    echo '<p align="center">' . construct_phrase($vbphrase['if_you_want_to_prune_user_posts_first'], "thread.php?" . $vbulletin->session->vars['sessionurl'] . "do=pruneuser&amp;f=-1&amp;u=" . $vbulletin->GPC['userid'] . "&amp;confirm=1") . '</p>';
}
// ###################### Start Kill #######################
if ($_POST['do'] == 'kill') {
    $vbulletin->input->clean_array_gpc('p', array('userid' => TYPE_INT));
    // check user is not set in the $undeletable users string
    if (is_unalterable_user($vbulletin->GPC['userid'])) {
        print_stop_message('user_is_protected_from_alteration_by_undeletableusers_var');
    } else {
        $info = fetch_userinfo($vbulletin->GPC['userid']);
        if (!$info) {
            print_stop_message('invalid_user_specified');
        }
        $userdm =& datamanager_init('User', $vbulletin, ERRTYPE_CP);
        $userdm->set_existing($info);
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:user.php

示例8: array

	print_stop_message('saved_widget_successfully');
}

// Remove ######################################################################
if ($_POST['do'] == 'removewidget')
{
	$widget->getDM()->delete();

	define('CP_REDIRECT', 'cms_admin.php?do=widget');
	print_stop_message('deleted_widget_successfully');
}

// Delete ######################################################################
if ($_REQUEST['do'] == 'deletewidget')
{
	print_delete_confirmation('cms_widget', $vbulletin->GPC['widgetid'], 'cms_admin', 'removewidget', 'widget', 0, '', 'title', 'widgetid');
}

// Update ######################################################################
if ($_POST['do'] == 'updatewidget')
{
	$vbulletin->input->clean_array_gpc('p', array(
		'title'    		=> TYPE_NOHTML,
		'description'   => TYPE_NOHTML
	));

	$widgetdm = $widget->getDM();

	try
	{
		$widgetdm->set('title', $vbulletin->GPC['title']);
开发者ID:hungnv0789,项目名称:vhtm,代码行数:31,代码来源:cms_admin.php

示例9: htmlspecialchars_uni

		$announcementid = $announcementinfo['announcementid'];
	}

	define('CP_REDIRECT', 'announcement.php');
	print_stop_message('saved_announcement_x_successfully', htmlspecialchars_uni($vbulletin->GPC['title']));
}

// ###################### Start Remove #######################

if ($_REQUEST['do'] == 'remove')
{
	$vbulletin->input->clean_array_gpc('r', array(
		'announcementid' 	=> TYPE_UINT
	));

	print_delete_confirmation('announcement', $vbulletin->GPC['announcementid'], 'announcement', 'kill', 'announcement');
}

// ###################### Start Kill #######################

if ($_POST['do'] == 'kill')
{
	$vbulletin->input->clean_array_gpc('p', array(
		'announcementid' 	=> TYPE_UINT
	));

	if ($announcement = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "announcement WHERE announcementid = " . $vbulletin->GPC['announcementid']))
	{
		$anncdata =& datamanager_init('Announcement', $vbulletin, ERRTYPE_CP);
		$anncdata->set_existing($announcement);
		$anncdata->delete();
开发者ID:hungnv0789,项目名称:vhtm,代码行数:31,代码来源:announcement.php

示例10: array

// ###################### Start kill setting #######################
if ($_POST['do'] == 'killsetting') {
    $vbulletin->input->clean_array_gpc('p', array('title' => TYPE_STR));
    // get some info
    $setting = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "setting WHERE varname = '" . $db->escape_string($vbulletin->GPC['title']) . "'");
    // delete phrases
    $db->query_write("\n\t\tDELETE FROM " . TABLE_PREFIX . "phrase\n\t\tWHERE languageid IN (-1, 0) AND\n\t\t\tfieldname = 'vbsettings' AND\n\t\t\tvarname IN ('setting_" . $db->escape_string($setting['varname']) . "_title', 'setting_" . $db->escape_string($setting['varname']) . "_desc')\n\t");
    // delete setting
    $db->query_write("DELETE FROM " . TABLE_PREFIX . "setting WHERE varname = '" . $db->escape_string($setting['varname']) . "'");
    build_options();
    define('CP_REDIRECT', 'options.php?do=options&amp;dogroup=' . $setting['grouptitle']);
    print_stop_message('deleted_setting_successfully');
}
// ###################### Start remove setting #######################
if ($_REQUEST['do'] == 'removesetting') {
    print_delete_confirmation('setting', $vbulletin->GPC['varname'], 'options', 'killsetting');
}
// ###################### Start insert setting #######################
if ($_POST['do'] == 'insertsetting') {
    $vbulletin->input->clean_array_gpc('p', array('varname' => TYPE_STR, 'grouptitle' => TYPE_STR, 'optioncode' => TYPE_STR, 'defaultvalue' => TYPE_STR, 'displayorder' => TYPE_UINT, 'volatile' => TYPE_INT, 'datatype' => TYPE_STR, 'validationcode' => TYPE_STR, 'product' => TYPE_STR, 'blacklist' => TYPE_BOOL, 'title' => TYPE_STR, 'description' => TYPE_STR, 'oldproduct' => TYPE_STR));
    if (is_demo_mode()) {
        print_cp_message('This function is disabled within demo mode');
    }
    if ($s = $db->query_first("\n\t\tSELECT varname\n\t\tFROM " . TABLE_PREFIX . "setting\n\t\tWHERE varname = '" . $db->escape_string($vbulletin->GPC['varname']) . "'\n\t")) {
        print_stop_message('there_is_already_setting_named_x', $vbulletin->GPC['varname']);
    }
    if (!preg_match('#^[a-z0-9_]+$#i', $vbulletin->GPC['varname'])) {
        print_stop_message('invalid_phrase_varname');
    }
    // insert setting place-holder
    /*insert query*/
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:options.php

示例11: construct_hidden_code

    construct_hidden_code('url', $vbulletin->config['Misc']['admincpdir'] . "/user.php?do=find&user[email]=" . urlencode($vbulletin->GPC['email']));
    construct_hidden_code('u', $vbulletin->GPC['userid']);
    print_table_header($vbphrase['email_password_reminder_to_user']);
    print_description_row(construct_phrase($vbphrase['click_the_button_to_send_password_reminder_to_x'], "<i>" . htmlspecialchars_uni($vbulletin->GPC['email']) . "</i>"));
    print_submit_row($vbphrase['send'], 0);
}
// ###################### Start Remove #######################
if ($_REQUEST['do'] == 'remove') {
    $vbulletin->input->clean_array_gpc('r', array('userid' => TYPE_INT));
    $extratext = $vbphrase['all_posts_will_be_set_to_guest'];
    // find out if the user has social groups
    $hasgroups = $vbulletin->db->query_first("\n\t\tSELECT COUNT('groupid') AS total\n\t\tFROM " . TABLE_PREFIX . "socialgroup\n\t\tWHERE creatoruserid = " . $vbulletin->GPC['userid']);
    if ($hasgroups['total']) {
        $extratext .= "<br /><br />" . construct_phrase($vbphrase[delete_user_transfer_social_groups], $hasgroups['total']) . " <input type=\"checkbox\" name=\"transfer_groups\" value=\"1\" />";
    }
    print_delete_confirmation('user', $vbulletin->GPC['userid'], 'user', 'kill', 'user', '', $extratext);
    echo '<p align="center">' . construct_phrase($vbphrase['if_you_want_to_prune_user_posts_first'], "thread.php?" . $vbulletin->session->vars['sessionurl'] . "do=pruneuser&amp;f=-1&amp;u=" . $vbulletin->GPC['userid'] . "&amp;confirm=1") . '</p>';
}
// ###################### Start Kill #######################
if ($_POST['do'] == 'kill') {
    $vbulletin->input->clean_array_gpc('p', array('userid' => TYPE_INT, 'transfer_groups' => TYPE_BOOL));
    // check user is not set in the $undeletable users string
    if (is_unalterable_user($vbulletin->GPC['userid'])) {
        print_stop_message('user_is_protected_from_alteration_by_undeletableusers_var');
    } else {
        $info = fetch_userinfo($vbulletin->GPC['userid']);
        if (!$info) {
            print_stop_message('invalid_user_specified');
        }
        if ($vbulletin->GPC['transfer_groups']) {
            // fetch groupmember info for groups that the deleted user has ownership of
开发者ID:benyamin20,项目名称:vbregistration,代码行数:31,代码来源:user.php

示例12: foreach

        foreach ($ad_locations as $location) {
            $template = wrap_ad_template(build_ad_template($location), $location);
            $template_un = $template;
            $template = compile_template($template);
            $db->query_write("\r\n\t\t\t\tUPDATE " . TABLE_PREFIX . "template SET\r\n\t\t\t\t\ttemplate = '" . $db->escape_string($template) . "',\r\n\t\t\t\t\ttemplate_un = '" . $db->escape_string($template_un) . "',\r\n\t\t\t\t\tdateline = " . TIMENOW . ",\r\n\t\t\t\t\tusername = '" . $db->escape_string($vbulletin->userinfo['username']) . "'\r\n\t\t\t\tWHERE\r\n\t\t\t\t\ttitle = 'ad_" . $db->escape_string($location) . "'\r\n\t\t\t\t\tAND styleid IN (-1,0)\r\n\t\t\t");
        }
        build_all_styles();
    }
    $db->free_result($ad_result);
    define('CP_REDIRECT', "forum.php?do=modify&amp;f=" . $vbulletin->GPC['forumid'] . "#forum" . $vbulletin->GPC['forumid']);
    print_stop_message('saved_forum_x_successfully', $vbulletin->GPC['forum']['title']);
}
// ###################### Start Remove #######################
if ($_REQUEST['do'] == 'remove') {
    $vbulletin->input->clean_array_gpc('r', array('forumid' => TYPE_UINT));
    print_delete_confirmation('forum', $vbulletin->GPC['forumid'], 'forum', 'kill', 'forum', 0, $vbphrase['are_you_sure_you_want_to_delete_this_forum'], 'title_clean');
}
// ###################### Start Kill #######################
if ($_POST['do'] == 'kill') {
    $vbulletin->input->clean_array_gpc('p', array('forumid' => TYPE_UINT));
    $forumdata =& datamanager_init('Forum', $vbulletin, ERRTYPE_CP);
    $forumdata->set_condition("FIND_IN_SET(" . $vbulletin->GPC['forumid'] . ", parentlist)");
    $forumdata->delete();
    define('CP_REDIRECT', 'forum.php');
    print_stop_message('deleted_forum_successfully');
}
// ###################### Start do order #######################
if ($_POST['do'] == 'doorder') {
    $vbulletin->input->clean_array_gpc('p', array('order' => TYPE_ARRAY));
    if (is_array($vbulletin->GPC['order'])) {
        $forums = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "forum");
开发者ID:Kheros,项目名称:MMOver,代码行数:31,代码来源:forum.php

示例13: is_subcategory_of

*/
function is_subcategory_of($categoryid, $parentid)
{
    global $vbulletin;
    if (is_array($vbulletin->vbblog['icategorycache']["0"]["{$categoryid}"])) {
        foreach ($vbulletin->vbblog['icategorycache']["0"]["{$categoryid}"] as $curcategoryid => $category) {
            if ($curcategoryid == $parentid or !$is_subcategory_of($curcategoryid, $parentid)) {
                print_stop_message('cant_parent_category_to_child');
            }
        }
    }
    return true;
}
if ($_REQUEST['do'] == 'removecat') {
    $vbulletin->input->clean_array_gpc('r', array('blogcategoryid' => TYPE_UINT));
    print_delete_confirmation('blog_category', $vbulletin->GPC['blogcategoryid'], 'blog_admin', 'killcat', 'blogcategoryid');
}
if ($_POST['do'] == 'killcat') {
    $vbulletin->input->clean_array_gpc('p', array('blogcategoryid' => TYPE_UINT));
    $categoryinfo = $db->query_first_slave("\r\n\t\tSELECT *\r\n\t\tFROM " . TABLE_PREFIX . "blog_category\r\n\t\tWHERE blogcategoryid = " . $vbulletin->GPC['blogcategoryid'] . "\r\n\t\t\tAND userid = 0\r\n\t");
    if (!$categoryinfo) {
        print_stop_message('invalid_x_specified', 'blogcategoryid');
    } else {
        $dataman =& datamanager_init('Blog_Category', $vbulletin, ERRTYPE_CP);
        $dataman->set_existing($categoryinfo);
        $dataman->set_condition("FIND_IN_SET('" . $vbulletin->GPC['blogcategoryid'] . "', parentlist)");
        $dataman->delete();
        build_category_permissions();
        define('CP_REDIRECT', 'blog_admin.php?do=listcat');
        print_stop_message('deleted_blog_category_successfully');
    }
开发者ID:Kheros,项目名称:MMOver,代码行数:31,代码来源:blog_admin.php

示例14: print_cp_header

// #############################################################################
print_cp_header($vbphrase['uc_users_cleanup_rules_manager']);
// #############################################################################
// remove a rule
if ($_POST['do'] == 'remove') {
    // delete criteria
    $sql = $db->query_write("\n        DELETE FROM " . TABLE_PREFIX . "userscleanupcriteria\n        WHERE ruleid = " . $vbulletin->GPC['ruleid']);
    // delete rule
    $db->query_write("\n        DELETE FROM " . TABLE_PREFIX . "userscleanup\n        WHERE ruleid = " . $vbulletin->GPC['ruleid']);
    define('CP_REDIRECT', 'users_cleanup.php?do=list');
    print_stop_message('uc_deleted_users_cleanup_successfully');
}
// #############################################################################
// confirm deletion of a userscleanup rule
if ($_REQUEST['do'] == 'delete') {
    print_delete_confirmation('userscleanup', $vbulletin->GPC['ruleid'], 'users_cleanup', 'remove', 'rule', 0, '', 'title', 'ruleid');
}
// #############################################################################
// update or insert a rule
if ($_POST['do'] == 'update') {
    $vbulletin->input->clean_array_gpc('p', array('title' => TYPE_NOHTML, 'displayorder' => TYPE_UINT, 'active' => TYPE_BOOL, 'criteria' => TYPE_ARRAY));
    $rule_id = $vbulletin->GPC['ruleid'];
    $createria_list = array();
    foreach ($vbulletin->GPC['criteria'] as $criteria_id => $criteria) {
        if ($criteria['active']) {
            $criteria_list[$criteria_id] = array_map('trim', $criteria);
        }
    }
    if (empty($criteria_list)) {
        print_stop_message('uc_no_users_cleanup_criteria_active');
    }
开发者ID:rcdesign-cemetery,项目名称:vb-users_cleanup,代码行数:31,代码来源:users_cleanup.php

示例15: print_stop_message

            print_stop_message('saved_moderator_x_successfully', $vbulletin->GPC['modusername']);
        }
    } else {
        // error
        if (!$userinfo['userid']) {
            print_stop_message('no_moderator_matched_your_query');
        }
        if (!$calendarinfo['calendarid']) {
            print_stop_message('invalid_calendar_specified');
        }
    }
}
// ###################### Start Remove moderator #######################
if ($_REQUEST['do'] == 'removemod') {
    $vbulletin->input->clean_array_gpc('r', array('moderatorid' => TYPE_UINT));
    print_delete_confirmation('calendarmoderator', $vbulletin->GPC['moderatorid'], 'admincalendar', 'killmod', 'calendar_moderator');
}
// ###################### Start Kill moderator #######################
$vbulletin->input->clean_array_gpc('p', array('calendarmoderatorid' => TYPE_UINT));
if ($_POST['do'] == 'killmod') {
    $getuserid = $db->query_first("\n\t\tSELECT user.userid,usergroupid\n\t\tFROM " . TABLE_PREFIX . "calendarmoderator AS calendarmoderator\n\t\tLEFT JOIN " . TABLE_PREFIX . "user AS user USING (userid)\n\t\tWHERE calendarmoderatorid = " . $vbulletin->GPC['calendarmoderatorid']);
    if (!$getuserid) {
        print_stop_message('user_no_longer_moderator');
    } else {
        $db->query_write("\n\t\t\tDELETE FROM " . TABLE_PREFIX . "calendarmoderator\n\t\t\tWHERE calendarmoderatorid = " . $vbulletin->GPC['calendarmoderatorid']);
        define('CP_REDIRECT', 'admincalendar.php');
        print_stop_message('deleted_moderator_successfully');
    }
}
// ##################### Holidays ###################################
if ($_REQUEST['do'] == 'modifyholiday') {
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:admincalendar.php


注:本文中的print_delete_confirmation函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。