當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Util_Ui::nonce_field方法代碼示例

本文整理匯總了PHP中Util_Ui::nonce_field方法的典型用法代碼示例。如果您正苦於以下問題:PHP Util_Ui::nonce_field方法的具體用法?PHP Util_Ui::nonce_field怎麽用?PHP Util_Ui::nonce_field使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Util_Ui的用法示例。


在下文中一共展示了Util_Ui::nonce_field方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: cloudflare_button_save

 private static function cloudflare_button_save($id = '')
 {
     $b1_id = 'w3tc_cloudflare_save_' . $id;
     echo '<p class="submit">';
     echo Util_Ui::nonce_field('w3tc');
     echo '<input type="submit" id="' . $b1_id . '" name="w3tc_cloudflare_save_settings" ' . ' class="w3tc-button-save button-primary" ' . ' value="' . __('Save CloudFlare settings', 'w3-total-cache') . '" />';
     echo '</p>';
 }
開發者ID:developmentDM2,項目名稱:Whohaha,代碼行數:8,代碼來源:Extension_CloudFlare_Page.php

示例2: _e

}
?>
</p>


<form action="admin.php?page=w3tc_cdn" method="post">
    <p><?php 
_e('Files to purge:', 'w3-total-cache');
?>
</p>
    <p>
        <textarea name="files" rows="10" cols="90"></textarea>
    </p>
    <p>
        <?php 
echo Util_Ui::nonce_field('w3tc');
?>
        <input class="button-primary" type="submit" name="w3tc_cdn_purge_files" value="<?php 
_e('Purge', 'w3-total-cache');
?>
" />
    </p>
</form>

<div class="log">
    <?php 
foreach ($results as $result) {
    ?>
        <div class="log-<?php 
    echo $result['result'] == W3TC_CDN_RESULT_OK ? 'success' : 'error';
    ?>
開發者ID:developmentDM2,項目名稱:Whohaha,代碼行數:31,代碼來源:cdn_purge.php

示例3: sprintf

}
include W3TC_INC_DIR . '/options/common/header.php';
?>

<form action="admin.php?page=<?php 
echo $this->_page;
?>
" method="post">
	<p>
		<?php 
echo sprintf(__('Page caching via %1$s is currently %2$s', 'w3-total-cache'), '<strong>' . Cache::engine_name($this->_config->get_string('pgcache.engine')) . '</strong>', '<span class="w3tc-' . ($pgcache_enabled ? 'enabled">' . __('enabled', 'w3-total-cache') : 'disabled">' . __('disabled', 'w3-total-cache')) . '</span>.');
?>
	</p>
	<p>
		<?php 
echo sprintf(__('To rebuild the page cache use the %s operation', 'w3-total-cache'), Util_Ui::nonce_field('w3tc') . '<input type="submit" name="w3tc_flush_pgcache" value="empty cache"' . disabled($pgcache_enabled, false, false) . ' class="button" />');
?>
	</p>
</form>

<form action="admin.php?page=<?php 
echo $this->_page;
?>
" method="post">
	<div class="metabox-holder">
		<?php 
Util_Ui::postbox_header(__('General', 'w3-total-cache'), '', 'general');
?>
		<table class="form-table">
			<tr>
				<th>
開發者ID:eduardodomingos,項目名稱:eduardodomingos.com,代碼行數:31,代碼來源:pgcache.php

示例4: sprintf

}
?>
/*]]>*/</script>

<form action="admin.php?page=<?php 
echo $this->_page;
?>
" method="post">
    <p>
        <?php 
echo sprintf(__('Minify via %s is currently %s.', 'w3-total-cache'), Cache::engine_name($this->_config->get_string('minify.engine')), '<span class="w3tc-' . ($minify_enabled ? 'enabled">' . __('enabled', 'w3-total-cache') : 'disabled">' . __('disabled', 'w3-total-cache')) . '</span>');
?>
    </p>
    <p>
		<?php 
echo sprintf(__('To rebuild the minify cache use the %s operation.', 'w3-total-cache'), Util_Ui::nonce_field('w3tc') . '<input type="submit" name="w3tc_flush_minify" value="' . __('empty cache', 'w3-total-cache') . '"' . disabled($minify_enabled, false, false) . ' class="button" />');
?>
        <?php 
if (!$auto) {
    ?>
            <?php 
    _e('Get minify hints using the', 'w3-total-cache');
    ?>
            <input type="button" class="button button-minify-recommendations {nonce: '<?php 
    echo wp_create_nonce('w3tc');
    ?>
'}" value="<?php 
    _e('help', 'w3-total-cache');
    ?>
" />
            <?php 
開發者ID:developmentDM2,項目名稱:Whohaha,代碼行數:31,代碼來源:minify.php

示例5: button_config_save

    public static function button_config_save($id = '', $extra = '')
    {
        $b1_id = 'w3tc_save_options_' . $id;
        $b2_id = 'w3tc_default_save_and_flush_' . $id;
        ?>
        <p class="submit">
            <?php 
        echo Util_Ui::nonce_field('w3tc');
        ?>
            <input type="submit" id="<?php 
        echo $b1_id;
        ?>
"
                name="w3tc_save_options"
                class="w3tc-button-save button-primary"
                value="<?php 
        _e('Save all settings', 'w3-total-cache');
        ?>
" />
            <?php 
        echo $extra;
        ?>
            <?php 
        if (!is_network_admin()) {
            ?>
            <input type="submit" id="<?php 
            echo $b2_id;
            ?>
"
                name="w3tc_default_save_and_flush" style="float: right"
                class="w3tc-button-save button-primary"
                value="<?php 
            _e('Save Settings & Purge Caches', 'w3-total-cache');
            ?>
" />
            <?php 
        }
        ?>
        </p>
        <?php 
    }
開發者ID:developmentDM2,項目名稱:Whohaha,代碼行數:41,代碼來源:Util_Ui.php


注:本文中的Util_Ui::nonce_field方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。