本文整理汇总了PHP中form_security_field函数的典型用法代码示例。如果您正苦于以下问题:PHP form_security_field函数的具体用法?PHP form_security_field怎么用?PHP form_security_field使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了form_security_field函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: create
/**
*
*
*/
function create(&$argsObj, &$guiObj, $oWebEditorKeys)
{
$uiObj = new stdClass();
$uiObj->doActionValue = 'doCreate';
$uiObj->buttonValue = $this->l18n['btn_create'];
$uiObj->caption = $this->l18n['caption_new_tproject'];
$uiObj->testprojects = $this->tprojectMgr->get_all(null, array('access_key' => 'id'));
// update by refence
$argsObj->active = 1;
$argsObj->is_public = 1;
$guiObj->initWebEditorFromTemplate = true;
$guiObj->testprojects = $uiObj->testprojects;
$guiObj->reloadType = 'none';
$guiObj->form_security_field = form_security_field();
return $uiObj;
}
开发者ID:moraesmv,项目名称:testlink-code,代码行数:20,代码来源:projectCommands.class.php
示例2: auth_reauthenticate
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
auth_reauthenticate();
access_ensure_global_level(config_get('manage_plugin_threshold'));
html_page_top(plugin_lang_get('title'));
print_manage_menu();
?>
<br/>
<form action="<?php
echo plugin_page('config_edit');
?>
" method="post">
<?php
echo form_security_field('plugin_jQueryDecorate_config_edit');
?>
<table align="center" class="width75" cellspacing="1">
<tr>
<td class="form-title" colspan="3">
<?php
echo plugin_lang_get('title') . ': ' . plugin_lang_get('config');
?>
</td>
</tr>
<?php
if (current_user_is_administrator()) {
?>
开发者ID:74Labs,项目名称:mantisbt-jquery-decorate,代码行数:30,代码来源:config.php
示例3: get_enum_element
<td><?php
echo get_enum_element('custom_field_type', $t_desc['type']);
?>
</td>
<td><?php
echo string_display($t_desc['possible_values']);
?>
</td>
<td><?php
echo string_display($t_desc['default_value']);
?>
</td>
</tr><?php
}
# Create Form END
?>
</table>
<form method="post" action="manage_custom_field_create.php">
<fieldset>
<?php
echo form_security_field('manage_custom_field_create');
?>
<input type="text" name="name" size="32" maxlength="64" />
<input type="submit" class="button" value="<?php
echo lang_get('add_custom_field_button');
?>
" />
</fieldset>
</form>
</div><?php
html_page_bottom();
开发者ID:Kirill,项目名称:mantisbt,代码行数:31,代码来源:manage_custom_field_page.php
示例4: html_robots_noindex
# don't index bug report page
html_robots_noindex();
html_page_top(lang_get('report_bug_link'));
print_recently_visited();
$t_form_encoding = '';
if ($t_show_attachments) {
$t_form_encoding = 'enctype="multipart/form-data"';
}
?>
<br />
<form name="report_bug_form" method="post" <?php
echo $t_form_encoding;
?>
action="bug_report.php">
<?php
echo form_security_field('bug_report');
?>
<div class="table-container">
<table cellspacing="1">
<tr>
<td class="form-title" colspan="2">
<input type="hidden" name="m_id" value="<?php
echo $f_master_bug_id;
?>
" />
<input type="hidden" name="project_id" value="<?php
echo $t_project_id;
?>
" />
<?php
echo lang_get('enter_report_details_title');
开发者ID:derrickweaver,项目名称:mantisbt,代码行数:31,代码来源:bug_report_page.php
示例5: require_api
require_api('lang_api.php');
require_api('utility_api.php');
# Check if project documentation feature is enabled.
if (OFF == config_get('enable_project_documentation') || !file_is_uploading_enabled() || !file_allow_project_upload()) {
access_denied();
}
access_ensure_project_level(config_get('upload_project_file_threshold'));
$t_max_file_size = (int) min(ini_get_number('upload_max_filesize'), ini_get_number('post_max_size'), config_get('max_file_size'));
html_page_top();
?>
<br />
<div>
<form method="post" enctype="multipart/form-data" action="proj_doc_add.php">
<?php
echo form_security_field('proj_doc_add');
?>
<table class="width75" cellspacing="1">
<tr>
<td class="form-title">
<?php
echo lang_get('upload_file_title');
?>
</td>
<td class="right">
<?php
print_doc_menu('proj_doc_add_page.php');
?>
</td>
</tr>
<tr class="row-1">
开发者ID:gtn,项目名称:mantisbt,代码行数:31,代码来源:proj_doc_add_page.php
示例6: string_display
<br />
<div align="center">
<center><b><?php
print string_display(filter_db_get_name($f_query_id));
?>
</b></center>
<?php
echo lang_get('query_delete_msg');
?>
<form method="post" action="<?php
print $t_delete_url;
?>
">
<?php
echo form_security_field('query_delete');
?>
<br /><br />
<input type="hidden" name="source_query_id" value="<?php
print $f_query_id;
?>
"/>
<input type="submit" class="button" value="<?php
print lang_get('delete_query');
?>
"/>
</form>
<form method="post" action="<?php
print $t_redirect_url;
?>
开发者ID:kaos,项目名称:mantisbt,代码行数:31,代码来源:query_delete_page.php
示例7: lang_get
</span>
</td>
<td>
<input type="submit" class="button" value="<?php
echo lang_get('file_update_button');
?>
" />
</td>
</tr>
</table>
</form>
<br />
<form method="post" action="proj_doc_delete.php">
<?php
echo form_security_field('proj_doc_delete');
?>
<input type="hidden" name="file_id" value="<?php
echo $f_file_id;
?>
" />
<input type="hidden" name="title" value="<?php
echo $v_title;
?>
" />
<input type="submit" class="button" value="<?php
echo lang_get('file_delete_button');
?>
" />
</form>
</div>
开发者ID:N0ctrnl,项目名称:mantisbt,代码行数:31,代码来源:proj_doc_edit_page.php
示例8: get_capability_row
get_capability_row(lang_get('delete_own_bugnotes'), 'bugnote_user_delete_threshold');
get_capability_row(lang_get('view_private_notes'), 'private_bugnote_threshold');
get_capability_row(lang_get('change_view_state_own_bugnotes'), 'bugnote_user_change_view_state_threshold');
get_section_end();
# Others
get_section_begin_mcwt(lang_get('others'));
get_capability_row(lang_get('view') . ' ' . lang_get('changelog_link'), 'view_changelog_threshold');
get_capability_row(lang_get('view') . ' ' . lang_get('assigned_to'), 'view_handler_threshold');
get_capability_row(lang_get('view') . ' ' . lang_get('bug_history'), 'view_history_threshold');
get_capability_row(lang_get('send_reminders'), 'bug_reminder_threshold');
get_section_end();
if ($t_show_submit) {
echo "<input type=\"submit\" class=\"button\" value=\"" . lang_get('change_configuration') . "\" />\n";
}
echo "</form>\n";
if ($t_show_submit && 0 < count($t_overrides)) {
echo "<div class=\"right\"><form name=\"threshold_config_action\" method=\"post\" action=\"manage_config_revert.php\">\n";
echo form_security_field('manage_config_revert');
echo "<input name=\"revert\" type=\"hidden\" value=\"" . implode(',', $t_overrides) . "\"></input>";
echo "<input name=\"project\" type=\"hidden\" value=\"{$t_project_id}\"></input>";
echo "<input name=\"return\" type=\"hidden\" value=\"" . form_action_self() . "\"></input>";
echo "<input type=\"submit\" class=\"button\" value=\"";
if (ALL_PROJECTS == $t_project_id) {
echo lang_get('revert_to_system');
} else {
echo lang_get('revert_to_all_project');
}
echo "\" />\n";
echo "</form></div>\n";
}
html_page_bottom();
开发者ID:kaos,项目名称:mantisbt,代码行数:31,代码来源:manage_config_work_threshold_page.php
示例9: lang_get
echo lang_get('copy_columns_from');
?>
" /><?php
}
?>
<input type="submit" name="copy_to" class="button" value="<?php
echo lang_get('copy_columns_to');
?>
" />
</fieldset>
</form>
</div>
<?php
if ($t_account_page) {
?>
<div class="form-container">
<form method="post" action="manage_config_columns_reset.php">
<fieldset>
<?php
echo form_security_field('manage_config_columns_reset');
?>
<span class="submit-button"><input type="submit" class="button" value="<?php
echo lang_get('reset_columns_configuration');
?>
" /></span>
</fieldset>
</form>
</div>
<?php
}
开发者ID:Kirill,项目名称:mantisbt,代码行数:31,代码来源:manage_columns_inc.php
示例10: lang_get
?>
</td>
</tr>
<?php
if ($t_can_sponsor) {
?>
<tr class="row-1">
<th class="category" width="15%"><?php
echo lang_get('sponsor_issue');
?>
</th>
<td>
<form method="post" action="bug_set_sponsorship.php">
<?php
echo form_security_field('bug_set_sponsorship');
?>
<?php
echo sponsorship_get_currency();
?>
<input type="hidden" name="bug_id" value="<?php
echo $f_bug_id;
?>
" size="4" />
<input type="text" name="amount" value="<?php
echo config_get('minimum_sponsorship_amount');
?>
" size="4" />
<input type="submit" class="button" name="sponsor" value="<?php
echo lang_get('sponsor_verb');
?>
开发者ID:N0ctrnl,项目名称:mantisbt,代码行数:31,代码来源:bug_sponsorship_list_view_inc.php
示例11: edit_printing_prefs
/**
* Edit Printing preferences
* @param int $p_user_id user id
* @param bool $p_error_if_protected error if account protected
* @param string $p_redirect_url redirect url
*/
function edit_printing_prefs($p_user_id = null, $p_error_if_protected = true, $p_redirect_url = '')
{
if (null === $p_user_id) {
$p_user_id = auth_get_current_user_id();
}
$c_user_id = db_prepare_int($p_user_id);
# protected account check
if ($p_error_if_protected) {
user_ensure_unprotected($p_user_id);
}
$t_user_print_pref_table = db_get_table('user_print_pref');
if (is_blank($p_redirect_url)) {
$p_redirect_url = 'print_all_bug_page.php';
}
# get the fields list
$t_field_name_arr = get_field_names();
$field_name_count = count($t_field_name_arr);
# Grab the data
$query = "SELECT print_pref\n\t\t\tFROM {$t_user_print_pref_table}\n\t\t\tWHERE user_id=" . db_param();
$result = db_query_bound($query, array($c_user_id));
## OOPS, No entry in the database yet. Lets make one
if (0 == db_num_rows($result)) {
# create a default array, same size than $t_field_name
for ($i = 0; $i < $field_name_count; $i++) {
$t_default_arr[$i] = 1;
}
$t_default = implode('', $t_default_arr);
# all fields are added by default
$query = "INSERT\n\t\t\t\tINTO {$t_user_print_pref_table}\n\t\t\t\t(user_id, print_pref)\n\t\t\t\tVALUES\n\t\t\t\t(" . db_param() . "," . db_param() . ")";
$result = db_query_bound($query, array($c_user_id, $t_default));
# Rerun select query
$query = "SELECT print_pref\n\t\t\t\tFROM {$t_user_print_pref_table}\n\t\t\t\tWHERE user_id=" . db_param();
$result = db_query_bound($query, array($c_user_id));
}
# putting the query result into an array with the same size as $t_fields_arr
$row = db_fetch_array($result);
$t_prefs = $row['print_pref'];
# Account Preferences Form BEGIN
$t_index_count = 0;
?>
<br />
<div>
<form method="post" action="print_all_bug_options_update.php">
<?php
echo form_security_field('print_all_bug_options_update');
?>
<input type="hidden" name="user_id" value="<?php
echo $p_user_id;
?>
" />
<input type="hidden" name="redirect_url" value="<?php
echo string_attribute($p_redirect_url);
?>
" />
<table class="width75" cellspacing="1">
<tr>
<td class="form-title">
<?php
echo lang_get('printing_preferences_title');
?>
</td>
<td class="right">
</td>
</tr>
<?php
# display the checkboxes
for ($i = 0; $i < $field_name_count; $i++) {
echo '<tr>';
?>
<th class="category">
<?php
echo lang_get($t_field_name_arr[$i]);
?>
</th>
<td>
<input type="checkbox" name="<?php
echo 'print_' . $t_field_name_arr[$i];
?>
"
<?php
if (isset($t_prefs[$i]) && $t_prefs[$i] == 1) {
echo 'checked="checked"';
}
?>
/>
</td>
</tr>
<?php
}
?>
//.........这里部分代码省略.........
开发者ID:N0ctrnl,项目名称:mantisbt,代码行数:101,代码来源:print_all_bug_options_inc.php
示例12: plugin_page
</a>
<?php
}
?>
</div>
</td>
</tr>
<form action="<?php
echo plugin_page('config_edit.php');
?>
"
method="post" id="config_form" enctype="multipart/form-data">
<input type="hidden" id="deleteField" name="deleteField" value="">
<input type="hidden" id="changeUnit" name="changeUnit" value="">
<?php
echo form_security_field('plugin_format_config_edit');
if (plugin_is_loaded('agileMantisExpert')) {
?>
<tr <?php
echo helper_alternate_class();
?>
>
<td><?php
echo plugin_lang_get('manage_settings_upload_license');
?>
</td>
<td><input type="file" name="license" size="50" /></td>
</tr>
<?php
}
?>
开发者ID:CarlosPinedaT,项目名称:agileMantis,代码行数:31,代码来源:config.php
示例13: auth_reauthenticate
*/
/**
* MantisBT Core API's
*/
require_once 'core.php';
auth_reauthenticate();
access_ensure_global_level(config_get('manage_user_threshold'));
$t_ldap = LDAP == config_get('login_method');
html_page_top();
print_manage_menu('manage_user_create_page.php');
?>
<br />
<div align="center">
<form method="post" action="manage_user_create.php">
<?php
echo form_security_field('manage_user_create');
?>
<table class="width50" cellspacing="1">
<tr>
<td class="form-title" colspan="2">
<?php
echo lang_get('create_new_account_title');
?>
</td>
</tr>
<tr <?php
echo helper_alternate_class();
?>
>
<td class="category" width="25%">
<?php
开发者ID:Tarendai,项目名称:spring-website,代码行数:31,代码来源:manage_user_create_page.php
示例14: array
global $g_plugin_cache;
$t_plugins_installed = array();
$t_plugins_available = array();
foreach ($t_plugins as $t_basename => $t_plugin) {
if (isset($g_plugin_cache[$t_basename])) {
$t_plugins_installed[$t_basename] = $t_plugin;
} else {
$t_plugins_available[$t_basename] = $t_plugin;
}
}
if (0 < count($t_plugins_installed)) {
?>
<br />
<form action="manage_plugin_update.php" method="post">
<?php
echo form_security_field('manage_plugin_update');
?>
<table class="width100" cellspacing="1">
<!-- Title -->
<tr>
<td class="form-title" colspan="7">
<?php
echo lang_get('plugins_installed');
?>
</td>
</tr>
<!-- Info -->
<tr class="row-category">
开发者ID:nourchene-benslimane,项目名称:mantisV0,代码行数:31,代码来源:manage_plugin_page.php
示例15: form_security_field
<?php
# Only display the edit form if user is authorized to change configuration
if ($t_read_write_access) {
?>
<!-- Config Set Form -->
<?php
if (config_can_delete($t_edit_option)) {
?>
<div id="config-edit-div" class="form-container">
<form id="config_set_form" method="post" action="adm_config_set.php">
<fieldset>
<?php
echo form_security_field('adm_config_set');
?>
<!-- Title -->
<legend><span>
<?php
echo lang_get('set_configuration_option');
?>
</span></legend>
<!-- Username -->
<div class="field-container">
<label for="config-user-id"><span><?php
echo lang_get('username');
?>
</span></label>
开发者ID:sfranks1124,项目名称:mantisbt,代码行数:30,代码来源:adm_config_report.php
示例16: lang_get
</div>
</div>
<?php
if ($t_can_edit) {
?>
<div id="manage-tags-create-div" class="form-container">
<a name="tagcreate" />
<form id="manage-tags-create-form" method="post" action="tag_create.php">
<fieldset class="required">
<legend><span><?php
echo lang_get('tag_create');
?>
</span></legend>
<?php
echo form_security_field('tag_create');
?>
<div class="field-container">
<label for="tag-name" class="required"><span><?php
echo lang_get('tag_name');
?>
</span></label>
<span class="input"><input type="text" id="tag-name" name="name" size="40" maxlength="100" />
<span><?php
echo sprintf(lang_get('tag_separate_by'), config_get('tag_separator'));
?>
</span>
</span>
<span class="label-style"></span>
</div>
<div class="field-container">
开发者ID:keetron,项目名称:mantisbt,代码行数:31,代码来源:manage_tags_page.php
示例17: compress_enable
require_once 'tag_api.php';
compress_enable();
$f_tag_id = gpc_get_int('tag_id');
$t_tag_row = tag_get($f_tag_id);
$t_name = string_display_line($t_tag_row['name']);
$t_description = string_display($t_tag_row['description']);
if (!(access_has_global_level(config_get('tag_edit_threshold')) || auth_get_current_user_id() == $t_tag_row['user_id'] && access_has_global_level(config_get('tag_edit_own_threshold')))) {
access_denied();
}
html_page_top(sprintf(lang_get('tag_update'), $t_name));
?>
<br />
<form method="post" action="tag_update.php">
<?php
echo form_security_field('tag_update');
?>
<table class="width100" cellspacing="1">
<!-- Title -->
<tr>
<td class="form-title" colspan="2">
<?php
echo sprintf(lang_get('tag_update'), $t_name);
?>
<input type="hidden" name="tag_id" value="<?php
echo $f_tag_id;
?>
"/>
</td>
<td class="right" colspan="3">
开发者ID:nourchene-benslimane,项目名称:mantisV0,代码行数:31,代码来源:tag_update_page.php
示例18: profile_get_all_for_user
</form>
</div>
<?php
# Add Profile Form END
?>
<?php
# Edit or Delete Profile Form BEGIN
$t_profiles = profile_get_all_for_user($t_user_id);
if ($t_profiles) {
?>
<br />
<div align="center">
<form method="post" action="account_prof_update.php">
<?php
echo form_security_field('profile_update');
?>
<table class="width75" cellspacing="1">
<tr>
<td class="form-title" colspan="2">
<?php
echo lang_get('edit_or_delete_profiles_title');
?>
</td>
</tr>
<tr class="row-1">
<td class="center" colspan="2">
<input type="radio" name="action" value="edit" checked="checked" /> <?php
echo lang_get('edit_profile');
if (!$g_global_profiles) {
?>
开发者ID:amjadtbssm,项目名称:website,代码行数:31,代码来源:account_prof_menu_page.php
示例19: edit_account_prefs
/**
* Display html form to edit account preferences
*
* @param integer $p_user_id A valid user identifier.
* @param boolean $p_error_if_protected Whether to error if the account is protected.
* @param boolean $p_accounts_menu Display account preferences menu.
* @param string $p_redirect_url Redirect URI.
* @return void
*/
function edit_account_prefs($p_user_id = null, $p_error_if_protected = true, $p_accounts_menu = true, $p_redirect_url = '')
{
if (null === $p_user_id) {
$p_user_id = auth_get_current_user_id();
}
$t_redirect_url = $p_redirect_url;
if (is_blank($t_redirect_url)) {
$t_redirect_url = 'account_prefs_page.php';
}
# protected account check
if (user_is_protected($p_user_id)) {
if ($p_error_if_protected) {
trigger_error(ERROR_PROTECTED_ACCOUNT, ERROR);
} else {
return;
}
}
$t_pref = user_pref_get($p_user_id);
# Account Preferences Form BEGIN
?>
<div id="account-prefs-update-div" class="form-container">
<form id="account-prefs-update-form" method="post" action="account_prefs_update.php">
<fieldset>
<legend><span><?php
echo lang_get('default_account_preferences_title');
?>
</span></legend>
<?php
echo form_security_field('account_prefs_update');
?>
<input type="hidden" name="user_id" value="<?php
echo $p_user_id;
?>
" />
<input type="hidden" name="redirect_url" value="<?php
echo $t_redirect_url;
?>
" />
<?php
if ($p_accounts_menu) {
print_account_menu('account_prefs_page.php');
}
?>
<div class="field-container">
<label for="default-project-id"><span><?php
echo lang_get('default_project');
?>
</span></label>
<span class="select">
<select id="default-project-id" name="default_project">
<?php
# Count number of available projects
$t_projects = current_user_get_accessible_projects();
$t_num_proj = count($t_projects);
if ($t_num_proj == 1) {
$t_num_proj += count(current_user_get_accessible_subprojects($t_projects[0]));
}
# Don't display "All projects" in selection list if there is only 1
print_project_option_list((int) $t_pref->default_project, $t_num_proj != 1);
?>
</select>
</span>
<span class="label-style"></span>
</div>
<div class="field-container">
<label for="refresh-delay"><span><?php
echo lang_get('refresh_delay');
?>
</span></label>
<span class="input"><input id="refresh-delay" type="text" name="refresh_delay" size="4" maxlength="4" value="<?php
echo $t_pref->refresh_delay;
?>
" /> <?php
echo lang_get('minutes');
?>
</span>
<span class="label-style"></span>
</div>
<div class="field-container">
<label for="redirect-delay"><span><?php
echo lang_get('redirect_delay');
?>
</span></label>
<span class="input"><input id="redirect-delay" type="text" name="redirect_delay" size="4" maxlength="3" value="<?php
echo $t_pref->redirect_delay;
?>
" /> <?php
echo lang_get('seconds');
?>
</span>
//.........这里部分代码省略.........
开发者ID:gtn,项目名称:mantisbt,代码行数:101,代码来源:account_prefs_inc.php
示例20: string_attribute
<span class="input"><input type="text" id="proj-category-name" name="name" size="32" maxlength="128" value="<?php echo string_attribute( $t_name ) ?>" /></span>
<span class="label-style"></span>
</div>
<div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>">
<label for="proj-category-assigned-to"><span><?php echo lang_get( 'assigned_to' ) ?></span></label>
<span class="select">
<select id="proj-category-assigned-to" name="assigned_to">
<option value="0"></option>
<?php print_assign_to_option_list( $t_assigned_to, $t_project_id ) ?>
</select>
</span>
<span class="label-style"></span>
</div>
<span class="submit-button"><input type="submit" class="button" value="<?php echo lang_get( 'update_category_button' ) ?>" /></span>
</fieldset>
</form>
</div>
<div class="form-container">
<form method="post" action="manage_proj_cat_delete.php" class="action-button">
<fieldset>
<?php echo form_security_field( 'manage_proj_cat_delete' ) ?>
<input type="hidden" name="id" value="<?php echo string_attribute( $f_category_id ) ?>" />
<input type="hidden" name="project_id" value="<?php echo string_attribute( $f_project_id ) ?>" />
<span class="submit-button"><input type="submit" class="button" value="<?php echo lang_get( 'delete_category_button' ) ?>" /></span>
</fieldset>
</form>
</div><?php
html_page_bottom();
开发者ID:rombert,项目名称:mantisbt,代码行数:30,代码来源:manage_proj_cat_edit_page.php
注:本文中的form_security_field函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论