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


PHP print_cp_header函数代码示例

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


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

示例1: kbank_print_cp_header

function kbank_print_cp_header($title = '', $onload = '', $headinsert = '', $marginwidth = 0, $bodyattributes = '')
{
    if (VB_AREA == 'AdminCP') {
        //back-end
        print_cp_header($title, $onload, $headinsert, $marginwidth, $bodyattributes);
    } else {
        //font-end
        global $title_extra, $navbits;
        $title_extra = $title;
        $navbits[] = $title;
    }
}
开发者ID:0hyeah,项目名称:yurivn,代码行数:12,代码来源:functions_interface.php

示例2: print_cp_no_permission

require_once DIR . '/includes/photoplog_prefix.php';
require_once DIR . '/' . $vbulletin->config['Misc']['admincpdir'] . '/photoplog_functions.php';
// ######################## CHECK ADMIN PERMISSIONS #######################
if (!can_administer('canadminforums')) {
    print_cp_no_permission();
}
// ############################# LOG ACTION ###############################
log_admin_action();
// ########################################################################
// ######################### START MAIN SCRIPT ############################
// ########################################################################
$photoplog_list_categories = array();
photoplog_list_categories($photoplog_list_categories, -1, $vbphrase['photoplog_no_one']);
$photoplog_categoryoptions = array('allowhtml' => 1, 'allowsmilies' => 2, 'allowbbcode' => 4, 'allowimgcode' => 8, 'allowparseurl' => 16, 'allowcomments' => 32, 'issearchable' => 64, 'ismembersfolder' => 128, 'actasdivider' => 256, 'allowdeschtml' => 512, 'openforsubcats' => 1024);
$photoplog_ds_catopts = photoplog_fetch_ds_cat();
print_cp_header($vbphrase['photoplog_category_manager']);
if (empty($_REQUEST['do'])) {
    $_REQUEST['do'] = 'modify';
}
if ($_REQUEST['do'] == 'decline') {
    $vbulletin->input->clean_array_gpc('r', array('suggestid' => TYPE_UINT));
    print_form_header('photoplog_category', 'dodecline');
    construct_hidden_code('s', $vbulletin->session->vars['sessionhash']);
    construct_hidden_code('suggestid', $vbulletin->GPC['suggestid']);
    print_table_header($vbphrase['photoplog_confirm_decline']);
    print_description_row($vbphrase['photoplog_you_are_about_to_decline'] . ' ' . $vbphrase['photoplog_are_you_sure']);
    print_submit_row($vbphrase['photoplog_yes'], '', 2, $vbphrase['photoplog_no']);
}
if ($_REQUEST['do'] == 'dodecline') {
    $vbulletin->input->clean_array_gpc('r', array('suggestid' => TYPE_UINT));
    $photoplog_suggestid = $vbulletin->GPC['suggestid'];
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:photoplog_category.php

示例3: array

}

$vbulletin->input->clean_array_gpc('r', array(
	'userid'      => TYPE_INT,
	'usergroupid' => TYPE_INT,
	'forumid'     => TYPE_INT,
));

// ############################# LOG ACTION ###############################
log_admin_action(iif($vbulletin->GPC['userid'], "user id = " . $vbulletin->GPC['userid'], iif($vbulletin->GPC['usergroupid'], "usergroup id = " . $vbulletin->GPC['usergroupid'], iif($vbulletin->GPC['forumid'], "forum id = " . $vbulletin->GPC['forumid']))));

// ########################################################################
// ######################### START MAIN SCRIPT ############################
// ########################################################################

print_cp_header($vbphrase['view_permissions']);

$perm_phrase = array(
	'canview'               => $vbphrase['can_view_forum'],
	'canviewthreads'        => $vbphrase['can_view_threads'],
	'canviewothers'         => $vbphrase['can_view_others_threads'],
	'cansearch'             => $vbphrase['can_search_forum'],
	'canemail'              => $vbphrase['can_use_email_to_friend'],
	'canpostnew'            => $vbphrase['can_post_threads'],
	'canreplyown'           => $vbphrase['can_reply_to_own_threads'],
	'canreplyothers'        => $vbphrase['can_reply_to_others_threads'],
	'caneditpost'           => $vbphrase['can_edit_own_posts'],
	'candeletepost'         => $vbphrase['can_delete_own_posts'],
	'candeletethread'       => $vbphrase['can_delete_own_threads'],
	'canopenclose'          => $vbphrase['can_open_close_own_threads'],
	'canmove'               => $vbphrase['can_move_own_threads'],
开发者ID:hungnv0789,项目名称:vhtm,代码行数:31,代码来源:resources.php

示例4: error_reporting

// ######################## SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// ##################### DEFINE IMPORTANT CONSTANTS #######################
define('CVS_REVISION', '$RCSfile$ - $Revision: 37230 $');
// #################### PRE-CACHE TEMPLATES AND DATA ######################
$phrasegroups = array('sql', 'user', 'cpuser');
$specialtemplates = array();
// ########################## REQUIRE BACK-END ############################
require_once './global.php';
$vbulletin->input->clean_array_gpc('r', array('query' => TYPE_STR));
// ############################# LOG ACTION ###############################
log_admin_action(!empty($vbulletin->GPC['query']) ? "query = '" . htmlspecialchars_uni($vbulletin->GPC['query']) . "'" : '');
// ########################################################################
// ######################### START MAIN SCRIPT ############################
// ########################################################################
print_cp_header($vbphrase['execute_sql_query']);
if (!$vbulletin->debug) {
    $userids = explode(',', str_replace(' ', '', $vbulletin->config['SpecialUsers']['canrunqueries']));
    if (!in_array($vbulletin->userinfo['userid'], $userids)) {
        print_stop_message('no_permission_queries');
    }
}
if (empty($_REQUEST['do'])) {
    $_REQUEST['do'] = 'modify';
}
// define auto queries
$queryoptions = array('-1' => '', $vbphrase['all_users'] => array('10' => $vbphrase['yes'] . ' - ' . $vbphrase['invisible_mode'], '80' => $vbphrase['no'] . ' - ' . $vbphrase['invisible_mode'], '20' => $vbphrase['yes'] . ' - ' . $vbphrase['allow_vcard_download'], '90' => $vbphrase['no'] . ' - ' . $vbphrase['allow_vcard_download'], '30' => $vbphrase['yes'] . ' - ' . $vbphrase['receive_admin_emails'], '100' => $vbphrase['no'] . ' - ' . $vbphrase['receive_admin_emails'], '40' => $vbphrase['yes'] . ' - ' . $vbphrase['display_email'], '110' => $vbphrase['no'] . ' - ' . $vbphrase['display_email'], '50' => $vbphrase['yes'] . ' - ' . $vbphrase['receive_private_messages'], '120' => $vbphrase['no'] . ' - ' . $vbphrase['receive_private_messages'], '60' => $vbphrase['yes'] . ' - ' . $vbphrase['send_notification_email_when_a_private_message_is_received'], '130' => $vbphrase['no'] . ' - ' . $vbphrase['send_notification_email_when_a_private_message_is_received'], '70' => $vbphrase['yes'] . ' - ' . $vbphrase['pop_up_notification_box_when_a_private_message_is_received'], '140' => $vbphrase['no'] . ' - ' . $vbphrase['pop_up_notification_box_when_a_private_message_is_received'], '150' => $vbphrase['on'] . ' - ' . $vbphrase['display_signatures'], '180' => $vbphrase['off'] . ' - ' . $vbphrase['display_signatures'], '160' => $vbphrase['on'] . ' - ' . $vbphrase['display_avatars'], '190' => $vbphrase['off'] . ' - ' . $vbphrase['display_avatars'], '170' => $vbphrase['on'] . ' - ' . $vbphrase['display_images'], '200' => $vbphrase['off'] . ' - ' . $vbphrase['display_images'], '175' => $vbphrase['on'] . ' - ' . $vbphrase['display_reputation'], '205' => $vbphrase['off'] . ' - ' . $vbphrase['display_reputation'], '176' => $vbphrase['on'] . ' - ' . $vbphrase['enahnced_attachment_uploading'], '206' => $vbphrase['off'] . ' - ' . $vbphrase['enahnced_attachment_uploading'], 'blank1' => '', '210' => $vbphrase['subscribe_choice_none'], '220' => $vbphrase['subscribe_choice_0'], '230' => $vbphrase['subscribe_choice_1'], '240' => $vbphrase['subscribe_choice_2'], '250' => $vbphrase['subscribe_choice_3'], 'blank2' => '', '270' => $vbphrase['thread_display_mode'] . ' - ' . $vbphrase['linear'], '280' => $vbphrase['thread_display_mode'] . ' - ' . $vbphrase['threaded'], '290' => $vbphrase['thread_display_mode'] . ' - ' . $vbphrase['hybrid'], 'blank3' => '', '260' => $vbphrase['posts'] . ' - ' . $vbphrase['oldest_first'], '265' => $vbphrase['posts'] . ' - ' . $vbphrase['newest_first'], 'blank4' => '', '300' => $vbphrase['do_not_show_editor_toolbar'], '310' => $vbphrase['show_standard_editor_toolbar'], '320' => $vbphrase['show_enhanced_editor_toolbar']), $vbphrase['all_forums'] => array('400' => $vbphrase['show_threads_from_last_day'], '405' => $vbphrase['show_threads_from_last_week'], '410' => $vbphrase['show_threads_from_last_month'], '415' => $vbphrase['show_threads_from_last_year'], '420' => $vbphrase['show_all_threads']));
($hook = vBulletinHook::fetch_hook('admin_queries_auto_options')) ? eval($hook) : false;
// ##################### START DO QUERY #####################
if ($_POST['do'] == 'doquery') {
    require_once DIR . '/includes/functions_misc.php';
开发者ID:0hyeah,项目名称:yurivn,代码行数:31,代码来源:queries.php

示例5: array

$phrasegroups = array('reputation', 'user', 'reputationlevel');
$specialtemplates = array();
// ########################## REQUIRE BACK-END ############################
require_once './global.php';
require_once DIR . '/includes/adminfunctions_reputation.php';
// ######################## CHECK ADMIN PERMISSIONS #######################
if (!can_administer('canadminusers')) {
    print_cp_no_permission();
}
$vbulletin->input->clean_array_gpc('r', array('reputationlevelid' => TYPE_INT, 'minimumreputation' => TYPE_INT));
// ############################# LOG ACTION ###############################
log_admin_action(iif($vbulletin->GPC['reputationlevelid'] != 0, " reputationlevel id = " . $vbulletin->GPC['reputationlevelid'], iif($vbulletin->GPC['minimumreputation'] != 0, "minimum reputation = " . $vbulletin->GPC['minimumreputation'], '')));
// ########################################################################
// ######################### START MAIN SCRIPT ############################
// ########################################################################
print_cp_header($vbphrase['user_reputation_manager']);
// *************************************************************************************************
if (empty($_REQUEST['do'])) {
    $_REQUEST['do'] = 'modify';
}
// *************************************************************************************************
if ($_REQUEST['do'] == 'add' or $_REQUEST['do'] == 'edit') {
    $vbulletin->input->clean_array_gpc('r', array('reputationlevelid' => TYPE_INT));
    print_form_header('adminreputation', 'update');
    if ($vbulletin->GPC['reputationlevelid']) {
        $reputationlevel = $db->query_first("\n\t\t\t\tSELECT *\n\t\t\t\tFROM " . TABLE_PREFIX . "reputationlevel\n\t\t\t\tWHERE reputationlevelid = " . $vbulletin->GPC['reputationlevelid']);
        $level = 'reputation' . $reputationlevel['reputationlevelid'];
        if ($phrase = $db->query_first("\n\t\t\tSELECT varname, text\n\t\t\tFROM " . TABLE_PREFIX . "phrase\n\t\t\tWHERE languageid = 0 AND\n\t\t\t\t\tfieldname = 'reputationlevel' AND\n\t\t\t\t\tvarname IN ('{$level}')\n\t\t")) {
            $reputationlevel['level'] = $phrase['text'];
            $reputationlevel['levelvarname'] = 'reputation' . $reputationlevel['reputationlevelid'];
        }
开发者ID:0hyeah,项目名称:yurivn,代码行数:31,代码来源:adminreputation.php

示例6: array

// #################### PRE-CACHE TEMPLATES AND DATA ######################
$phrasegroups = array('user', 'cpuser', 'infraction', 'infractionlevel', 'banning');
$specialtemplates = array();
// ########################## REQUIRE BACK-END ############################
require_once './global.php';
// ######################## CHECK ADMIN PERMISSIONS #######################
if (!can_administer('canadminusers')) {
    print_cp_no_permission();
}
// ############################# LOG ACTION ###############################
$vbulletin->input->clean_array_gpc('r', array('infractionlevelid' => TYPE_INT, 'infractiongroupid' => TYPE_UINT, 'infractionbanid' => TYPE_UINT));
log_admin_action(!empty($vbulletin->GPC['infractionlevelid']) ? 'infractionlevel id = ' . $vbulletin->GPC['infractionlevelid'] : '');
// ########################################################################
// ######################### START MAIN SCRIPT ############################
// ########################################################################
print_cp_header($vbphrase['user_infraction_manager']);
if (empty($_REQUEST['do'])) {
    $_REQUEST['do'] = 'modify';
}
// ###################### Start add #######################
if ($_REQUEST['do'] == 'editlevel') {
    print_form_header('admininfraction', 'updatelevel');
    if (!empty($vbulletin->GPC['infractionlevelid'])) {
        $infraction = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "infractionlevel WHERE infractionlevelid = " . $vbulletin->GPC['infractionlevelid']);
        $title = 'infractionlevel' . $infraction['infractionlevelid'] . '_title';
        if ($phrase = $db->query_first("\n\t\t\tSELECT text\n\t\t\tFROM " . TABLE_PREFIX . "phrase\n\t\t\tWHERE languageid = 0 AND\n\t\t\t\tfieldname = 'infractionlevel' AND\n\t\t\t\tvarname = '{$title}'\n\t\t")) {
            $infraction['title'] = $phrase['text'];
            $infraction['titlevarname'] = 'infractionlevel' . $infraction['infractionlevelid'] . '_title';
        }
        if ($infraction['period'] == 'N') {
            $infraction['expires'] = '';
开发者ID:benyamin20,项目名称:vbregistration,代码行数:31,代码来源:admininfraction.php

示例7: print_cp_no_permission

//inits classloader -- required to make vB_Cache work
require_once DIR . '/includes/class_bootstrap_framework.php';
vB_Bootstrap_Framework::init();
// ######################## CHECK ADMIN PERMISSIONS #######################
// don't allow demo version or admin with no permission to administer plugins
if (is_demo_mode() or !can_administer('canadminplugins')) {
    print_cp_no_permission();
}
$vbulletin->input->clean_array_gpc('r', array('pluginid' => TYPE_UINT));
// ############################# LOG ACTION ###############################
log_admin_action(iif($vbulletin->GPC['pluginid'] != 0, 'plugin id = ' . $vbulletin->GPC['pluginid']));
// #############################################################################
// ########################### START MAIN SCRIPT ###############################
// #############################################################################
if ($_REQUEST['do'] != 'download' and $_REQUEST['do'] != 'productexport') {
    print_cp_header($vbphrase['plugin_products_system']);
}
if (empty($_REQUEST['do'])) {
    $_REQUEST['do'] = 'modify';
}
if (in_array($_REQUEST['do'], array('modify', 'files', 'edit', 'add', 'product', 'productadd', 'productedit'))) {
    if (!$vbulletin->options['enablehooks'] or defined('DISABLE_HOOKS')) {
        print_table_start();
        if (!$vbulletin->options['enablehooks']) {
            print_description_row($vbphrase['plugins_disabled_options']);
        } else {
            print_description_row($vbphrase['plugins_disable_config']);
        }
        print_table_footer(2, '', '', false);
    }
}
开发者ID:Kheros,项目名称:MMOver,代码行数:31,代码来源:plugin.php

示例8: array

// #################### PRE-CACHE TEMPLATES AND DATA ######################
$phrasegroups = array('cppermission', 'forum', 'moderator');
$specialtemplates = array();
// ########################## REQUIRE BACK-END ############################
require_once './global.php';
// ######################## CHECK ADMIN PERMISSIONS #######################
if (!can_administer('canadminforums')) {
    print_cp_no_permission();
}
$vbulletin->input->clean_array_gpc('r', array('forumid' => TYPE_INT, 'moderatorid' => TYPE_UINT, 'userid' => TYPE_UINT, 'modusername' => TYPE_STR, 'redir' => TYPE_NOHTML));
// ############################# LOG ACTION ###############################
log_admin_action($vbulletin->GPC['moderatorid'] != 0 ? " moderator id = " . $vbulletin->GPC['moderatorid'] : ($vbulletin->GPC['forumid'] != 0 ? "forum id = " . $vbulletin->GPC['forumid'] : ($vbulletin->GPC['userid'] != 0 ? "user id = " . $vbulletin->GPC['userid'] : (!empty($vbulletin->GPC['modusername']) ? "mod username = " . $vbulletin->GPC['modusername'] : ''))));
// ########################################################################
// ######################### START MAIN SCRIPT ############################
// ########################################################################
print_cp_header($vbphrase['moderator_manager']);
if (empty($_REQUEST['do'])) {
    $_REQUEST['do'] = 'modify';
}
// ###################### Start add / edit moderator #######################
if ($_REQUEST['do'] == 'add' or $_REQUEST['do'] == 'edit' or $_REQUEST['do'] == 'editglobal') {
    require_once DIR . '/includes/class_bitfield_builder.php';
    if (vB_Bitfield_Builder::build(false) !== false) {
        $myobj =& vB_Bitfield_Builder::init();
        if (sizeof($myobj->data['misc']['moderatorpermissions']) != sizeof($vbulletin->bf_misc_moderatorpermissions) or sizeof($myobj->data['misc']['moderatorpermissions2']) != sizeof($vbulletin->bf_misc_moderatorpermissions2)) {
            $myobj->save($db);
            define('CP_REDIRECT', $vbulletin->scriptpath);
            print_stop_message('rebuilt_bitfields_successfully');
        }
    } else {
        echo "<strong>error</strong>\n";
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:moderator.php

示例9: print_cp_header

			debug : false
		});
	</script>
	<?php 
}
// ########################################################################
// ######################### START MAIN SCRIPT ############################
// ########################################################################
if (!isset($_GET['act'])) {
    if (isset($_POST['act'])) {
        $_GET['act'] = $_POST['act'];
    } else {
        $_GET['act'] = 1;
    }
}
print_cp_header('QuantumHacks vbMailer');
if ($_GET['do'] == 'manage_attachments') {
    if ($_GET['act'] == 1) {
        print_form_header('qhvbmailer', 'manage_attachments', true, true, '', '50%');
        print_table_header('Add Attachment');
        construct_hidden_code('act', '2');
        print_upload_row('Browse...', 'attachment_file');
        print_submit_row('Upload');
        $select_options[0] = "---Select---";
        $sql = "SELECT * FROM " . TABLE_PREFIX . "qhvbmailer_attachments ORDER BY created DESC";
        $attachments = $db->query_read_slave($sql);
        while ($attachment = $db->fetch_array($attachments)) {
            $select_options[$attachment['id']] = $attachment['filename'];
        }
        print_form_header('qhvbmailer', 'manage_attachments', false, true, '', '50%');
        print_table_header('Delete Attachment');
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:qhvbmailer.php

示例10: define

define('CVS_REVISION', '$RCSfile$ - $Revision: 26275 $');
// #################### PRE-CACHE TEMPLATES AND DATA ######################
$phrasegroups = array('logging', 'threadmanage');
$specialtemplates = array();
// ########################## REQUIRE BACK-END ############################
require_once './global.php';
require_once DIR . '/includes/functions_log_error.php';
// ############################# LOG ACTION ###############################
if (!can_administer('canadminmodlog')) {
    print_cp_no_permission();
}
log_admin_action();
// ########################################################################
// ######################### START MAIN SCRIPT ############################
// ########################################################################
print_cp_header($vbphrase['moderator_log']);
if (empty($_REQUEST['do'])) {
    $_REQUEST['do'] = 'choose';
}
// ###################### Start view #######################
if ($_REQUEST['do'] == 'view') {
    $vbulletin->input->clean_array_gpc('r', array('perpage' => TYPE_UINT, 'pagenumber' => TYPE_UINT, 'userid' => TYPE_UINT, 'modaction' => TYPE_STR, 'orderby' => TYPE_NOHTML, 'product' => TYPE_STR, 'startdate' => TYPE_UNIXTIME, 'enddate' => TYPE_UNIXTIME));
    $princids = array('poll_question' => $vbphrase['question'], 'post_title' => $vbphrase['post'], 'thread_title' => $vbphrase['thread'], 'forum_title' => $vbphrase['forum'], 'attachment_title' => $vbphrase['attachment']);
    $sqlconds = array();
    $hook_query_fields = $hook_query_joins = '';
    if ($vbulletin->GPC['perpage'] < 1) {
        $vbulletin->GPC['perpage'] = 15;
    }
    if ($vbulletin->GPC['userid'] or $vbulletin->GPC['modaction']) {
        if ($vbulletin->GPC['userid']) {
            $sqlconds[] = "moderatorlog.userid = " . $vbulletin->GPC['userid'];
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:modlog.php

示例11: array

$phrasegroups = array('cppermission', 'cpuser', 'promotion', 'pm', 'cpusergroup');
$specialtemplates = array();
// ########################## REQUIRE BACK-END ############################
require_once './global.php';
require_once DIR . '/includes/functions_ranks.php';
// ######################## CHECK ADMIN PERMISSIONS #######################
if (!can_administer('canadminpermissions')) {
    print_cp_no_permission();
}
// ############################# LOG ACTION ###############################
$vbulletin->input->clean_array_gpc('r', array('usergroupid' => TYPE_INT, 'usergroupleaderid' => TYPE_INT));
log_admin_action(!empty($vbulletin->GPC['usergroupid']) ? "usergroup id = " . $vbulletin->GPC['usergroupid'] : (!empty($vbulletin->GPC['usergroupleaderid']) ? "leader id = " . $vbulletin->GPC['usergroupleaderid'] : ''));
// ########################################################################
// ######################### START MAIN SCRIPT ############################
// ########################################################################
print_cp_header($vbphrase['usergroup_manager']);
if (empty($_REQUEST['do'])) {
    $_REQUEST['do'] = 'modify';
}
// ###################### Start getuserid #######################
function fetch_userid_from_username($username)
{
    global $vbulletin;
    if ($user = $vbulletin->db->query_first("SELECT userid FROM " . TABLE_PREFIX . "user WHERE username = '" . $vbulletin->db->escape_string(trim($username)) . "'")) {
        return $user['userid'];
    } else {
        return false;
    }
}
// ###################### Start add / update #######################
if ($_REQUEST['do'] == 'add' or $_REQUEST['do'] == 'edit') {
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:usergroup.php

示例12: VALUES

    if ($exists = $db->query_first_slave("SELECT templateid\tFROM " . TABLE_PREFIX . "template WHERE\ttitle = 'bbcode_video' AND product IN ('', 'vbulletin')\tAND\tstyleid = -1")) {
        $db->query_write("UPDATE " . TABLE_PREFIX . "template SET\n\t\t\t\ttemplate = '" . $db->escape_string($t) . "',\n\t\t\t\ttemplate_un = '" . $db->escape_string($template) . "',\n\t\t\t\tdateline = " . TIMENOW . ",\n\t\t\t\tusername = '" . $db->escape_string($vbulletin->userinfo['username']) . "',\n\t\t\t\tversion = '" . $vbulletin->options['templateversion'] . "'\n\t\t\tWHERE\n\t\t\t\ttemplateid = {$exists['templateid']}\n\t\t");
    } else {
        $db->query_write("REPLACE INTO " . TABLE_PREFIX . "template (template, template_un, dateline, username, templatetype, styleid, title, product, version) VALUES (\n\t\t\t\t\t'" . $db->escape_string($t) . "',\n\t\t\t\t\t'" . $db->escape_string($template) . "',\n\t\t\t\t\t" . TIMENOW . ",\n\t\t\t\t\t'" . $db->escape_string($vbulletin->userinfo['username']) . "',\n\t\t\t\t\t'template',\n\t\t\t\t\t'-1',\n\t\t\t\t\t'bbcode_video',\n\t\t\t\t\t'vbulletin',\n\t\t\t\t\t'" . $vbulletin->options['templateversion'] . "')\n\t\t");
    }
    print_cp_header("AME");
    build_all_styles();
    define('CP_REDIRECT', 'ame.php' . ($_REQUEST['to'] ? '?do=' . $_REQUEST['to'] . ($_REQUEST['toid'] ? "&amp;providerid=" . $_REQUEST['toid'] : '') : ''));
    print_stop_message('rebuilt_video_bbcodes_successfully');
}
/**
 * Don't print off header stuff if we are exporting
 * definitions
 */
if ($_REQUEST['do'] != "doexport") {
    print_cp_header("AME");
    ?>

	<script type="text/javascript">
		function grab_left(str, n)
	    {
	            if (n <= 0)
	            {
	                return "";
	            }
	            else if (n > String(str).length)
	            {
	                return str;
	            }
	            else
	            {
开发者ID:rcdesign-cemetery,项目名称:vb-foreign_mod_fixes,代码行数:31,代码来源:ame.php

示例13: array

$phrasegroups = array('cron', 'logging');
$specialtemplates = array();
// ########################## REQUIRE BACK-END ############################
require_once dirname(__FILE__) . '/global.php';
// ######################## CHECK ADMIN PERMISSIONS #######################
if (is_demo_mode() or !can_administer('canadmincron')) {
    print_cp_no_permission();
}
// ############################# LOG ACTION ###############################
$vbulletin->input->clean_array_gpc('r', array('cronid' => vB_Cleaner::TYPE_INT));
log_admin_action(iif($vbulletin->GPC['cronid'] != 0, 'cron id = ' . $vbulletin->GPC['cronid']));
// ########################################################################
// ######################### START MAIN SCRIPT ############################
// ########################################################################
$vb5_config =& vB::getConfig();
print_cp_header($vbphrase['scheduled_task_manager_gcron']);
if (empty($_REQUEST['do'])) {
    $_REQUEST['do'] = 'modify';
}
// ############## quick enabled/disabled status ################
if ($_POST['do'] == 'updateenabled') {
    $vbulletin->input->clean_gpc('p', 'enabled', vB_Cleaner::TYPE_ARRAY_BOOL);
    $updates = array();
    //$crons_result = $vbulletin->db->query_read("SELECT varname, active FROM " . TABLE_PREFIX . "cron");
    $crons_result = vB::getDbAssertor()->assertQuery('cron');
    foreach ($crons_result as $cron) {
        $old = $cron['active'] ? 1 : 0;
        $new = $vbulletin->GPC['enabled']["{$cron['varname']}"] ? 1 : 0;
        if ($old != $new) {
            $updates["{$cron['varname']}"] = $new;
        }
开发者ID:cedwards-reisys,项目名称:nexus-web,代码行数:31,代码来源:cronadmin.php

示例14: print_cp_no_permission

require_once DIR . '/includes/functions_misc.php';
require_once DIR . '/includes/class_bbcode.php';
// ######################## CHECK ADMIN PERMISSIONS #######################
if (!can_administer('canadminbbcodes')) {
    print_cp_no_permission();
}
// ############################# LOG ACTION ###############################
$vbulletin->input->clean_array_gpc('r', array('bbcodeid' => TYPE_INT));
log_admin_action(iif($vbulletin->GPC['bbcodeid'] != 0, "bbcode id = " . $vbulletin->GPC['bbcodeid']));
// ########################################################################
// ######################### START MAIN SCRIPT ############################
// ########################################################################
if ($_REQUEST['do'] != 'previewbbcode') {
    print_cp_header($vbphrase['bb_code_manager']);
} else {
    print_cp_header();
}
if (empty($_REQUEST['do'])) {
    $_REQUEST['do'] = 'modify';
}
// ########################################### ADD #####################################################
if ($_REQUEST['do'] == 'add') {
    print_form_header('bbcode', 'insert');
    print_table_header($vbphrase['add_new_bb_code']);
    print_input_row($vbphrase['title'], 'title');
    print_input_row($vbphrase['bb_code_tag_name'], 'bbcodetag');
    print_textarea_row($vbphrase['replacement'], 'bbcodereplacement', '', 5, 60);
    print_input_row($vbphrase['example'], 'bbcodeexample');
    print_textarea_row($vbphrase['description'], 'bbcodeexplanation', '', 10, 60);
    print_yes_no_row($vbphrase['use_option'], 'twoparams', 0);
    print_input_row($vbphrase['button_image_desc'], 'buttonimage', '');
开发者ID:benyamin20,项目名称:vbregistration,代码行数:31,代码来源:bbcode.php

示例15: array

$phrasegroups = array('user', 'cpuser', 'cprank');
$specialtemplates = array();
// ########################## REQUIRE BACK-END ############################
require_once './global.php';
require_once DIR . '/includes/functions_ranks.php';
// ######################## CHECK ADMIN PERMISSIONS #######################
if (!can_administer('canadminusers')) {
    print_cp_no_permission();
}
$vbulletin->input->clean_array_gpc('r', array('rankid' => TYPE_UINT));
// ############################# LOG ACTION ###############################
log_admin_action(!empty($vbulletin->GPC['rankid']) ? "rank id = " . $vbulletin->GPC['rankid'] : '');
// ########################################################################
// ######################### START MAIN SCRIPT ############################
// ########################################################################
print_cp_header($vbphrase['user_rank_manager']);
if (empty($_REQUEST['do'])) {
    $_REQUEST['do'] = 'modify';
}
// ###################### Start insert #######################
if ($_POST['do'] == 'insert') {
    $vbulletin->input->clean_array_gpc('p', array('ranklevel' => TYPE_UINT, 'minposts' => TYPE_UINT, 'rankimg' => TYPE_STR, 'usergroupid' => TYPE_INT, 'doinsert' => TYPE_STR, 'rankhtml' => TYPE_NOTRIM, 'stack' => TYPE_UINT, 'display' => TYPE_UINT));
    if (!$vbulletin->GPC['ranklevel'] or !$vbulletin->GPC['rankimg'] and !$vbulletin->GPC['rankhtml']) {
        if ($vbulletin->GPC['doinsert']) {
            echo '<p><b>' . $vbphrase['invalid_file_path_specified'] . '</b></p>';
            $vbulletin->GPC['rankimg'] = $vbulletin->GPC['doinsert'];
        } else {
            print_stop_message('please_complete_required_fields');
        }
    }
    if ($vbulletin->GPC['usergroupid'] == -1) {
开发者ID:0hyeah,项目名称:yurivn,代码行数:31,代码来源:ranks.php


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