本文整理汇总了PHP中access::csrf_form_field方法的典型用法代码示例。如果您正苦于以下问题:PHP access::csrf_form_field方法的具体用法?PHP access::csrf_form_field怎么用?PHP access::csrf_form_field使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类access
的用法示例。
在下文中一共展示了access::csrf_form_field方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: defined
<?php
defined("SYSPATH") or die("No direct script access.");
?>
<form method="post" action="<?php
echo url::site("admin/identity/change");
?>
">
<?php
echo access::csrf_form_field();
?>
<?php
echo form::hidden("provider", $new_provider);
?>
<p><span class="ui-icon ui-icon-alert" style="float: left; margin:0 7px 20px 0;"></span>
<?php
echo t("Are you sure you want to change your Identity Provider? Continuing will delete all existing users.");
?>
</p>
</form>
示例2:
<?= $string["source"] ?>
<? endif; ?>
</li>
<? endforeach; ?>
</ul>
<?= $l10n_search_form ?>
</div>
<div id="l10n-client-string-editor">
<div class="source">
<p class="source-text"></p>
<p id="source-text-tmp-space" style="display:none"></p>
</div>
<div class="translation">
<form method="post" action="<?= url::site("l10n_client/save") ?>" id="gL10nClientSaveForm">
<?= access::csrf_form_field() ?>
<?= form::hidden("l10n-message-key") ?>
<?= form::textarea("l10n-edit-translation", "", ' rows="5" class="translationField"') ?>
<div id="plural-zero" class="translationField hidden">
<label for="l10n-edit-plural-translation-zero">[zero]</label>
<?= form::textarea("l10n-edit-plural-translation-zero", "", ' rows="2"') ?>
</div>
<div id="plural-one" class="translationField hidden">
<label for="l10n-edit-plural-translation-one">[one]</label>
<?= form::textarea("l10n-edit-plural-translation-one", "", ' rows="2"') ?>
</div>
<div id="plural-two" class="translationField hidden">
<label for="l10n-edit-plural-translation-two">[two]</label>
<?= form::textarea("l10n-edit-plural-translation-two", "", ' rows="2"') ?>
</div>
<div id="plural-few" class="translationField hidden">