• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP print_delete_confirmation函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: foreach

        // insert new phrases
        $q[] = "\n\t\t\t### INSERT NEW HELP PHRASES ###\n\t\t\tINSERT INTO " . TABLE_PREFIX . "phrase\n\t\t\t\t(languageid, fieldname, varname, text, product, username, dateline, version)\n\t\t\tVALUES\n\t\t\t\t(\n\t\t\t\t\t{$languageid},\n\t\t\t\t\t'cphelptext',\n\t\t\t\t\t'{$newphrasename}" . "_title',\n\t\t\t\t\t'" . $db->escape_string($vbulletin->GPC['title']) . "',\n\t\t\t\t\t'" . $db->escape_string($vbulletin->GPC['help']['product']) . "',\n\t\t\t\t\t'" . $db->escape_string($vbulletin->userinfo['username']) . "',\n\t\t\t\t\t" . TIMENOW . ",\n\t\t\t\t\t'" . $db->escape_string($product_version) . "'\n\t\t\t\t),\n\t\t\t\t(\n\t\t\t\t\t{$languageid},\n\t\t\t\t\t'cphelptext',\n\t\t\t\t\t'{$newphrasename}" . "_text',\n\t\t\t\t\t'" . $db->escape_string($vbulletin->GPC['text']) . "',\n\t\t\t\t\t'" . $db->escape_string($vbulletin->GPC['help']['product']) . "',\n\t\t\t\t\t'" . $db->escape_string($vbulletin->userinfo['username']) . "',\n\t\t\t\t\t" . TIMENOW . ",\n\t\t\t\t\t'" . $db->escape_string($product_version) . "'\n\t\t\t\t)\n\t\t";
    }
    foreach ($q as $sql) {
        //echo "<pre>" . htmlspecialchars($sql) . "</pre>";
        /*insert query*/
        $db->query_write($sql);
        //echo $db->affected_rows();
    }
    define('CP_REDIRECT', 'help.php?do=manage&amp;script=' . $vbulletin->GPC['help']['script']);
    print_stop_message('saved_topic_x_successfully', $title);
}
// ############################### start confirmation for deleting a help topic ##############
if ($_REQUEST['do'] == 'delete') {
    $vbulletin->input->clean_array_gpc('r', array('adminhelpid' => TYPE_INT));
    print_delete_confirmation('adminhelp', $vbulletin->GPC['adminhelpid'], 'help', 'dodelete', 'topic');
}
// ############################### start actually deleting the help topic ##############
if ($_POST['do'] == 'dodelete') {
    $vbulletin->input->clean_array_gpc('r', array('adminhelpid' => TYPE_INT));
    if ($help = $db->query_first("SELECT script, action, optionname FROM " . TABLE_PREFIX . "adminhelp WHERE adminhelpid = " . $vbulletin->GPC['adminhelpid'])) {
        // delete adminhelp entry
        $db->query_write("DELETE FROM " . TABLE_PREFIX . "adminhelp WHERE adminhelpid = " . $vbulletin->GPC['adminhelpid']);
        // delete associated phrases
        $phrasename = $db->escape_string(fetch_help_phrase_short_name($help));
        $db->query_write("\n\t\t\tDELETE FROM " . TABLE_PREFIX . "phrase\n\t\t\tWHERE fieldname = 'cphelptext'\n\t\t\t\tAND varname IN ('{$phrasename}" . "_title', '{$phrasename}" . "_text')\n\t\t");
        // update language records
        require_once DIR . '/includes/adminfunctions_language.php';
        build_language();
    }
    define('CP_REDIRECT', 'help.php?do=manage');
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:help.php


示例17: catch

    } catch (vB_Exception_Api $ex) {
        $user = false;
    }
    if (!$user['userid']) {
        print_stop_message2('invalid_user_specified');
    }
    $result = $assertor->assertQuery('vBForum:deleteUserPms', array('userid' => $user['userid']));
    if (!$result) {
        print_stop_message2('no_private_messages_matched_your_query', 'user', array('do' => 'edit', 'u' => $vbulletin->GPC['userid']));
    } else {
        print_stop_message2('deleted_private_messages_successfully', 'user', array('do' => 'edit', 'u' => $vbulletin->GPC['userid']));
    }
}
// ###################### Start Remove VMs Sent by User #######################
if ($_REQUEST['do'] == 'removesentvms') {
    print_delete_confirmation('user', $vbulletin->GPC['userid'], 'usertools', 'killsentvms', 'visitor_messages_sent_by_the_user');
}
// ###################### Start Remove User's VMs #######################
if ($_POST['do'] == 'killsentvms') {
    try {
        $user = vB_Api::instanceInternal('user')->fetchUserInfo();
    } catch (vB_Exception_Api $ex) {
        $user = false;
    }
    if (!$user['userid']) {
        print_stop_message2('invalid_user_specified');
    }
    $vms = $assertor->getRows('vBForum:node', array(vB_db_Query::CONDITIONS_KEY => array(array('field' => 'userid', 'value' => $vbulletin->GPC['userid'], vB_db_Query::OPERATOR_KEY => vB_db_Query::OPERATOR_EQ), array('field' => 'setfor', 'value' => 0, vB_db_Query::OPERATOR_KEY => vB_db_Query::OPERATOR_NE))));
    if (empty($vms)) {
        print_stop_message2('no_visitor_messages_matched_your_query', 'user', array('do' => 'edit', 'u' => $vbulletin->GPC['userid']));
    } else {
开发者ID:cedwards-reisys,项目名称:nexus-web,代码行数:31,代码来源:usertools.php


示例18: build_notice_datastore

    $db->query_write("\n\t\tDELETE FROM " . TABLE_PREFIX . "notice\n\t\tWHERE noticeid = " . $vbulletin->GPC['noticeid']);
    // delete phrases
    $db->query_write("\n\t\tDELETE FROM " . TABLE_PREFIX . "phrase\n\t\tWHERE varname = 'notice_" . $vbulletin->GPC['noticeid'] . "_html'\n\t");
    // update the datastore notice cache
    build_notice_datastore();
    // rebuild languages
    require_once DIR . '/includes/adminfunctions_language.php';
    build_language();
    define('CP_REDIRECT', 'notice.php?do=modify');
    print_stop_message('deleted_notice_successfully');
}
// #############################################################################
// confirm deletion of a notice
if ($_REQUEST['do'] == 'delete') {
    $vbulletin->input->clean_array_gpc('r', array('noticeid' => TYPE_UINT));
    print_delete_confirmation('notice', $vbulletin->GPC['noticeid'], 'notice', 'remove');
}
// #############################################################################
// update or insert a notice
if ($_POST['do'] == 'update') {
    $vbulletin->input->clean_array_gpc('p', array('noticeid' => TYPE_UINT, 'title' => TYPE_NOHTML, 'html' => TYPE_STR, 'displayorder' => TYPE_UINT, 'active' => TYPE_BOOL, 'persistent' => TYPE_BOOL, 'dismissible' => TYPE_BOOL, 'criteria' => TYPE_ARRAY));
    $noticeid =& $vbulletin->GPC['noticeid'];
    // Check to see if there is criteria
    $have_criteria = false;
    foreach ($vbulletin->GPC['criteria'] as $criteria) {
        if ($criteria['active']) {
            $have_criteria = true;
            break;
        }
    }
    if ($vbulletin->GPC['title'] === '') {
开发者ID:0hyeah,项目名称:yurivn,代码行数:31,代码来源:notice.php


示例19: print_stop_message

        $vbulletin->GPC['usergroupid'] = $vbulletin->GPC['promotion']['usergroupid'];
        if ($vbulletin->GPC['usergroupid'] == $vbulletin->GPC['promotion']['joinusergroupid']) {
            print_stop_message('promotion_join_same_group');
        }
        /*insert query*/
        $db->query_write(fetch_query_sql($vbulletin->GPC['promotion'], 'userpromotion'));
    }
    // $title = $db->query_first("SELECT title FROM " . TABLE_PREFIX . "usergroup WHERE usergroupid = " . $vbulletin->GPC['usergroupid']);
    // $message = str_replace('{title}', $title['title'], $message);
    define('CP_REDIRECT', "usergroup.php?do=modifypromotion" . ($vbulletin->GPC['returnug'] ? "&returnug=1&usergroupid=" . $vbulletin->GPC['usergroupid'] : ''));
    print_stop_message('saved_promotion_successfully');
}
// ###################### Start Remove #######################
if ($_REQUEST['do'] == 'removepromotion') {
    $vbulletin->input->clean_array_gpc('r', array('userpromotionid' => TYPE_INT, 'returnug' => TYPE_BOOL));
    print_delete_confirmation('userpromotion', $vbulletin->GPC['userpromotionid'], 'usergroup', 'killpromotion', 'promotion_usergroup', array('returnug' => $vbulletin->GPC['returnug']));
}
// ###################### Start Kill #######################
if ($_POST['do'] == 'killpromotion') {
    $vbulletin->input->clean_array_gpc('p', array('userpromotionid' => TYPE_INT, 'returnug' => TYPE_BOOL));
    $promotion = $db->query_first_slave("SELECT usergroupid FROM " . TABLE_PREFIX . "userpromotion WHERE userpromotionid = " . $vbulletin->GPC['userpromotionid']);
    $db->query_write("DELETE FROM " . TABLE_PREFIX . "userpromotion WHERE userpromotionid = " . $vbulletin->GPC['userpromotionid']);
    define('CP_REDIRECT', 'usergroup.php?do=modifypromotion' . ($vbulletin->GPC['returnug'] ? '&returnug=1&usergroupid=' . $promotion['usergroupid'] : ""));
    print_stop_message('deleted_promotion_successfully');
}
// #############################################################################
// process usergroup join requests
if ($_POST['do'] == 'processjoinrequests') {
    $vbulletin->input->clean_array_gpc('p', array('request' => TYPE_ARRAY_INT));
    // check we have some results to process
    if (empty($vbulletin->GPC['request'])) {
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:usergroup.php



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP print_description_row函数代码示例发布时间:2022-05-15
下一篇:
PHP print_debug函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap