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


PHP nxt_nonce_field函数代码示例

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


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

示例1: woothemes_metabox_create

/**
 * woothemes_metabox_create function.
 *
 * @access public
 * @param object $post
 * @param array $callback
 * @return void
 */
function woothemes_metabox_create($post, $callback)
{
    global $post;
    // Allow child themes/plugins to act here.
    do_action('woothemes_metabox_create', $post, $callback);
    $seo_post_types = array('post', 'page');
    if (defined('SEOPOSTTYPES')) {
        $seo_post_types_update = unserialize(constant('SEOPOSTTYPES'));
    }
    if (!empty($seo_post_types_update)) {
        $seo_post_types = $seo_post_types_update;
    }
    $template_to_show = $callback['args'];
    $woo_metaboxes = get_option('woo_custom_template', array());
    $seo_metaboxes = get_option('woo_custom_seo_template', array());
    if (empty($seo_metaboxes) && $template_to_show == 'seo') {
        return;
    }
    // Array sanity check.
    if (!is_array($woo_metaboxes)) {
        $woo_metaboxes = array();
    }
    // Determine whether or not to display general fields.
    $display_general_fields = true;
    if (count($woo_metaboxes) <= 0) {
        $display_general_fields = false;
    }
    // Determine whether or not to display SEO fields.
    $display_seo_fields = true;
    if (get_option('seo_woo_hide_fields') == 'true' || get_option('seo_woo_use_third_party_data') == 'true') {
        $display_seo_fields = false;
    }
    $output = '';
    // Add nonce for custom fields.
    $output .= nxt_nonce_field('wooframework-custom-fields', 'wooframework-custom-fields-nonce', true, false);
    if ($callback['id'] == 'woothemes-settings') {
        // Add tabs.
        $output .= '<div class="wooframework-tabs">' . "\n";
        $output .= '<ul class="tabber hide-if-no-js">' . "\n";
        if ($display_general_fields) {
            $output .= '<li class="wf-tab-general"><a href="#wf-tab-general">' . __('General Settings', 'woothemes') . '</a></li>' . "\n";
        }
        if ($display_seo_fields) {
            $output .= '<li class="wf-tab-seo"><a href="#wf-tab-seo">' . __('SEO', 'woothemes') . '</a></li>' . "\n";
        }
        // Allow themes/plugins to add tabs to WooFramework custom fields.
        $output .= apply_filters('wooframework_custom_field_tab_headings', '');
        $output .= '</ul>' . "\n";
    }
    if ($display_general_fields) {
        $output .= woothemes_metabox_create_fields($woo_metaboxes, $callback, 'general');
    }
    if ($display_seo_fields && array_search(get_post_type(), $seo_post_types) !== false) {
        $output .= woothemes_metabox_create_fields($seo_metaboxes, $callback, 'seo');
    }
    // Allow themes/plugins to add tabs to WooFramework custom fields.
    $output = apply_filters('wooframework_custom_field_tab_content', $output);
    $output .= '</div>' . "\n";
    echo $output;
}
开发者ID:nxtclass,项目名称:NXTClass-themes,代码行数:68,代码来源:admin-custom.php

示例2: bp_message_get_recipient_usernames

</textarea>

	<input type="hidden" name="send_to_usernames" id="send-to-usernames" value="<?php 
bp_message_get_recipient_usernames();
?>
" class="<?php 
bp_message_get_recipient_usernames();
?>
" />

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

	<div class="submit">
		<input type="submit" value="<?php 
_e("Send Message", 'buddypress');
?>
" name="send" id="send" />
	</div>

	<?php 
nxt_nonce_field('messages_send_message');
?>
</form>

<script type="text/javascript">
	document.getElementById("send-to-input").focus();
</script>

开发者ID:nxtclass,项目名称:NXTClass-Plugin,代码行数:29,代码来源:compose.php

示例3: nxt_link_dialog

    /**
     * Dialog for internal linking.
     *
     * @since 3.1.0
     */
    public static function nxt_link_dialog()
    {
        ?>
	<div style="display:none;">
	<form id="nxt-link" tabindex="-1">
	<?php 
        nxt_nonce_field('internal-linking', '_ajax_linking_nonce', false);
        ?>
	<div id="link-selector">
		<div id="link-options">
			<p class="howto"><?php 
        _e('Enter the destination URL');
        ?>
</p>
			<div>
				<label><span><?php 
        _e('URL');
        ?>
</span><input id="url-field" type="text" tabindex="10" name="href" /></label>
			</div>
			<div>
				<label><span><?php 
        _e('Title');
        ?>
</span><input id="link-title-field" type="text" tabindex="20" name="linktitle" /></label>
			</div>
			<div class="link-target">
				<label><input type="checkbox" id="link-target-checkbox" tabindex="30" /> <?php 
        _e('Open link in a new window/tab');
        ?>
</label>
			</div>
		</div>
		<?php 
        $show_internal = '1' == get_user_setting('nxtlink', '0');
        ?>
		<p class="howto toggle-arrow <?php 
        if ($show_internal) {
            echo 'toggle-arrow-active';
        }
        ?>
" id="internal-toggle"><?php 
        _e('Or link to existing content');
        ?>
</p>
		<div id="search-panel"<?php 
        if (!$show_internal) {
            echo ' style="display:none"';
        }
        ?>
>
			<div class="link-search-wrapper">
				<label>
					<span><?php 
        _e('Search');
        ?>
</span>
					<input type="text" id="search-field" class="link-search-field" tabindex="60" autocomplete="off" />
					<img class="waiting" src="<?php 
        echo esc_url(admin_url('images/nxtspin_light.gif'));
        ?>
" alt="" />
				</label>
			</div>
			<div id="search-results" class="query-results">
				<ul></ul>
				<div class="river-waiting">
					<img class="waiting" src="<?php 
        echo esc_url(admin_url('images/nxtspin_light.gif'));
        ?>
" alt="" />
				</div>
			</div>
			<div id="most-recent-results" class="query-results">
				<div class="query-notice"><em><?php 
        _e('No search term specified. Showing recent items.');
        ?>
</em></div>
				<ul></ul>
				<div class="river-waiting">
					<img class="waiting" src="<?php 
        echo esc_url(admin_url('images/nxtspin_light.gif'));
        ?>
" alt="" />
				</div>
			</div>
		</div>
	</div>
	<div class="submitbox">
		<div id="nxt-link-cancel">
			<a class="submitdelete deletion" href="#"><?php 
        _e('Cancel');
        ?>
</a>
		</div>
//.........这里部分代码省略.........
开发者ID:nxtclass,项目名称:NXTClass,代码行数:101,代码来源:class-nxt-editor.php

示例4: step_finish

    function step_finish()
    {
        if (!current_user_can('activate_plugins')) {
            return false;
        }
        // What type of action is happening here?
        $type = 'install' == $this->setup_type ? __('setup', 'buddypress') : __('update', 'buddypress');
        ?>

		<p><?php 
        printf(__("The BuddyPress %1\$s is complete, and your site is ready to go!", 'buddypress'), $type, $type);
        ?>
</p>

		<div class="submit clear">
			<input type="hidden" name="save" value="finish" />
			<input type="hidden" name="step" value="<?php 
        echo esc_attr($this->current_step);
        ?>
" />

			<?php 
        nxt_nonce_field('bpwizard_finish');
        ?>

		</div>

	<?php 
    }
开发者ID:nxtclass,项目名称:NXTClass-Plugin,代码行数:29,代码来源:bp-core-update.php

示例5: screen

 /**
  * screen()
  * 
  * Handles the nxt-admin screen
  */
 function screen()
 {
     $nonce_name = 'courseware_options';
     $vars = array();
     $vars['nonce'] = nxt_nonce_field($nonce_name, '_nxtnonce', true, false);
     $is_nonce = false;
     if (isset($_POST['_nxtnonce'])) {
         check_admin_referer($nonce_name);
     }
     // Courseware Global Status
     if (isset($_POST['bpsp_global_status'])) {
         if (update_option('bpsp_global_status', strtolower($_POST['bpsp_global_status']))) {
             $vars['flash'][] = __('Courseware option was updated.', 'bpsp');
         }
     }
     if (!isset($_POST['bpsp_global_status']) && isset($_POST['bpsp_global_status_check'])) {
         if (update_option('bpsp_global_status', '')) {
             $vars['flash'][] = __('Courseware option was updated.', 'bpsp');
         }
     }
     // Courseware Collaborative Settings
     if (isset($_POST['bpsp_allow_only_admins'])) {
         if (update_option('bpsp_allow_only_admins', strtolower($_POST['bpsp_allow_only_admins']))) {
             $vars['flash'][] = __('Courseware option was updated.', 'bpsp');
         }
     }
     if (!isset($_POST['bpsp_allow_only_admins']) && isset($_POST['bpsp_allow_only_admins_check'])) {
         if (update_option('bpsp_allow_only_admins', '')) {
             $vars['flash'][] = __('Courseware option was updated.', 'bpsp');
         }
     }
     // Courseware Private Responses
     if (isset($_POST['bpsp_private_responses_check'])) {
         if (update_option('bpsp_private_responses', strtolower($_POST['bpsp_private_responses']))) {
             $vars['flash'][] = __('Courseware option was updated.', 'bpsp');
         }
     }
     if (isset($_POST['bpsp_private_responses_check']) && !isset($_POST['bpsp_private_responses'])) {
         if (update_option('bpsp_private_responses', '')) {
             $vars['flash'][] = __('Courseware option was updated.', 'bpsp');
         }
     }
     // Courseware Default Gradebook Format
     if (isset($_POST['bpsp_gradebook_format_check']) && isset($_POST['bpsp_gradebook_format'])) {
         if (update_option('bpsp_gradebook_format', strtolower($_POST['bpsp_gradebook_format']))) {
             $vars['flash'][] = __('Courseware gradebook format option was updated.', 'bpsp');
         }
     }
     // Courseware Bibliography Webservices Integration
     if (isset($_POST['worldcat_key']) && !empty($_POST['worldcat_key'])) {
         if (update_option('bpsp_worldcat_key', $_POST['worldcat_key'])) {
             $vars['flash'][] = __('WorldCat option was updated.', 'bpsp');
         }
     }
     if (isset($_POST['isbndb_key']) && !empty($_POST['isbndb_key'])) {
         if (update_option('bpsp_isbndb_key', $_POST['isbndb_key'])) {
             $vars['flash'][] = __('ISBNdb option was updated.', 'bpsp');
         }
     }
     // Courseware Custom CSS
     if (isset($_POST['bpsp_load_css_check']) && isset($_POST['bpsp_load_css'])) {
         if (update_option('bpsp_load_css', strtolower($_POST['bpsp_load_css']))) {
             $vars['flash'][] = __('Courseware customization options updated.', 'bpsp');
         }
     }
     if (isset($_POST['bpsp_load_css_check']) && !isset($_POST['bpsp_load_css'])) {
         if (update_option('bpsp_load_css', '')) {
             $vars['flash'][] = __('Courseware customization options updated.', 'bpsp');
         }
     }
     $vars['name'] = 'admin';
     $vars['echo'] = 'true';
     $vars['bpsp_private_responses'] = get_option('bpsp_private_responses');
     $vars['bpsp_gradebook_format'] = get_option('bpsp_gradebook_format');
     $vars['bpsp_allow_only_admins'] = get_option('bpsp_allow_only_admins');
     $vars['bpsp_global_status'] = get_option('bpsp_global_status');
     $vars['worldcat_key'] = get_option('bpsp_worldcat_key');
     $vars['isbndb_key'] = get_option('bpsp_isbndb_key');
     $vars['bpsp_load_css'] = get_option('bpsp_load_css');
     //Load the template
     self::load_template($vars);
 }
开发者ID:nxtclass,项目名称:NXTClass-Plugin,代码行数:87,代码来源:nxtclass.class.php

示例6: do_action

    do_action('bp_after_group_send_invites_list');
    ?>

		</div><!-- .main-column -->

		<div class="clear"></div>

		<div class="submit">
			<input type="submit" name="submit" id="submit" value="<?php 
    _e('Send Invites', 'buddypress');
    ?>
" />
		</div>

		<?php 
    nxt_nonce_field('groups_send_invites', '_nxtnonce_send_invites');
    ?>

		<?php 
    /* This is important, don't forget it */
    ?>
		<input type="hidden" name="group_id" id="group_id" value="<?php 
    bp_group_id();
    ?>
" />

	</form><!-- #send-invite-form -->

<?php 
} else {
    ?>
开发者ID:nxtclass,项目名称:NXTClass-themes,代码行数:31,代码来源:send-invites.php

示例7: gradebook_screen

 /**
  * gradebook_screen( $vars )
  *
  * Hooks into screen_handler
  * Adds a UI to assignments for gradebook management.
  *
  * @param Array $vars a set of variables received for this screen template
  * @return Array $vars a set of variable passed to this screen template
  */
 function gradebook_screen($vars)
 {
     global $bp;
     $nonce_name = 'gradebook_nonce';
     $nonce_import_name = 'gradebook_import_nonce';
     $nonce_clear_name = 'gradebook_clear_nonce';
     if (!$this->has_gradebook_caps($bp->loggedin_user->id) && !is_super_admin()) {
         $vars['die'] = __('BuddyPress Courseware Error while forbidden user tried to manage gradebook.', 'bpsp');
         return $vars;
     }
     $students = BP_Groups_Member::get_all_for_group($bp->groups->current_group->id);
     if (isset($_POST['_nxtnonce'])) {
         $is_nonce = nxt_verify_nonce($_POST['_nxtnonce'], $nonce_name);
     }
     if (isset($_POST['_nxtnonce']) && true != $is_nonce) {
         $vars['die'] = __('BuddyPress Courseware Nonce Error while updating gradebook.', 'bpsp');
         return $vars;
     }
     $gradebook_id = $this->has_gradebook($this->current_assignment);
     if (!$gradebook_id) {
         $vars['die'] = __('BuddyPress Courseware Error while creating gradebook.', 'bpsp');
         return $vars;
     }
     if (!empty($_POST['grade'])) {
         foreach ($_POST['grade'] as $grade) {
             if (!empty($grade) && !empty($grade['uid']) && !empty($grade['value'])) {
                 # If grade was added or updated!
                 $status = $this->save_grade($gradebook_id, $grade);
                 if ($status !== null) {
                     $data = array('grade' => $grade, 'teacher' => $bp->loggedin_user->userdata, 'assignment' => $this->current_assignment);
                     if ($status == true) {
                         do_action('courseware_grade_added', $data);
                     } else {
                         do_action('courseware_grade_updated', $data);
                     }
                 }
             }
         }
         $vars['message'] = __('Gradebook saved.', 'bpsp');
     }
     $vars['name'] = 'gradebook';
     $vars['students'] = $students['members'];
     if (empty($vars['grades'])) {
         $vars['grades'] = $this->load_grades($gradebook_id, true);
     }
     $vars['bpsp_gradebook_format'] = get_option('bpsp_gradebook_format');
     $vars['assignment'] = BPSP_Assignments::is_assignment($this->current_assignment);
     $vars['gradebook_permalink'] = $vars['assignment_permalink'] . '/gradebook';
     $vars['clear_gradebook_permalink'] = add_query_arg('_nxtnonce', nxt_create_nonce($nonce_clear_name), $vars['gradebook_permalink'] . '/clear');
     $vars['import_gradebook_nonce'] = nxt_nonce_field($nonce_import_name, '_nxtnonce', true, false);
     $vars['nonce'] = nxt_nonce_field($nonce_name, '_nxtnonce', true, false);
     return $vars;
 }
开发者ID:nxtclass,项目名称:NXTClass-Plugin,代码行数:62,代码来源:gradebook.class.php

示例8: bp_search_form

/**
 * Last used by core in BP 1.1. The markup was merged into DTheme's header.php template.
 */
function bp_search_form()
{
    _deprecated_function(__FUNCTION__, '1.1', 'No longer required.');
    $form = '
		<form action="' . bp_search_form_action() . '" method="post" id="search-form">
			<input type="text" id="search-terms" name="search-terms" value="" />
			' . bp_search_form_type_select() . '

			<input type="submit" name="search-submit" id="search-submit" value="' . __('Search', 'buddypress') . '" />
			' . nxt_nonce_field('bp_search_form') . '
		</form>
	';
    echo apply_filters('bp_search_form', $form);
}
开发者ID:nxtclass,项目名称:NXTClass-Plugin,代码行数:17,代码来源:1.5.php

示例9: _admin_page


//.........这里部分代码省略.........
						<?php 
            // Show each student's name in the header
            foreach ($student_ids as $student_id) {
                printf('<th>%s</th>', esc_html($student_names[$student_id]));
            }
            ?>
					</tr>
				</thead>

				<tfoot>
					<th><?php 
            _e('Totals', 'classblogs');
            ?>
</th>
					<?php 
            // Display each student's total words in the footer
            foreach ($student_ids as $student_id) {
                printf('<td title="%s">%s</td>', esc_attr($student_names[$student_id]), number_format($total_counts[$student_id]));
            }
            ?>
				</tfoot>

				<tbody>
					<?php 
            // Show each week and every student's total words for that week
            $required_words = $this->get_option('required_weekly_words');
            foreach ($word_counts as $week_counts) {
                echo "<tr>";
                $verbose_date = date_i18n('M j, Y', (int) $week_counts['week_start']->format('U'));
                printf('<th class="week">%s</th>', $verbose_date);
                $counter = 0;
                foreach ($student_ids as $student_id) {
                    $classes = array();
                    $count = $week_counts['user_counts'][$student_id];
                    if (!$count) {
                        $classes[] = 'null';
                    } else {
                        if ($count < $required_words) {
                            $classes[] = 'under';
                        } else {
                            if ($count >= $required_words) {
                                $classes[] = 'over';
                            }
                        }
                    }
                    $classes[] = $counter % 2 ? 'even' : 'odd';
                    $counter++;
                    printf('<td title="%s" class="%s">%s</td>', esc_attr(sprintf(__('%1$s on %2$s'), $student_names[$student_id], $verbose_date)), implode(' ', $classes), number_format($count));
                }
                echo "</tr>";
            }
            ?>
				</tbody>

			</table>
		</div>

		<?php 
        }
        ?>

		<h3><?php 
        _e('Options', 'classblogs');
        ?>
</h3>

		<form method="post" action="">

			<table class="form-table">
				<tr valign="top">
					<th scope="row"><?php 
        _e('Required Weekly Words', 'classblogs');
        ?>
</th>
					<td>
						<input type="text" name="required_weekly_words" id="required-weekly-words" value="<?php 
        echo esc_attr($this->get_option('required_weekly_words'));
        ?>
" /><br />
						<label for="required-weekly-words"><?php 
        _e('The number of words a student must write per week.', 'classblogs');
        ?>
</label>
					</td>
				</tr>
			</table>

			<?php 
        nxt_nonce_field($this->get_uid());
        ?>
			<p class="submit"><input type="submit" class="button-primary" name="Submit" value="<?php 
        _e('Update Required Word Count', 'classblogs');
        ?>
" /></p>
		</form>

	</div>

<?php 
    }
开发者ID:nxtclass,项目名称:NXTClass-Plugin,代码行数:101,代码来源:WordCounter.php

示例10: network_step1

/**
 * Prints step 1 for Network installation process.
 *
 * @todo Realistically, step 1 should be a welcome screen explaining what a Network is and such. Navigating to Tools > Network
 * 	should not be a sudden "Welcome to a new install process! Fill this out and click here." See also contextual help todo.
 *
 * @since 3.0.0
 */
function network_step1($errors = false)
{
    global $is_apache;
    if (get_option('siteurl') != get_option('home')) {
        echo '<div class="error"><p><strong>' . __('ERROR:') . '</strong> ' . sprintf(__('Your <strong>NXTClass address</strong> must match your <strong>Site address</strong> before creating a Network. See <a href="%s">General Settings</a>.'), esc_url(admin_url('options-general.php'))) . '</p></div>';
        echo '</div>';
        include ABSPATH . 'nxt-admin/admin-footer.php';
        die;
    }
    if (defined('DO_NOT_UPGRADE_GLOBAL_TABLES')) {
        echo '<div class="error"><p><strong>' . __('ERROR:') . '</strong> ' . __('The constant DO_NOT_UPGRADE_GLOBAL_TABLES cannot be defined when creating a network.') . '</p></div>';
        echo '</div>';
        include ABSPATH . 'nxt-admin/admin-footer.php';
        die;
    }
    $active_plugins = get_option('active_plugins');
    if (!empty($active_plugins)) {
        echo '<div class="updated"><p><strong>' . __('Warning:') . '</strong> ' . sprintf(__('Please <a href="%s">deactivate your plugins</a> before enabling the Network feature.'), admin_url('plugins.php?plugin_status=active')) . '</p></div><p>' . __('Once the network is created, you may reactivate your plugins.') . '</p>';
        echo '</div>';
        include ABSPATH . 'nxt-admin/admin-footer.php';
        die;
    }
    $hostname = get_clean_basedomain();
    $has_ports = strstr($hostname, ':');
    if (false !== $has_ports && !in_array($has_ports, array(':80', ':443'))) {
        echo '<div class="error"><p><strong>' . __('ERROR:') . '</strong> ' . __('You cannot install a network of sites with your server address.') . '</p></div>';
        echo '<p>' . sprintf(__('You cannot use port numbers such as <code>%s</code>.'), $has_ports) . '</p>';
        echo '<a href="' . esc_url(admin_url()) . '">' . __('Return to Dashboard') . '</a>';
        echo '</div>';
        include ABSPATH . 'nxt-admin/admin-footer.php';
        die;
    }
    echo '<form method="post" action="">';
    nxt_nonce_field('install-network-1');
    $error_codes = array();
    if (is_nxt_error($errors)) {
        echo '<div class="error"><p><strong>' . __('ERROR: The network could not be created.') . '</strong></p>';
        foreach ($errors->get_error_messages() as $error) {
            echo "<p>{$error}</p>";
        }
        echo '</div>';
        $error_codes = $errors->get_error_codes();
    }
    if (nxt_CONTENT_DIR != ABSPATH . 'nxt-content') {
        echo '<div class="error"><p><strong>' . __('Warning!') . '</strong> ' . __('Networks may not be fully compatible with custom nxt-content directories.') . '</p></div>';
    }
    $site_name = !empty($_POST['sitename']) && !in_array('empty_sitename', $error_codes) ? $_POST['sitename'] : sprintf(_x('%s Sites', 'Default network name'), get_option('blogname'));
    $admin_email = !empty($_POST['email']) && !in_array('invalid_email', $error_codes) ? $_POST['email'] : get_option('admin_email');
    ?>
	<p><?php 
    _e('Welcome to the Network installation process!');
    ?>
</p>
	<p><?php 
    _e('Fill in the information below and you&#8217;ll be on your way to creating a network of NXTClass sites. We will create configuration files in the next step.');
    ?>
</p>
	<?php 
    if (isset($_POST['subdomain_install'])) {
        $subdomain_install = (bool) $_POST['subdomain_install'];
    } elseif (apache_mod_loaded('mod_rewrite')) {
        // assume nothing
        $subdomain_install = true;
    } elseif (!allow_subdirectory_install()) {
        $subdomain_install = true;
    } else {
        $subdomain_install = false;
        if ($got_mod_rewrite = got_mod_rewrite()) {
            // dangerous assumptions
            echo '<div class="updated inline"><p><strong>' . __('Note:') . '</strong> ' . __('Please make sure the Apache <code>mod_rewrite</code> module is installed as it will be used at the end of this installation.') . '</p>';
        } elseif ($is_apache) {
            echo '<div class="error inline"><p><strong>' . __('Warning!') . '</strong> ' . __('It looks like the Apache <code>mod_rewrite</code> module is not installed.') . '</p>';
        }
        if ($got_mod_rewrite || $is_apache) {
            // Protect against mod_rewrite mimicry (but ! Apache)
            echo '<p>' . __('If <code>mod_rewrite</code> is disabled, ask your administrator to enable that module, or look at the <a href="http://httpd.apache.org/docs/mod/mod_rewrite.html">Apache documentation</a> or <a href="http://www.google.com/search?q=apache+mod_rewrite">elsewhere</a> for help setting it up.') . '</p></div>';
        }
    }
    if (allow_subdomain_install() && allow_subdirectory_install()) {
        ?>
		<h3><?php 
        esc_html_e('Addresses of Sites in your Network');
        ?>
</h3>
		<p><?php 
        _e('Please choose whether you would like sites in your NXTClass network to use sub-domains or sub-directories. <strong>You cannot change this later.</strong>');
        ?>
</p>
		<p><?php 
        _e('You will need a wildcard DNS record if you are going to use the virtual host (sub-domain) functionality.');
        ?>
</p>
//.........这里部分代码省略.........
开发者ID:nxtclass,项目名称:NXTClass,代码行数:101,代码来源:network.php

示例11: bp_group_member_admin_pagination

function bp_group_member_admin_pagination()
{
    echo bp_get_group_member_admin_pagination();
    nxt_nonce_field('bp_groups_member_admin_list', '_member_admin_pag_nonce');
}
开发者ID:nxtclass,项目名称:NXTClass,代码行数:5,代码来源:bp-groups-template.php

示例12: _e

    }
    ?>
	</div>
	<div style="clear: left"></div>

	<input type="submit" name="achievement-change-picture" id="achievement-change-picture" value="<?php 
    _e('Update Picture', 'dpa');
    ?>
">
	<input type="hidden" name="picture_id" id="picture_id" value="<?php 
    echo esc_attr(dpa_get_achievement_picture_id());
    ?>
" />

	<?php 
    nxt_nonce_field('achievement-change-picture-' . dpa_get_achievement_slug());
    ?>
	</form>

	<div id="pag-bottom" class="pagination no-ajax">
		<div class="pag-count" id="achievement-change-picture-dir-count">
			<?php 
    dpa_change_picture_pagination_count();
    ?>
		</div>

		<div class="pagination-links" id="achievement-change-picture-dir-pag">
			<?php 
    dpa_change_picture_pagination();
    ?>
		</div>
开发者ID:nxtclass,项目名称:NXTClass,代码行数:31,代码来源:change-picture.php

示例13: esc_attr

<form id="addtag" method="post" action="edit-tags.php" class="validate">
<input type="hidden" name="action" value="add-tag" />
<input type="hidden" name="screen" value="<?php 
            echo esc_attr($current_screen->id);
            ?>
" />
<input type="hidden" name="taxonomy" value="<?php 
            echo esc_attr($taxonomy);
            ?>
" />
<input type="hidden" name="post_type" value="<?php 
            echo esc_attr($post_type);
            ?>
" />
<?php 
            nxt_nonce_field('add-tag', '_nxtnonce_add-tag');
            ?>

<div class="form-field form-required">
	<label for="tag-name"><?php 
            _ex('Name', 'Taxonomy Name');
            ?>
</label>
	<input name="tag-name" id="tag-name" type="text" value="" size="40" aria-required="true" />
	<p><?php 
            _e('The name is how it appears on your site.');
            ?>
</p>
</div>
<?php 
            if (!global_terms_enabled()) {
开发者ID:nxtclass,项目名称:NXTClass,代码行数:31,代码来源:edit-tags.php

示例14: jfb_output_facebook_callback

function jfb_output_facebook_callback($redirectTo = 0, $callbackName = 0)
{
    //Make sure the plugin is setup properly before doing anything
    global $jfb_name, $jfb_version;
    global $opt_jfb_ask_perms, $opt_jfb_valid, $jfb_nonce_name;
    global $jfb_js_callbackfunc, $opt_jfb_ask_stream, $jfb_callback_list;
    if (!get_option($opt_jfb_valid)) {
        return;
    }
    //Get out our params
    if (!$redirectTo) {
        $redirectTo = htmlspecialchars($_SERVER['REQUEST_URI']);
    }
    if (!$callbackName) {
        $callbackName = $jfb_js_callbackfunc;
    }
    echo "\n<!-- {$jfb_name} Callback v{$jfb_version} -->\n";
    //Make sure we haven't already output a callback with this name
    if (in_array($callbackName, $jfb_callback_list)) {
        echo "\n<!--jfb_output_facebook_callback has already generated a callback named {$callbackName}!  Skipping.-->\n";
        return;
    } else {
        array_push($jfb_callback_list, $callbackName);
    }
    //Output an html form that we'll submit via JS once the FB login is complete; it redirects us to the PHP script that logs us into nxt.
    ?>
  
  <form id="nxt-fb-ac-fm" name="<?php 
    echo $callbackName;
    ?>
_form" method="post" action="<?php 
    echo plugins_url(dirname(plugin_basename(__FILE__))) . "/_process_login.php";
    ?>
" >
      <input type="hidden" name="redirectTo" value="<?php 
    echo $redirectTo;
    ?>
" />
<?php 
    //An action to allow the user to inject additional data in the form, to be transferred to the login script
    do_action('nxtfb_add_to_form');
    ?>
      <?php 
    nxt_nonce_field($jfb_nonce_name, $jfb_nonce_name);
    ?>
   
    </form>
<?php 
    //Output the JS callback function, which Facebook will automatically call once it's been logged in.
    ?>
<script type="text/javascript">//<!--
    function <?php 
    echo $callbackName;
    ?>
()
    {
<?php 
    //An action to allow the user to inject additional javascript to get executed before the login takes place
    do_action('nxtfb_add_to_js', $callbackName);
    //First, make sure the user logged into Facebook (didn't click "cancel" in the login prompt)
    echo "    //Make sure the user logged in\n" . "    FB.getLoginStatus(function(response)\n" . "    {\n" . "      if (!response.authResponse)\n" . "      {\n" . apply_filters('nxtfb_login_rejected', '') . "      return;\n" . "      }\n\n";
    //Submit the login and close the FB.getLoginStatus call
    echo apply_filters('nxtfb_submit_loginfrm', "      document." . $callbackName . "_form.submit();\n");
    echo "    });\n";
    ?>
    }
    //--></script>
    <?php 
}
开发者ID:nxtclass,项目名称:NXTClass,代码行数:69,代码来源:Main.php

示例15: do_action

    do_action('bp_before_registration_submit_buttons');
    ?>

				<div class="submit">
					<input type="submit" name="signup_submit" id="signup_submit" value="<?php 
    _e('Complete Sign Up', 'buddypress');
    ?>
" />
				</div>

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

				<?php 
    nxt_nonce_field('bp_new_signup');
    ?>

			<?php 
}
// request-details signup step
?>

			<?php 
if ('completed-confirmation' == bp_get_current_signup_step()) {
    ?>

				<h2><?php 
    _e('Sign Up Complete!', 'buddypress');
    ?>
</h2>
开发者ID:nxtclass,项目名称:NXTClass-Plugin,代码行数:31,代码来源:register.php


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