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

PHP bb_nonce_field函数代码示例

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

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



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

示例1: em_options

/**
 * Makes a settings page for the plugin
 * 
 * @uses bb_option_form_element() to generate the page
 */
function em_options()
{
    global $em_plugopts;
    if ($_POST['em_opts_submit'] == 1) {
        /* Settings have been received, now save them! */
        bb_check_admin_referer('em-save-chk');
        /* Security Check */
        /* Checks on options, and then save them */
        $em_plugopts['link-tags'] = intval($_POST['link-tags']) == 1 ? 1 : 0;
        $em_plugopts['link-users'] = intval($_POST['link-users']) == 1 ? 1 : 0;
        $em_plugopts['link-user-to'] = $_POST['link-user-to'] == 'website' ? 'website' : 'profile';
        $em_plugopts['reply-link'] = intval($_POST['reply-link']) == 1 ? 1 : 0;
        $em_plugopts['reply-text'] = esc_attr($_POST['reply-text']);
        bb_update_option(EM_OPTIONS, $em_plugopts);
        bb_admin_notice(__('The options were successfully saved!', 'easy-mentions'));
    }
    if ($ver = em_update_check()) {
        /* Check for Updates and if available, then notify */
        bb_admin_notice(sprintf(__('New version (%1$s) of Easy Mentions is available! Please download the latest version from <a href="%2$s">here</a>.', 'easy-mentions'), $ver, 'http://bbpress.org/plugins/topic/easy-mentions/'));
    }
    /* Options in an array to be printed */
    $options = array('link-tags' => array('title' => __('Link the Tags?', 'easy-mentions'), 'type' => 'checkbox', 'value' => $em_plugopts['link-tags'] == 1 ? '1' : '0', 'note' => sprintf(__('Check this option if you want the tags to be linked (by using %s) in the posts.', 'easy-mentions'), '<code>#tag</code>'), 'options' => array('1' => __('Yes', 'easy-mentions'))), 'link-users' => array('title' => __('Link the Users?', 'easy-mentions'), 'type' => 'checkbox', 'value' => $em_plugopts['link-users'] == 1 ? '1' : '0', 'note' => sprintf(__('Check this option if you want the users to be linked (by using %s) in the posts.', 'easy-mentions'), '<code>@user</code>'), 'options' => array('1' => __('Yes', 'easy-mentions'))), 'link-user-to' => array('title' => __('Link the user to profile or website?', 'easy-mentions'), 'type' => 'radio', 'value' => $em_plugopts['link-user-to'] == 'website' ? 'website' : 'profile', 'note' => __('If you selected the website option and the user\'s website does not exist, then the user will be linked to his or her profile page.', 'easy-mentions'), 'options' => array('profile' => __('Profile', 'easy-mentions'), 'website' => __('Website', 'easy-mentions'))), 'reply-link' => array('title' => __('Add a reply link below each post?', 'easy-mentions'), 'type' => 'checkbox', 'value' => $em_plugopts['reply-link'] == 1 ? '1' : '0', 'note' => sprintf(__('Before checking this option, please verify that there is a post form below the topic on each page. (<a href="%s">Help</a>)', 'easy-mentions'), 'http://bbpress.org/plugins/topic/easy-mentions/faq/'), 'options' => array('1' => __('Yes', 'easy-mentions'))), 'reply-text' => array('title' => __('Reply Text', 'easy-mentions'), 'class' => array('long'), 'value' => $em_plugopts['reply-text'] ? stripslashes($em_plugopts['reply-text']) : '<em>Replying to @%%USERNAME%%\'s <a href="%%POSTLINK%%">post</a>:</em>', 'after' => '<div style="clear:both;"></div>' . sprintf(__('Some HTML is allowed. The following keys can also be used:%1$s - Post\'s author\'s name%2$s - Post\'s link', 'after-the-deadline'), '<br /><strong>%%USERNAME%%</strong>', '<br /><strong>%%POSTLINK%%</strong>') . '<br />'));
    if ($em_plugopts['link-users'] != 1) {
        $options['link-user-to']['attributes'] = array('disabled' => 'disabled');
    }
    if ($em_plugopts['reply-link'] != 1) {
        $options['reply-text']['attributes'] = array('disabled' => 'disabled');
    }
    ?>
	
	<h2><?php 
    _e('Easy Mentions', 'easy-mentions');
    ?>
</h2>
	<?php 
    do_action('bb_admin_notices');
    ?>
	<form method="post" class="settings options">
		<fieldset>
			<?php 
    foreach ($options as $option => $args) {
        bb_option_form_element($option, $args);
    }
    ?>
		</fieldset>
		<fieldset class="submit">
			<?php 
    bb_nonce_field('em-save-chk');
    ?>
			<input type="hidden" name="em_opts_submit" value="1"></input>
			<input class="submit" type="submit" name="submit" value="Save Changes" />
		</fieldset>
		<p><?php 
    printf(__('Happy with the plugin? Why not <a href="%1$s">buy the author a cup of coffee or two</a> or get him something from his <a href="%2$s">wishlist</a>?', 'easy-mentions'), 'http://gaut.am/donate/EM/', 'http://gaut.am/wishlist/');
    ?>
</p>
	</form>
<?php 
}
开发者ID:achorg,项目名称:DH-Answers,代码行数:64,代码来源:admin.php


示例2: bb_ksd_configuration_page

function bb_ksd_configuration_page()
{
    ?>
<h2><?php 
    _e('Akismet Settings');
    ?>
</h2>
<?php 
    do_action('bb_admin_notices');
    ?>

<form class="settings" method="post" action="<?php 
    bb_uri('bb-admin/admin-base.php', array('plugin' => 'bb_ksd_configuration_page'), BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_ADMIN);
    ?>
">
	<fieldset>
		<p><?php 
    printf(__('For many people, <a href="%s">Akismet</a> will greatly reduce or even completely eliminate the spam you get on your site. If one does happen to get through, simply mark it as "spam" and Akismet will learn from the mistakes.'), 'http://akismet.com/');
    ?>
</p>

<?php 
    $after = '';
    if (false !== ($key = bb_get_option('akismet_key'))) {
        if (bb_akismet_verify_key($key)) {
            $after = __('This key is valid');
        } else {
            bb_delete_option('akismet_key');
        }
    }
    bb_option_form_element('akismet_key', array('title' => __('WordPress.com API Key'), 'attributes' => array('maxlength' => 12), 'after' => $after, 'note' => sprintf(__('If you don\'t have a WordPress.com API Key, you can get one at <a href="%s">WordPress.com</a>'), 'http://wordpress.com/api-keys/')));
    bb_option_form_element('akismet_stats', array('title' => __('Enable stats page'), 'type' => 'checkbox', 'options' => array(1 => __('Create a page that shows spam statistics.')), 'note' => __('This page will be viewable by moderators or higher.')));
    ?>

	</fieldset>
	<fieldset class="submit">
		<?php 
    bb_nonce_field('options-akismet-update');
    ?>
		<input type="hidden" name="action" value="update-akismet-settings" />
		<input class="submit" type="submit" name="submit" value="<?php 
    _e('Save Changes');
    ?>
" />
	</fieldset>
</form>
<?php 
}
开发者ID:laiello,项目名称:cartonbank,代码行数:48,代码来源:akismet.php


示例3: do_action

<?php 
do_action('bb_admin_notices');
?>

<form class="settings" method="post" action="<?php 
bb_uri('bb-admin/options-reading.php', null, BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_ADMIN);
?>
">
	<fieldset>
<?php 
foreach ($reading_options as $option => $args) {
    bb_option_form_element($option, $args);
}
?>
	</fieldset>
	<fieldset class="submit">
		<?php 
bb_nonce_field('options-reading-update');
?>
		<input type="hidden" name="action" value="update" />
		<input class="submit" type="submit" name="submit" value="<?php 
_e('Save Changes');
?>
" />
	</fieldset>
</form>

</div>

<?php 
bb_get_admin_footer();
开发者ID:laiello,项目名称:cartonbank,代码行数:31,代码来源:options-reading.php


示例4: foreach

<?php 
    foreach ($recount_list as $item) {
        echo '<label class="checkboxs"><input type="checkbox" class="checkbox" name="' . esc_attr($item[0]) . '" id="' . esc_attr(str_replace('_', '-', $item[0])) . '" value="1" /> ' . esc_html($item[1]) . '</label>' . "\n";
    }
    ?>
			</div>
		</div>
<?php 
} else {
    ?>
		<p><?php 
    _e('There are no re-count tools available.');
    ?>
</p>
<?php 
}
?>
	</fieldset>
	<fieldset class="submit">
		<?php 
bb_nonce_field('do-counts');
?>
		<input class="submit" type="submit" name="submit" value="<?php 
_e('Recount Items');
?>
" />
	</fieldset>
</form>

<?php 
bb_get_admin_footer();
开发者ID:nxtclass,项目名称:NXTClass,代码行数:31,代码来源:tools-recount.php


示例5: _e

		</div>
		<div id="option-forum-delete-contents">
			<label for="move-topics-forum"><?php 
        _e('Replacement forum');
        ?>
</label>
			<div class="inputs">
				<?php 
        bb_forum_dropdown(array('id' => 'move_topics_forum', 'callback' => 'strcmp', 'callback_args' => array($deleted_forum->forum_id), 'selected' => $deleted_forum->forum_parent));
        ?>
			</div>
		</div>
	</fieldset>
	<fieldset class="submit">
		<?php 
        bb_nonce_field('delete-forums');
        ?>
		<input type="hidden" name="action" value="delete" />
		<input type="hidden" name="forum_id" value="<?php 
        echo $deleted_forum->forum_id;
        ?>
" />
		<a href="<?php 
        bb_uri('bb-admin/forums.php', null, BB_URI_CONTEXT_A_HREF + BB_URI_CONTEXT_BB_ADMIN);
        ?>
" class="cancel"><?php 
        _e('Cancel');
        ?>
</a>
		<input class="submit delete" type="submit" name="submit" value="<?php 
        _e('Delete Forum');
开发者ID:nxtclass,项目名称:NXTClass,代码行数:31,代码来源:forums.php


示例6: _e

		<legend><?php 
_e('Avatars');
?>
</legend>
		<p>
			<?php 
_e('bbPress includes built-in support for <a href="http://gravatar.com/">Gravatars</a>. A Gravatar is an image that follows you from site to site, appearing beside your name when you comment on Gravatar enabled sites. Here you can enable the display of Gravatars on your site.');
?>
		</p>
<?php 
foreach ($avatar_options as $option => $args) {
    bb_option_form_element($option, $args);
}
?>
	</fieldset>
	<fieldset class="submit">
		<?php 
bb_nonce_field('options-discussion-update');
?>
		<input type="hidden" name="action" value="update" />
		<input class="submit" type="submit" name="submit" value="<?php 
_e('Save Changes');
?>
" />
	</fieldset>
</form>

</div>

<?php 
bb_get_admin_footer();
开发者ID:laiello,项目名称:cartonbank,代码行数:31,代码来源:options-discussion.php


示例7: bb_forum_form

function bb_forum_form($forum_id = 0)
{
    $forum_id = (int) $forum_id;
    if ($forum_id && !($forum = bb_get_forum($forum_id))) {
        return;
    }
    $forum_name = '';
    $forum_slug = '';
    $forum_description = '';
    $forum_position = '';
    if ($forum_id) {
        $forum_name = get_forum_name($forum_id);
        $forum_slug = apply_filters('editable_slug', $forum->forum_slug);
        $forum_description = get_forum_description($forum_id);
        $forum_position = get_forum_position($forum_id);
        $legend = __('Edit Forum');
        $submit = __('Save Changes');
        $action = 'update';
    } else {
        $legend = __('Add Forum');
        $submit = __('Add Forum');
        $action = 'add';
    }
    $forum_options = array('forum_name' => array('title' => __('Name'), 'value' => $forum_name), 'forum_slug' => array('title' => __('Slug'), 'value' => $forum_slug), 'forum_desc' => array('title' => __('Description'), 'value' => $forum_description, 'class' => 'long'), 'forum_parent' => array('title' => __('Parent'), 'type' => 'select', 'options' => bb_get_forum_dropdown(array('cut_branch' => $forum_id, 'id' => 'forum_parent', 'none' => true, 'selected' => $forum_id ? get_forum_parent($forum_id) : 0, 'disable_categories' => 0, 'options_only' => true))), 'forum_order' => array('title' => __('Position'), 'value' => $forum_position, 'class' => 'short'), 'forum_is_category' => array('title' => __('Category'), 'type' => 'checkbox', 'options' => array(1 => array('label' => __('Make this forum a category'), 'value' => bb_get_forum_is_category($forum_id))), 'note' => __('Categories are forums where new topics cannot be created. Categories usually contain a group of sub-forums.')));
    if (!$forum_id) {
        unset($forum_options['forum_slug']);
        unset($forum_options['forum_order']);
    }
    ?>
<form class="settings" method="post" id="<?php 
    echo $action;
    ?>
-forum" action="<?php 
    bb_uri('bb-admin/bb-forum.php', null, BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_ADMIN);
    ?>
" class="add:forum-list: forum-form">
	<fieldset>
		<legend><?php 
    echo $legend;
    ?>
</legend>
<?php 
    foreach ($forum_options as $option => $args) {
        bb_option_form_element($option, $args);
    }
    ?>
		<fieldset class="submit">
<?php 
    if ($forum_id) {
        ?>
			<input type="hidden" name="forum_id" value="<?php 
        echo $forum_id;
        ?>
" />
<?php 
    }
    ?>
			<?php 
    bb_nonce_field('order-forums', 'order-nonce');
    ?>
			<?php 
    bb_nonce_field($action . '-forum');
    ?>
			<input type="hidden" name="action" value="<?php 
    echo $action;
    ?>
" />
			<input class="submit" type="submit" name="submit" value="<?php 
    echo $submit;
    ?>
" />
		</fieldset>
	</fieldset>
</form>
<?php 
}
开发者ID:nxtclass,项目名称:NXTClass-Plugin,代码行数:76,代码来源:functions.bb-admin.php


示例8: _e

">
		<legend><?php 
_e('Custom user tables');
?>
</legend>
		<p><?php 
_e('Only set these values if your user tables differ from the default NXTClass naming convention.');
?>
</p>
	<?php 
foreach ($custom_table_options as $option => $args) {
    bb_option_form_element($option, $args);
}
?>
	</fieldset>
	<fieldset class="submit">
		<?php 
bb_nonce_field('options-nxtclass-update-options');
?>
		<input type="hidden" name="action" value="update-options" />
		<input class="submit" type="submit" name="submit" value="<?php 
_e('Save Changes');
?>
" />
	</fieldset>
</form>

</div>

<?php 
bb_get_admin_footer();
开发者ID:nxtclass,项目名称:NXTClass,代码行数:31,代码来源:options-nxtclass.php


示例9: _e

		<legend><?php 
_e('Remote Publishing');
?>
</legend>
		<p>
			<?php 
_e('To interact with bbPress from a desktop client or remote website that uses the XML-RPC publishing interface you must enable it below.');
?>
		</p>
<?php 
foreach ($remote_options as $option => $args) {
    bb_option_form_element($option, $args);
}
?>
	</fieldset>
	<fieldset class="submit">
		<?php 
bb_nonce_field('options-writing-update');
?>
		<input type="hidden" name="action" value="update" />
		<input class="submit" type="submit" name="submit" value="<?php 
_e('Save Changes');
?>
" />
	</fieldset>
</form>

</div>

<?php 
bb_get_admin_footer();
开发者ID:nxtclass,项目名称:NXTClass-Plugin,代码行数:31,代码来源:options-writing.php


示例10: esc_attr

        echo esc_attr($value);
        ?>
"><?php 
        echo esc_html($label);
        ?>
</option>
<?php 
    }
    ?>
	</select>
	<input type="submit" value="<?php 
    esc_attr_e('Apply');
    ?>
" class="button submit-input" />
	<?php 
    bb_nonce_field('topic-bulk');
    ?>
</fieldset>

<div class="tablenav">
<?php 
    if ($topic_query->found_rows) {
        ?>
	<div class="tablenav-pages">
		<span class="displaying-num"><?php 
        echo $displaying_num = sprintf(__('%1$s to %2$s of %3$s'), bb_number_format_i18n(($page - 1) * $topic_query->get('per_page') + 1), $page * $topic_query->get('per_page') < $topic_query->found_rows ? bb_number_format_i18n($page * $topic_query->get('per_page')) : '<span class="total-type-count">' . bb_number_format_i18n($topic_query->found_rows) . '</span>', '<span class="total-type-count">' . bb_number_format_i18n($topic_query->found_rows) . '</span>');
        ?>
</span><span class="displaying-pages">
<?php 
        $_page_link_args = array('page' => $page, 'total' => $topic_query->found_rows, 'per_page' => $topic_query->get('per_page'), 'mod_rewrite' => false, 'prev_text' => __('&laquo;'), 'next_text' => __('&raquo;'));
        echo $page_number_links = get_page_number_links($_page_link_args);
开发者ID:danielcoats,项目名称:schoolpress,代码行数:31,代码来源:topics.php


示例11: li_configuration_page

function li_configuration_page()
{
    ?>
<h2><?php 
    _e('Linkedin Connect Settings');
    ?>
</h2>
<?php 
    do_action('bb_admin_notices');
    ?>
<form class="settings" method="post" action="<?php 
    bb_uri('bb-admin/admin-base.php', array('plugin' => 'li_configuration_page'), BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_ADMIN);
    ?>
">
	<p>A LinkedIn Application ID and Secret Key are needed. These can be obtained from <a href="https://www.linkedin.com/secure/developer">Linkedin developer pages</a>.</p>
	<p>Remember to check that OAuth 2.0 support is enabled. This setting is located under Advanced-tab of your LinkedIn application page.</p>
	<fieldset class="submit">
<?php 
    bb_option_form_element('li_app_id', array('title' => __('LinkedIn Application ID'), 'attributes' => array('maxlength' => 20), 'after' => '[Alphanumeric] Example: aQw3728er2'));
    bb_option_form_element('li_secret', array('title' => __('Linkedin Application Secret'), 'attributes' => array('maxlength' => 40), 'after' => "[Alphanumeric] Example: abcdef123456abcdef123456abcdef123456"));
    bb_option_form_element('li_displayname_from', array('title' => __('Set as Display Name'), 'type' => 'select', 'options' => array(0 => __('Full Name'), 1 => __('First Name'), 2 => __('Last Name')), 'after' => "The users Display Name will be set to this value as provided by LinkedIn"));
    bb_option_form_element('li_allow_useredit', array('title' => __('Allow User Edit'), 'type' => 'checkbox', 'options' => array(1 => __('Allow users to edit their own profile information, such as first name, last name and display name'))));
    bb_option_form_element('li_request_email', array('title' => __('Request Real Email'), 'type' => 'checkbox', 'options' => array(1 => __('Request users real email address from LinkedIn (user must accept this). A dummy email is set to new users if this is disabled.'))));
    bb_option_form_element('li_hide_post_login', array('title' => __('Hide login in post form'), 'type' => 'checkbox', 'options' => array(1 => __('Hide the "You must login to reply" in post-form for non-logged in users. This links to the traditional login page otherwise, which LinkedIn Connected users cannot use.'))));
    bb_option_form_element('li_get_jquery', array('title' => __('Include jQuery (require version 1.6+)'), 'type' => 'checkbox', 'options' => array(1 => __('Includes latest jQuery API from Google APIs.'))));
    ?>
		<?php 
    bb_nonce_field('options-liconnect-update');
    ?>
		<input type="hidden" name="action" value="update-li-settings" />
		<input class="submit" type="submit" name="submit" value="<?php 
    _e('Save Changes');
    ?>
" />
	</fieldset>
</form>
<?php 
}
开发者ID:nma,项目名称:linkedin-connect,代码行数:38,代码来源:connect.php


示例12: nospamuser_admin

function nospamuser_admin()
{
    $settings = bb_get_option('nospamuser-settings');
    $options = array('days' => array('title' => __('Maximum days', 'nospamuser'), 'note' => __('Any possible spammer that was last active over this many days ago will be allowed through.', 'nospamuser'), 'class' => 'short', 'value' => $settings['days']), 'min_occur' => array('title' => __('Minimum frequency', 'nospamuser'), 'note' => __('Any possible spammer that do not have at least this many reports will be allowed through.', 'nospamuser'), 'class' => 'short', 'value' => $settings['min_occur']), 'max_occur' => array('title' => __('Maximum frequency', 'nospamuser'), 'note' => __('Possible spammers that have at least this many reports will be disallowed in adaptive mode. This also affects agressive mode, where spammers with at least this many reports will be blocked even if the maximum days prerequisite is not met.', 'nospamuser'), 'class' => 'short', 'value' => $settings['max_occur']), 'api_key' => array('title' => __('Stop Forum Spam API key', 'nospamuser'), 'note' => __('Required to submit spammers to Stop Forum Spam. <a href="http://www.stopforumspam.com/signup">Get a Stop Forum Spam API key here</a>.', 'nospamuser'), 'class' => array('code', 'long'), 'value' => $settings['api_key']), 'recaptcha_mode' => array('title' => __('reCAPTCHA mode', 'nospamuser'), 'note' => __('All modes except aggressive require reCAPTCHA public and private keys.', 'nospamuser'), 'type' => 'radio', 'options' => array('aggressive' => __('<strong>Aggressive:</strong> Never allow possible spammers to override blocks.', 'nospamuser'), 'adaptive' => __('<strong>Adaptive:</strong> Allow possible spammers between the minimum and maximum frequency to override blocks.', 'nospamuser'), 'friendly' => __('<strong>Friendly:</strong> Allow all possible spammers to override blocks.', 'nospamuser')), 'value' => $settings['recaptcha_mode']), 'recaptcha_pub' => array('title' => __('reCAPTCHA public key', 'nospamuser'), 'note' => sprintf(__('<a href="%s">Get it here</a>.', 'nospamuser'), 'http://recaptcha.net/api/getkey?domain=' . urlencode($_SERVER['SERVER_NAME']) . '&app=bb-NoSpamUser'), 'class' => array('code', 'long'), 'value' => $settings['recaptcha_pub']), 'recaptcha_priv' => array('title' => __('reCAPTCHA private key', 'nospamuser'), 'note' => sprintf(__('<a href="%s">Get it here</a>.', 'nospamuser'), 'http://recaptcha.net/api/getkey?domain=' . urlencode($_SERVER['SERVER_NAME']) . '&app=bb-NoSpamUser'), 'class' => array('code', 'long'), 'value' => $settings['recaptcha_priv']), 'stats-public' => array('title' => __('Public statistics', 'nospamuser'), 'type' => 'radio', 'options' => array(0 => __('Keep all statistics private', 'nospamuser'), 1 => sprintf(__('Display the number of caught spammers on the <a href="%s">statistics page</a>.', 'nospamuser'), bb_get_uri('statistics.php'))), 'value' => $settings['stats-public'] ? $settings['stats-public'] : 0));
    ?>
<h2><?php 
    _e('bb-NoSpamUser', 'nospamuser');
    ?>
</h2>
<?php 
    do_action('bb_admin_notices');
    ?>
<form class="settings" method="post" action="<?php 
    bb_uri('bb-admin/admin-base.php', array('plugin' => 'nospamuser_admin'), BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_ADMIN);
    ?>
">
	<fieldset>
<?php 
    foreach ($options as $option => $args) {
        bb_option_form_element($option, $args);
    }
    ?>
	</fieldset>
	<fieldset class="submit">
		<?php 
    bb_nonce_field('nospamuser-admin');
    ?>
		<input class="submit" type="submit" name="submit" value="<?php 
    _e('Save Changes');
    ?>
" />
	</fieldset>
</form>
<?php 
    if ($blocks = (int) bb_get_option('nospamuser-blocks')) {
        ?>
<div style="font-size: .75em; position: absolute; bottom: 50px; right: 5px"><?php 
        printf(_n('%s spammer blocked by bb-NoSpamUser', '%s spammers blocked by bb-NoSpamUser', $blocks, 'nospamuser'), bb_number_format_i18n($blocks));
        ?>
</div>
<?php 
    }
}
开发者ID:achorg,项目名称:DH-Answers,代码行数:43,代码来源:bb-nospamuser.php


示例13: topic_move_dropdown

 function topic_move_dropdown($id = 0)
 {
     $topic = get_topic(get_topic_id($id));
     if (!bb_current_user_can('move_topic', $topic->topic_id)) {
         return;
     }
     $dropdown = bb_get_forum_dropdown(array('callback' => 'bb_current_user_can', 'callback_args' => array('move_topic', $topic->topic_id), 'selected' => $topic->forum_id));
     if (!$dropdown) {
         return;
     }
     echo '<form id="topic-move" method="post" action="' . bb_get_uri('bb-admin/topic-move.php', null, BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_ADMIN) . '">' . "\n\t";
     echo "<input type='hidden' name='topic_id' value='{$topic->topic_id}' />\n\t";
     echo $dropdown;
     bb_nonce_field('move-topic_' . $topic->topic_id);
     echo "<input class='button-secondary' type='submit' name='Submit' value='" . __('Move') . "' />\n</form>";
 }
开发者ID:billerby,项目名称:Surdeg,代码行数:16,代码来源:functions.php


示例14: _e

">
	<fieldset>
		<p>
			<?php 
_e('By default bbPress uses web URLs which have question marks and lots of numbers in them, however bbPress offers you the ability to choose an alternative URL structure for your permalinks. This can improve the aesthetics, usability, and forward-compatibility of your links.');
?>
		</p>
<?php 
foreach ($permalink_options as $option => $args) {
    bb_option_form_element($option, $args);
}
?>
	</fieldset>
	<fieldset class="submit">
		<?php 
bb_nonce_field('options-permalinks-update');
?>
		<input type="hidden" name="action" value="update" />
		<input class="submit" type="submit" name="submit" value="<?php 
_e('Save Changes');
?>
" />
	</fieldset>
</form>

<?php 
if ($manual_instructions) {
    ?>
<form class="settings" method="post" action="<?php 
    bb_uri('bb-admin/options-permalinks.php', null, BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_ADMIN);
    ?>
开发者ID:laiello,项目名称:cartonbank,代码行数:31,代码来源:options-permalinks.php


示例15: esc_attr__

    }
}
?>

	<p class="submit right">
		<input type="submit" name="Submit" value="<?php 
echo esc_attr__('Update Profile &raquo;');
?>
" />
	</p>

</form>

<form method="post" action="<?php 
profile_tab_link($user->ID, 'edit');
?>
">

	<p class="submit left">
		<?php 
bb_nonce_field('edit-profile_' . $user->ID);
?>
		<?php 
user_delete_button();
?>
	</p>

</form>

<?php 
bb_get_footer();
开发者ID:nxtclass,项目名称:NXTClass-Plugin,代码行数:31,代码来源:profile-edit.php


示例16: manage_tags_forms

function manage_tags_forms()
{
    global $tag;
    if (!bb_current_user_can('manage_tags')) {
        return false;
    }
    $form = '<ul id="manage-tags">' . "\n";
    $form .= '<li id="tag-rename">' . __('Rename tag:') . "\n\t";
    $form .= '<form method="post" action="' . bb_get_uri('bb-admin/tag-rename.php', null, BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_ADMIN) . '"><div>' . "\n\t";
    $form .= '<input type="text" name="tag" size="10" maxlength="30" />' . "\n\t";
    $form .= '<input type="hidden" name="id" value="' . $tag->tag_id . '" />' . "\n\t";
    $form .= "<input type='submit' name='Submit' value='" . __('Rename') . "' />\n\t";
    echo $form;
    bb_nonce_field('rename-tag_' . $tag->tag_id);
    echo "\n\t</div></form>\n  </li>\n ";
    $form = "<li id='tag-merge'>" . __('Merge this tag into:') . "\n\t";
    $form .= "<form method='post' action='" . bb_get_uri('bb-admin/tag-merge.php', null, BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_ADMIN) . "'><div>\n\t";
    $form .= "<input type='text' name='tag' size='10' maxlength='30' />\n\t";
    $form .= "<input type='hidden' name='id' value='{$tag->tag_id}' />\n\t";
    $form .= "<input type='submit' name='Submit' value='" . __('Merge') . "' ";
    $form .= 'onclick="return confirm(\'' . esc_js(sprintf(__('Are you sure you want to merge the "%s" tag into the tag you specified? This is permanent and cannot be undone.'), $tag->raw_tag)) . "');\" />\n\t";
    echo $form;
    bb_nonce_field('merge-tag_' . $tag->tag_id);
    echo "\n\t</div></form>\n  </li>\n ";
    $form = "<li id='tag-destroy'>" . __('Destroy tag:') . "\n\t";
    $form .= "<form method='post' action='" . bb_get_uri('bb-admin/tag-destroy.php', null, BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_ADMIN) . "'><div>\n\t";
    $form .= "<input type='hidden' name='id' value='{$tag->tag_id}' />\n\t";
    $form .= "<input type='submit' name='Submit' value='" . __('Destroy') . "' ";
    $form .= 'onclick="return confirm(\'' . esc_js(sprintf(__('Are you sure you want to destroy the "%s" tag? This is permanent and cannot be undone.'), $tag->raw_tag)) . "');\" />\n\t";
    echo $form;
    bb_nonce_field('destroy-tag_' . $tag->tag_id);
    echo "\n\t</div></form>\n  </li>\n</ul>";
}
开发者ID:abc2mit,项目名称:abc2mit.github.io,代码行数:33,代码来源:functions.bb-template.php


示例17: esc_attr

    echo esc_attr($value);
    ?>
"><?php 
    echo esc_html($label);
    ?>
</option>
<?php 
}
?>
	</select>
	<input type="submit" value="<?php 
esc_attr_e('Apply');
?>
" class="button submit-input" />
	<?php 
bb_nonce_field('post-bulk');
?>
</fieldset>

<div class="tablenav">
<?php 
if ($total) {
    ?>
	<div class="tablenav-pages">
		<span class="displaying-num"><?php 
    echo $displaying_num = sprintf(__('%1$s to %2$s of %3$s'), bb_number_format_i18n(($page - 1) * $post_query->get('per_page') + 1), $page * $post_query->get('per_page') < $total ? bb_number_format_i18n($page * $post_query->get('per_page')) : '<span class="total-type-count">' . bb_number_format_i18n($total) . '</span>', '<span class="total-type-count">' . bb_number_format_i18n($total) . '</span>');
    ?>
</span><span class="displaying-pages">
<?php 
    $_page_link_args = array('page' => $page, 'total' => $total, 'per_page' => $post_query->get('per_page'), 'mod_rewrite' => false, 'prev_text' => __('&laquo;'), 'next_text' => __('&raquo;'));
    echo $page_number_links = get_page_number_links($_page_link_args);
开发者ID:danielcoats,项目名称:schoolpress,代码行数:31,代码来源:posts.php


示例18: bb_nonce_field

					</fieldset>
<?php 
                    $bb_install->input_buttons('forward_3_0');
                    ?>
				</form>
<?php 
                    break;
                case 'complete':
                    ?>
				<form action="install.php" method="post">
<?php 
                    $bb_install->messages();
                    ?>
					<fieldset>
<?php 
                    bb_nonce_field('bbpress-installer');
                    ?>
					</fieldset>
<?php 
                    $bb_install->hidden_step_inputs(2);
                    $bb_install->hidden_step_inputs();
                    // The current step (3) is assumed here
                    $bb_install->input_buttons('forward_3_1', 'back_3_1', 4);
                    ?>
				</form>
<?php 
                    break;
            }
        }
        $bb_install->step_footer();
        if ($bb_install->step === 4) {
开发者ID:nxtclass,项目名称:NXTClass-Plugin,代码行数:31,代码来源:install.php


示例19: str_replace

?>
			</noscript>
			<script type="text/javascript" charset="utf-8">
				if (typeof jQuery != 'undefined') {
					jQuery('#user-login').attr( 'id', 'user_login' );
					var meter = ('<div id="pass-strength-result">' + pwsL10n.short + '</div>');
					jQuery('#option-pass-strength-fake-input div.inputs input').before( meter );
				} else {
					document.writeln('<?php 
echo str_replace("'", "\\'", __('Disabled.'));
?>
')
				}
			</script>
		</fieldset>
		<fieldset class="submit">
			<?php 
bb_nonce_field('user-manage');
?>

			<input type="hidden" name="action" value="create" />
			<input class="submit" type="submit" name="submit" value="<?php 
_e('Create user');
?>
" />
		</fieldset>
	</form>
</div>

<?php 
bb_get_admin_footer();
开发者ID:danielcoats,项目名称:schoolpress,代码行数:31,代码来源:user-add-new.php


示例20: bb_uri

<form class="settings" method="post" action="<?php 
bb_uri('bb-admin/options-general.php', null, BB_URI_CONTEXT_FORM_ACTION + BB_URI_CONTEXT_BB_ADMIN);
?>
">
	<fieldset>
<?php 
foreach ($general_options as $option => $args) {
    bb_option_form_element($option, $args);
}
foreach ($time_options as $option => $args) {
    bb_option_form_element($option, $args);
}
?>
	</fieldset>
	<fieldset class="submit">
		<?php 
bb_nonce_field('options-general-update');
?>
		<input type="hidden" name="action" value="update" />
		<input class="submit" type="submit" name="submit" value="<?php 
_e('Save Changes');
?>
" />
	</fieldset>
</form>

</div>

<?php 
bb_get_admin_footer();
开发者ID:danielcoats,项目名称:schoolpress,代码行数:30,代码来源:options-general.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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