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


PHP construct_hidden_code函数代码示例

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


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

示例1: print_statistic_code

function print_statistic_code($title, $name, $start, $end, $nullvalue = true, $scope = 'daily', $sort = 'date_desc')
{

	global $vbphrase;

	print_form_header('stats', $name);
	print_table_header($title);

	print_time_row($vbphrase['start_date'], 'start', $start, false);
	print_time_row($vbphrase['end_date'], 'end', $end, false);

	if ($name != 'activity')
	{
		print_select_row($vbphrase['scope'], 'scope', array('daily' => $vbphrase['daily'], 'weekly' => $vbphrase['weekly'], 'monthly' => $vbphrase['monthly']), $scope);
	}
	else
	{
		construct_hidden_code('scope', 'daily');
	}
	print_select_row($vbphrase['order_by'], 'sort', array(
		'date_asc'   => $vbphrase['date_ascending'],
		'date_desc'  => $vbphrase['date_descending'],
		'total_asc'  => $vbphrase['total_ascending'],
		'total_desc' => $vbphrase['total_descending'],
	), $sort);
	print_yes_no_row($vbphrase['include_empty_results'], 'nullvalue', $nullvalue);
	print_submit_row($vbphrase['go']);
}
开发者ID:hungnv0789,项目名称:vhtm,代码行数:28,代码来源:adminfunctions_stats.php

示例2: array

if ($_POST['do'] == 'update') {
    $vbulletin->input->clean_array_gpc('p', array('cronid' => vB_Cleaner::TYPE_INT, 'varname' => vB_Cleaner::TYPE_STR, 'filename' => vB_Cleaner::TYPE_STR, 'title' => vB_Cleaner::TYPE_STR, 'description' => vB_Cleaner::TYPE_STR, 'logphrase' => vB_Cleaner::TYPE_STR, 'weekday' => vB_Cleaner::TYPE_STR, 'day' => vB_Cleaner::TYPE_STR, 'hour' => vB_Cleaner::TYPE_STR, 'minute' => vB_Cleaner::TYPE_ARRAY, 'active' => vB_Cleaner::TYPE_INT, 'loglevel' => vB_Cleaner::TYPE_INT, 'filename' => vB_Cleaner::TYPE_STR, 'product' => vB_Cleaner::TYPE_STR, 'volatile' => vB_Cleaner::TYPE_INT));
    try {
        vB_Api::instanceInternal('cron')->save($vbulletin->GPC, $vbulletin->GPC['cronid']);
    } catch (vB_Exception_Api $e) {
        $errors = $e->get_errors();
        $errors = array_pop($errors);
        print_stop_message2($errors[0]);
    }
    print_stop_message2(array('saved_scheduled_task_x_successfully', $vbulletin->GPC['title']), 'cronadmin', array('do' => 'modify'));
}
// ###################### Start Remove #######################
if ($_REQUEST['do'] == 'remove') {
    $vbulletin->input->clean_array_gpc('r', array('cronid' => vB_Cleaner::TYPE_INT));
    print_form_header('cronadmin', 'kill');
    construct_hidden_code('cronid', $vbulletin->GPC['cronid']);
    print_table_header($vbphrase['confirm_deletion_gcpglobal']);
    print_description_row($vbphrase['are_you_sure_you_want_to_delete_this_scheduled_task']);
    print_submit_row($vbphrase['yes'], '', 2, $vbphrase['no']);
}
// ###################### Start Kill #######################
if ($_POST['do'] == 'kill') {
    $vbulletin->input->clean_array_gpc('p', array('cronid' => vB_Cleaner::TYPE_INT));
    vB_Api::instanceInternal('cron')->delete($vbulletin->GPC['cronid']);
    print_stop_message2('deleted_scheduled_task_successfully', 'cronadmin', array('do' => 'modify'));
}
// ###################### Start switchactive #######################
if ($_REQUEST['do'] == 'switchactive') {
    $vbulletin->input->clean_array_gpc('r', array('cronid' => vB_Cleaner::TYPE_INT));
    verify_cp_sessionhash();
    try {
开发者ID:cedwards-reisys,项目名称:nexus-web,代码行数:31,代码来源:cronadmin.php

示例3: define

                         echo "Repair Complete<br />\n";
                     }
                 }
                 echo "Overall Repair complete<br />";
                 define('SCRIPT_REDIRECT', true);
             }
             break;
     }
 } else {
     if ($_REQUEST['do'] == 'user') {
         $vbulletin->input->clean_array_gpc('p', array('user' => TYPE_STR));
         switch ($vbulletin->GPC['type']) {
             case 'access':
                 if (empty($vbulletin->GPC['user'])) {
                     print_form_header('tools', 'user');
                     construct_hidden_code('type', 'access');
                     print_table_header('Enter username to restore access to');
                     print_input_row('User Name', 'user', '');
                     print_submit_row('Submit', '');
                 } else {
                     $userid = $db->query_first("SELECT userid, usergroupid FROM " . TABLE_PREFIX . "user WHERE username = '" . $db->escape_string(htmlspecialchars_uni($vbulletin->GPC['user'])) . "'");
                     if (empty($userid['userid'])) {
                         echo '<p align="center">Invalid username</p>';
                     } else {
                         // lets check that usergroupid 6 is still admin
                         $ugroup = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "usergroup WHERE usergroupid = 6 AND (adminpermissions & " . $vbulletin->bf_ugp_adminpermissions['cancontrolpanel'] . ")");
                         if (empty($ugroup['usergroupid'])) {
                             // lets give them admin permissions again
                             $db->query_write("UPDATE " . TABLE_PREFIX . "usergroup SET adminpermissions = 3 WHERE usergroupid = 6");
                             build_forum_permissions();
                         }
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:tools.php

示例4: ON

			SELECT user.userid, user.username, user.usergroupid AS busergroupid,
				userban.usergroupid AS ousergroupid,
				IF(userban.displaygroupid = 0, userban.usergroupid, userban.displaygroupid) AS odisplaygroupid,
				bandate, liftdate, reason,
				adminuser.userid AS adminid, adminuser.username AS adminname
			FROM " . TABLE_PREFIX . "user AS user
			LEFT JOIN " . TABLE_PREFIX . "userban AS userban ON(userban.userid = user.userid)
			LEFT JOIN " . TABLE_PREFIX . "user AS adminuser ON(adminuser.userid = userban.adminid)
			WHERE user.usergroupid IN(" . implode(',', array_keys($querygroups)) . ")
				AND (userban.liftdate = 0 OR userban.liftdate = NULL)
			ORDER BY user.username
			LIMIT $start, $perpage
		");

		print_form_header('banning', 'banuser');
		construct_hidden_code('period', 'PERMANENT');
		print_table_header("$vbphrase[banned_users]: $vbphrase[permanent_ban] <span class=\"normal\">$vbphrase[usergroups]: " . implode(', ', $querygroups) . '</span>', 8);
		if ($pagecount > 1)
		{
			$pagenav = "<strong>$vbphrase[go_to_page]</strong>";
			for ($thispage = 1; $thispage <= $pagecount; $thispage++)
			{
				if ($thispage == $vbulletin->GPC['pagenumber'])
				{
					$pagenav .= " <strong>[$thispage]</strong> ";
				}
				else
				{
					$pagenav .= " <a href=\"banning.php?$session[sessionurl]do=modify&amp;page=$thispage\" class=\"normal\">$thispage</a> ";
				}
			}
开发者ID:hungnv0789,项目名称:vhtm,代码行数:31,代码来源:banning.php

示例5: print_input_row

    print_input_row($vbphrase['minimum_posts'], 'minposts', $usertitle['minposts']);
    print_submit_row($vbphrase['save']);
}
// ###################### Start do update #######################
if ($_POST['do'] == 'doupdate') {
    $vbulletin->input->clean_array_gpc('p', array('title' => vB_Cleaner::TYPE_STR, 'minposts' => vB_Cleaner::TYPE_UINT));
    if (empty($vbulletin->GPC['title'])) {
        print_stop_message2('invalid_user_title_specified');
    }
    $assertor->update('usertitle', array('title' => $vbulletin->GPC['title'], 'minposts' => $vbulletin->GPC['minposts']), array('usertitleid' => $vbulletin->GPC['usertitleid']));
    print_stop_message2(array('saved_user_title_x_successfully', $vbulletin->GPC['title']), 'usertitle', array('do' => 'modify'));
}
// ###################### Start Remove #######################
if ($_REQUEST['do'] == 'remove') {
    print_form_header('usertitle', 'kill');
    construct_hidden_code('usertitleid', $vbulletin->GPC['usertitleid']);
    print_table_header($vbphrase['confirm_deletion_gcpglobal']);
    print_description_row($vbphrase['are_you_sure_you_want_to_delete_this_user_title']);
    print_submit_row($vbphrase['yes'], '', 2, $vbphrase['no']);
}
// ###################### Start Kill #######################
if ($_POST['do'] == 'kill') {
    $assertor->delete('usertitle', array('usertitleid' => $vbulletin->GPC['usertitleid']));
    print_stop_message2('deleted_user_title_successfully', 'usertitle', array('do' => 'modify'));
}
// ###################### Start modify #######################
if ($_REQUEST['do'] == 'modify') {
    $usertitles = $assertor->getRows('usertitle', array(), 'minposts');
    ?>
	<script type="text/javascript">
	function js_usergroup_jump(usertitleid, obj)
开发者ID:cedwards-reisys,项目名称:nexus-web,代码行数:31,代码来源:usertitle.php

示例6: preg_replace

            $sugg = preg_replace('#\\s+#s', '_', strtolower($vbulletin->GPC['productid']));
            $sugg = preg_replace('#[^\\w]#s', '', $sugg);
            $sugg = str_replace('__', '_', $sugg);
            $sugg = substr($sugg, 0, 25);
            print_stop_message('product_id_invalid', htmlspecialchars_uni($vbulletin->GPC['productid']), $sugg);
        }
        // reserve 'vb' prefix for official vBulletin products
        if (!$vbulletin->GPC['confirm'] and strtolower(substr($vbulletin->GPC['productid'], 0, 2)) == 'vb') {
            print_form_header('plugin', 'productsave');
            print_table_header($vbphrase['vbulletin_message']);
            print_description_row(htmlspecialchars_uni($vbulletin->GPC['title']) . ' ' . htmlspecialchars_uni($vbulletin->GPC['version']) . '<dfn>' . htmlspecialchars_uni($vbulletin->GPC['description']) . '</dfn>');
            print_input_row($vbphrase['vb_prefix_reserved'], 'productid', $vbulletin->GPC['productid'], true, 35, 25);
            construct_hidden_code('title', $vbulletin->GPC['title']);
            construct_hidden_code('description', $vbulletin->GPC['description']);
            construct_hidden_code('version', $vbulletin->GPC['version']);
            construct_hidden_code('confirm', 1);
            print_submit_row();
            print_cp_footer();
            // execution terminates here
        }
        /* insert query */
        $db->query_write("\r\n\t\t\tINSERT INTO " . TABLE_PREFIX . "product\r\n\t\t\t\t(productid, title, description, version, active, url, versioncheckurl)\r\n\t\t\tVALUES\r\n\t\t\t\t('" . $db->escape_string($vbulletin->GPC['productid']) . "',\r\n\t\t\t\t'" . $db->escape_string($vbulletin->GPC['title']) . "',\r\n\t\t\t\t'" . $db->escape_string($vbulletin->GPC['description']) . "',\r\n\t\t\t\t'" . $db->escape_string($vbulletin->GPC['version']) . "',\r\n\t\t\t\t1,\r\n\t\t\t\t'" . $db->escape_string($vbulletin->GPC['url']) . "',\r\n\t\t\t\t'" . $db->escape_string($vbulletin->GPC['versioncheckurl']) . "')\r\n\t\t");
    }
    // update the products datastore
    build_product_datastore();
    // reload block types
    $blockmanager = vB_BlockManager::create($vbulletin);
    $blockmanager->reloadBlockTypes();
    define('CP_REDIRECT', 'plugin.php?do=product');
    print_stop_message('product_x_updated', $vbulletin->GPC['productid']);
}
开发者ID:Kheros,项目名称:MMOver,代码行数:31,代码来源:plugin.php

示例7: foreach

    foreach ($vbulletin->GPC['adminpermissions'] as $key => $value) {
        $admindm->set_bitfield('adminpermissions', $key, $value);
    }
    ($hook = vBulletinHook::fetch_hook('admin_permissions_process')) ? eval($hook) : false;
    $admindm->set('cssprefs', $vbulletin->GPC['cssprefs']);
    $admindm->set('dismissednews', $vbulletin->GPC['dismissednews']);
    $admindm->save();
    define('CP_REDIRECT', "adminpermissions.php?" . $vbulletin->session->vars['sessionurl'] . "#user{$user['userid']}");
    print_stop_message('saved_administrator_permissions_successfully');
}
// #############################################################################
if ($_REQUEST['do'] == 'edit') {
    echo "<p align=\"center\">{$vbphrase['give_admin_access_arbitrary_html']}</p>";
    print_form_header('adminpermissions', 'update');
    construct_hidden_code('userid', $vbulletin->GPC['userid']);
    construct_hidden_code('oldpermissions', $user['adminpermissions']);
    print_table_header(construct_phrase($vbphrase['x_y_id_z'], $vbphrase['administrator_permissions'], $user['username'], $user['userid']));
    print_label_row("{$vbphrase['administrator']}: <a href=\"user.php?" . $vbulletin->session->vars['sessionurl'] . "do=edit&amp;u=" . $vbulletin->GPC['userid'] . "\">{$user['username']}</a>", '<div align="' . $stylevar['right'] . '"><input type="button" class="button" value=" ' . $vbphrase['all_yes'] . ' " onclick="js_check_all_option(this.form, 1);" /> <input type="button" class="button" value=" ' . $vbphrase['all_no'] . ' " onclick="js_check_all_option(this.form, 0);" /></div>', 'thead');
    foreach (convert_bits_to_array($user['adminpermissions'], $ADMINPERMISSIONS) as $field => $value) {
        print_yes_no_row($permsphrase["{$field}"] == '' ? $vbphrase['n_a'] : $permsphrase["{$field}"], "adminpermissions[{$field}]", $value);
    }
    ($hook = vBulletinHook::fetch_hook('admin_permissions_form')) ? eval($hook) : false;
    print_select_row($vbphrase['control_panel_style_choice'], 'cssprefs', array_merge(array('' => "({$vbphrase['default']})"), fetch_cpcss_options()), $user['cssprefs']);
    print_input_row($vbphrase['dismissed_news_item_ids'], 'dismissednews', $user['dismissednews']);
    print_submit_row();
}
// #############################################################################
if ($_REQUEST['do'] == 'modify') {
    print_form_header('adminpermissions', 'edit');
    print_table_header($vbphrase['administrator_permissions'], 3);
    $users = $db->query_read("\n\t\tSELECT user.username, usergroupid, membergroupids, infractiongroupids, administrator.*\n\t\tFROM " . TABLE_PREFIX . "administrator AS administrator\n\t\tINNER JOIN " . TABLE_PREFIX . "user AS user USING(userid)\n\t\tORDER BY user.username\n\t");
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:adminpermissions.php

示例8: print_stylevar_row

/**
* Prints a row containing an input for editing a stylevar
*
* @param	string	Stylevar title
* @param	string	Stylevar varname
* @param	integer	Size of text box
*/
function print_stylevar_row($title, $varname, $size = 30, $validation_regex = '', $failsafe_value = '')
{
    global $stylevars, $stylevar_info, $vbulletin;
    $color = fetch_inherited_color($stylevar_info["{$varname}"], $vbulletin->GPC['dostyleid']);
    $revertcode = construct_revert_code($stylevar_info["{$varname}"], 'stylevar', $varname);
    if ($help = construct_table_help_button("stylevar[{$varname}]")) {
        $helplink = "&nbsp;{$help}";
    }
    if ($validation_regex != '') {
        construct_hidden_code("stylevar[_validation][{$varname}]", htmlspecialchars_uni($validation_regex));
        construct_hidden_code("stylevar[_failsafe][{$varname}]", htmlspecialchars_uni($failsafe_value));
    }
    print_cells_row(array("<span title=\"\$stylevar[{$varname}]\">{$title}</span>", "<span class=\"smallfont\"><input type=\"text\" class=\"{$color}\" title=\"\$stylevar[{$varname}]\" name=\"stylevar[{$varname}]\" tabindex=\"1\" value=\"" . htmlspecialchars_uni($stylevars["{$varname}"]) . "\" size=\"{$size}\" dir=\"ltr\" /><br />{$revertcode['info']}</span>", "<span class=\"smallfont\">{$revertcode['revertcode']}</span>{$helplink}"));
}
开发者ID:holandacz,项目名称:nb4,代码行数:21,代码来源:adminfunctions_template.php

示例9: print_cp_message

                $db->query_write("DELETE FROM " . TABLE_PREFIX . "phrase WHERE varname='nl_" . $template_id . "_" . $template['varname'] . "_subject'");
                $db->query_write("DELETE FROM " . TABLE_PREFIX . "phrase WHERE varname='nl_" . $template_id . "_" . $template['varname'] . "_text'");
                $db->query_write("DELETE FROM " . TABLE_PREFIX . "phrase WHERE varname='nl_" . $template_id . "_" . $template['varname'] . "_html'");
                print_cp_message('Newsletter deleted!', 'qhvbmailer.php?do=manage_newsletters', 1);
            } else {
                print_cp_message('Error deleting newsletter!', 'qhvbmailer.php?do=manage_newsletters', 2);
            }
        } else {
            print_cp_message('Template ID must be greater than zero!', 'qhvbmailer.php?do=manage_newsletters', 2);
        }
    }
} elseif ($_GET['do'] == 'compose_email') {
    if ($_GET['act'] == 1) {
        print_form_header('qhvbmailer', 'compose_email');
        print_table_header('Compose Email');
        construct_hidden_code('act', '2');
        $sql = "SELECT * FROM " . TABLE_PREFIX . "qhvbmailer_templates WHERE orderr < 1 ORDER BY created DESC";
        $templates = $db->query_read_slave($sql);
        while ($template = $db->fetch_array($templates)) {
            $select_options_templates[$template['id']] = $template_phrases[$template['id'] . "_" . $template['varname'] . "_subject"];
        }
        $select_options_usergroups[0] = 'All Users';
        $sql = "SELECT * FROM " . TABLE_PREFIX . "usergroup";
        $usergroups = $db->query_read_slave($sql);
        while ($usergroup = $db->fetch_array($usergroups)) {
            $select_options_usergroups[$usergroup['usergroupid']] = $usergroup['title'];
        }
        print_select_row('What to send', 'template_id', $select_options_templates);
        print_time_row('When to send', 'date', TIMENOW);
        print_select_row('Who to send to', 'send_to', $select_options_usergroups);
        print_submit_row('Continue', '');
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:qhvbmailer.php

示例10: IN

			}
			</script>
			<?php 
            $groups = $db->query_read("\n\t\t\t\tSELECT usergroupid, title\n\t\t\t\tFROM " . TABLE_PREFIX . "usergroup\n\t\t\t\tWHERE usergroupid NOT IN(1,3,4,5,6)\n\t\t\t\tORDER BY title\n\t\t\t");
            $groupslist = '';
            while ($group = $db->fetch_array($groups)) {
                $groupslist .= "\t<option value=\"{$group['usergroupid']}\">{$group['title']}</option>\n";
            }
            print_form_header('user', 'dopruneusers');
            construct_hidden_code('usergroupid', $vbulletin->GPC['usergroupid']);
            construct_hidden_code('daysprune', $vbulletin->GPC['daysprune']);
            construct_hidden_code('minposts', $vbulletin->GPC['minposts']);
            construct_hidden_code('joindate[day]', $vbulletin->GPC['joindate']['day']);
            construct_hidden_code('joindate[month]', $vbulletin->GPC['joindate']['month']);
            construct_hidden_code('joindate[year]', $vbulletin->GPC['joindate']['year']);
            construct_hidden_code('order', $order);
            print_table_header(construct_phrase($vbphrase['showing_users_x_to_y_of_z'], 1, $numusers, $numusers), 7);
            print_cells_row(array('Userid', $vbphrase['username'], $vbphrase['email'], $vbphrase['post_count'], $vbphrase['last_activity'], $vbphrase['join_date'], '<input type="checkbox" name="allbox" onclick="js_check_all(this.form)" title="' . $vbphrase['check_all'] . '" checked="checked" />'), 1);
            while ($user = $db->fetch_array($users)) {
                $cell = array();
                $cell[] = $user['userid'];
                $cell[] = "<a href=\"user.php?" . $vbulletin->session->vars['sessionurl'] . "do=edit&u={$user['userid']}\" target=\"_blank\">{$user['username']}</a><br /><span class=\"smallfont\">{$user['title']}" . iif($user['moderatorid'], ', Moderator', '') . "</span>";
                $cell[] = "<a href=\"mailto:{$user['email']}\">{$user['email']}</a>";
                $cell[] = vb_number_format($user['posts']);
                $cell[] = vbdate($vbulletin->options['dateformat'], $user['lastactivity']);
                $cell[] = vbdate($vbulletin->options['dateformat'], $user['joindate']);
                if ($user['userid'] == $vbulletin->userinfo['userid'] or $user['usergroupid'] == 6 or $user['usergroupid'] == 5 or $user['moderatorid'] or is_unalterable_user($user['userid'])) {
                    $cell[] = '<input type="button" class="button" value=" ! " onclick="js_alert_no_permission()" />';
                } else {
                    $cell[] = "<input type=\"checkbox\" name=\"users[{$user['userid']}]\" value=\"1\" checked=\"checked\" tabindex=\"1\" />";
                }
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:user.php

示例11: IN

        $sqlconds[] = "action LIKE '%" . $db->escape_string_like($vbulletin->GPC['modaction']) . "%'";
    }
    if ($vbulletin->GPC['product']) {
        if ($vbulletin->GPC['product'] == 'vbulletin') {
            $sqlconds[] = "product IN ('', 'vbulletin')";
        } else {
            $sqlconds[] = "product = '" . $db->escape_string($vbulletin->GPC['product']) . "'";
        }
    }
    $logs = $db->query_first("\n\t\tSELECT COUNT(*) AS total\n\t\tFROM " . TABLE_PREFIX . "moderatorlog\n\t\tWHERE " . (!empty($sqlconds) ? implode("\r\n\tAND ", $sqlconds) : "") . "\n\t");
    if ($logs['total']) {
        print_form_header('modlog', 'doprunelog');
        construct_hidden_code('datecut', $datecut);
        construct_hidden_code('modaction', $vbulletin->GPC['modaction']);
        construct_hidden_code('userid', $vbulletin->GPC['userid']);
        construct_hidden_code('product', $vbulletin->GPC['product']);
        print_table_header($vbphrase['prune_moderator_log']);
        print_description_row(construct_phrase($vbphrase['are_you_sure_you_want_to_prune_x_log_entries_from_moderator_log'], vb_number_format($logs['total'])));
        print_submit_row($vbphrase['yes'], 0, 0, $vbphrase['no']);
    } else {
        print_stop_message('no_logs_matched_your_query');
    }
}
// ###################### Start do prune log #######################
if ($_POST['do'] == 'doprunelog' and can_access_logs($vbulletin->config['SpecialUsers']['canpruneadminlog'], 0, '<p>' . $vbphrase['control_panel_log_pruning_permission_restricted'] . '</p>')) {
    $vbulletin->input->clean_array_gpc('p', array('datecut' => TYPE_UINT, 'modaction' => TYPE_STR, 'userid' => TYPE_UINT, 'product' => TYPE_STR));
    $sqlconds = array("dateline < " . $vbulletin->GPC['datecut']);
    if (!empty($vbulletin->GPC['modaction'])) {
        $sqlconds[] = "action LIKE '%" . $db->escape_string_like($vbulletin->GPC['modaction']) . "%'";
    }
    if (!empty($vbulletin->GPC['userid'])) {
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:modlog.php

示例12: print_description_row

        print_description_row($upgradecore_phrases['dump_database_desc']);
        print_table_footer();
        $sqltable = array('all tables' => $upgradecore_phrases['dump_all_tables']);
        $tables = $db->query_write("SHOW TABLES");
        while ($table = $db->fetch_array($tables, DBARRAY_NUM)) {
            $sqltable["{$table['0']}"] = $table[0];
        }
        print_form_header('upgrade_300b3', 'sqltable');
        print_table_header($upgradecore_phrases['dump_data_to_sql']);
        construct_hidden_code('step', 'backup');
        print_label_row($upgradecore_phrases['choose_table_to_dump'], '<select name="table" class="bginput">' . construct_select_options($sqltable) . '</select>');
        print_submit_row($upgradecore_phrases['dump_tables'], 0);
        unset($sqltable['all tables']);
        print_form_header('upgrade_300b3', 'csvtable');
        print_table_header($upgradecore_phrases['dump_data_to_csv']);
        construct_hidden_code('step', 'backup');
        print_label_row($upgradecore_phrases['backup_individual_table'], '<select name="table" class="bginput">' . construct_select_options($sqltable) . '</select>');
        print_input_row($upgradecore_phrases['field_seperator'], 'separator', ',', 0, 15);
        print_input_row($upgradecore_phrases['quote_character'], 'quotes', "'", 0, 15);
        print_yes_no_row($upgradecore_phrases['show_column_names'], 'showhead', 1);
        print_submit_row($upgradecore_phrases['dump_table'], 0);
        define('NO_LOG', true);
        $vbulletin->GPC['step'] = 0;
        print_next_step();
    }
}
// ***************************************************************************************************************************
// #########################################################################
// ############# GENERIC UPGRADE / INSTALL FUNCTIONS PROTOTYPES ############
// #########################################################################
// #########################################################################
开发者ID:benyamin20,项目名称:vbregistration,代码行数:31,代码来源:upgradecore.php

示例13: array

 // check that this usergroup has some join requests
 if ($vbulletin->usergroupcache["{$vbulletin->GPC['usergroupid']}"]['joinrequests']) {
     // everything seems okay, so make a total record for this usergroup
     $usergroup =& $vbulletin->usergroupcache["{$vbulletin->GPC['usergroupid']}"];
     // query the usergroup leaders of this usergroup
     $leaders = array();
     $getleaders = $db->query_read("\n\t\t\t\tSELECT usergroupleader.userid, user.username\n\t\t\t\tFROM " . TABLE_PREFIX . "usergroupleader AS usergroupleader\n\t\t\t\tINNER JOIN " . TABLE_PREFIX . "user AS user USING(userid)\n\t\t\t\tWHERE usergroupleader.usergroupid = " . $vbulletin->GPC['usergroupid'] . "\n\t\t\t");
     while ($getleader = $db->fetch_array($getleaders)) {
         $leaders[] = "<a href=\"user.php?" . $vbulletin->session->vars['sessionurl'] . "do=edit&amp;u={$getleader['userid']}\">{$getleader['username']}</a>";
     }
     unset($getleader);
     $db->free_result($getleaders);
     // query the requests for this usergroup
     $requests = $db->query_read("\n\t\t\t\tSELECT req.*, user.username\n\t\t\t\tFROM " . TABLE_PREFIX . "usergrouprequest AS req\n\t\t\t\tINNER JOIN " . TABLE_PREFIX . "user AS user USING(userid)\n\t\t\t\tWHERE req.usergroupid = " . $vbulletin->GPC['usergroupid'] . "\n\t\t\t\tORDER BY user.username\n\t\t\t");
     print_form_header('usergroup', 'processjoinrequests');
     construct_hidden_code('usergroupid', $vbulletin->GPC['usergroupid']);
     print_table_header("{$usergroup['title']} - ({$vbphrase['join_requests']}: {$usergroup['joinrequests']})", 6);
     if (!empty($leaders)) {
         print_description_row("<span style=\"font-weight:normal\">(" . $vbphrase['usergroup_leader'] . ': ' . implode(', ', $leaders) . ')</span>', 0, 6, 'thead');
     }
     print_cells_row(array($vbphrase['username'], $vbphrase['reason'], '<span style="white-space:nowrap">' . $vbphrase['date'] . '</span>', '<input type="button" value="' . $vbphrase['accept'] . '" onclick="js_check_all_option(this.form, 1);" class="button" title="' . $vbphrase['check_all'] . '" />', '<input type="button" value=" ' . $vbphrase['deny'] . ' " onclick="js_check_all_option(this.form, 0);" class="button" title="' . $vbphrase['check_all'] . '" />', '<input type="button" value="' . $vbphrase['ignore'] . '" onclick="js_check_all_option(this.form, -1);" class="button" title="' . $vbphrase['check_all'] . '" />'), 1);
     $i = 0;
     while ($request = $db->fetch_array($requests)) {
         if ($i > 0 and $i % 10 == 0) {
             print_description_row('<div align="center"><input type="submit" class="button" value="' . $vbphrase['process'] . '" accesskey="s" tabindex="1" /></div>', 0, 6, 'thead');
         }
         $i++;
         $cell = array("<a href=\"user.php?" . $vbulletin->session->vars['sessionurl'] . "do=edit&amp;u={$request['userid']}\"><b>{$request['username']}</b></a>", $request['reason'], '<span class="smallfont">' . vbdate($vbulletin->options['dateformat'], $request['dateline']) . '<br />' . vbdate($vbulletin->options['timeformat'], $request['dateline']) . '</span>', '<label for="a' . $request['usergrouprequestid'] . '" class="smallfont">' . $vbphrase['accept'] . '<input type="radio" name="request[' . $request['usergrouprequestid'] . ']" value="1" id="a' . $request['usergrouprequestid'] . '" tabindex="1" /></label>', '<label for="d' . $request['usergrouprequestid'] . '" class="smallfont">' . $vbphrase['deny'] . '<input type="radio" name="request[' . $request['usergrouprequestid'] . ']" value="0" id="d' . $request['usergrouprequestid'] . '" tabindex="1" /></label>', '<label for="i' . $request['usergrouprequestid'] . '" class="smallfont">' . $vbphrase['ignore'] . '<input type="radio" name="request[' . $request['usergrouprequestid'] . ']" value="-1" id="i' . $request['usergrouprequestid'] . '" tabindex="1" checked="checked" /></label>');
         print_cells_row($cell, 0, '', -5);
     }
     unset($request);
开发者ID:holandacz,项目名称:nb4,代码行数:31,代码来源:usergroup.php

示例14: redirect

                    }
                }
            }
            echo "</ul>";
        } else {
            redirect('tools', 'ame_no_results');
        }
    } else {
        redirect('tools', 'ame_no_results');
    }
    print_form_header('ame', 'dorebuild', false, true, 'cpform', '90%', '', true, 'get');
    print_table_header($vbphrase['ame_rebuild_title']);
    if ($return) {
        print_label_row($vbphrase['ame_rebuild_seconds_till_next'], "<input type=\"text\" name=\"timer\" id=\"timer\" readonly=\"true\" value=\"{$delay}\" />");
        construct_hidden_code("cont", true);
        construct_hidden_code("perpage", $perpage);
        construct_hidden_code("seconds", $seconds);
        construct_hidden_code("length", $length);
        construct_hidden_code("test", $test);
        construct_hidden_code("verbose", $verbose);
        construct_hidden_code("start", $start + 1);
        construct_hidden_code("zone", $zone);
        construct_hidden_code("ameup", $ameup);
        print_submit_row($vbphrase['next'], '');
        echo "<script language=\"javascript\"><!--\n\n\t\t\t\tvar countdown = " . $seconds . ";\n\n\t\t\t  function submit_form()\n\t\t\t  {\n\t\t\t     document.cpform.submit();\n\t\t\t  }\n\n\t\t\t  function count_down()\n\t\t\t  {\n\t\t\t      countdown = countdown-1;\n\t\t\t  \t  document.cpform.timer.value=countdown+ ' {$vbphrase['ame_rebuild_seconds_remaining']}';\n\t\t\t  \t  if (countdown == 0)\n\t\t\t  \t  {\n\t\t\t  \t  \tsubmit_form();\n\t\t\t  \t  }\n\t\t\t  \t  else\n\t\t\t  \t  {\n\t\t\t  \t  \tsetTimeout('count_down()',1000);\n\t\t\t  \t  }\n\t\t\t  }\n\t\t\t  //-->\n\t\t\tsetTimeout('count_down()',1000);\n\t\t  </script>";
    } else {
        $inp = $in ? $in . "_" : "";
        print_description_row($vbphrase['ame_rebuild_completed']);
        print_table_footer();
    }
}
开发者ID:rcdesign-cemetery,项目名称:vb-foreign_mod_fixes,代码行数:31,代码来源:ame.php

示例15: import_generated_style

/**
* Prints out the save options for the style generator
*/

function import_generated_style() {
	global $vbphrase, $stylecache;

	cache_styles();
	echo "
	<script type=\"text/javascript\">
	<!--
	function js_confirm_upload(tform, filefield)
	{
		if (filefield.value == \"\")
		{
			return confirm(\"".construct_phrase($vbphrase['you_did_not_specify_a_file_to_upload'], " + tform.serverfile.value + ")."\");
		}
		return true;
	}
	function js_fetch_style_title()
	{
		styleid = document.forms.downloadform.dostyleid.options[document.forms.downloadform.dostyleid.selectedIndex].value;
		document.forms.downloadform.title.value = style[styleid];
	}
	var style = new Array();
	style['-1'] = \"" . $vbphrase['master_style'] . "\"";
	foreach($stylecache AS $styleid => $style)
	{
		echo "\n\tstyle['$styleid'] = \"" . addslashes_js($style['title'], '"') . "\";";
		$styleoptions["$styleid"] = construct_depth_mark($style['depth'], '--', iif($vbulletin->debug, '--', '')) . ' ' . $style['title'];
	}
	echo "
	// -->
	</script>";

	echo '<div id="styleform">';
	echo '<form id="form">';
	construct_hidden_code('adid', $vbulletin->GPC['adid']);
	echo '<input id="form-data" type="hidden" name="data">';
	echo '<div class="styledetails"><div id="title-generated-style" class="help title-generated-style">';
	print_input_row($vbphrase['title_generated_style'], 'name', null, null, null, null, null, null, 'form-name');
	echo '</div><div id="parent-id" class="help parent-id">';
	print_style_chooser_row('parentid', -1, $vbphrase['no_parent_style'], $vbphrase['parent_style'], 1);
	echo '</div></div><div class="styleoptions"><div id="display-order" class="help display-order">';
	print_input_row($vbphrase['display_order'], 'displayorder', 1, null, null, null, null, null, 'form-displayorder');
	echo '</div><div id="allow-user-selection" class="help allow-user-selection">';
	print_yes_no_row($vbphrase['allow_user_selection'], 'userselect', 1, null, null, null, null, null, 'form-userselect');
	echo '</div></div></form></div>';
}
开发者ID:hungnv0789,项目名称:vhtm,代码行数:49,代码来源:adminfunctions_template.php


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