Vergleich admin/modules/config/profile_fields.php - 1.6.0 - 1.6.17

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * $Id: profile_fields.php 5016 2010-06-12 00:24:02Z RyanGordon $

 * $Id$

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 63Zeile 63
				"required" => $db->escape_string($mybb->input['required']),
"editable" => $db->escape_string($mybb->input['editable']),
"hidden" => $db->escape_string($mybb->input['hidden']),

				"required" => $db->escape_string($mybb->input['required']),
"editable" => $db->escape_string($mybb->input['editable']),
"hidden" => $db->escape_string($mybb->input['hidden']),

 
				"postnum" => intval($mybb->input['postnum'])

			);

$fid = $db->insert_query("profilefields", $new_profile_field);

			);

$fid = $db->insert_query("profilefields", $new_profile_field);

Zeile 72Zeile 73
			$plugins->run_hooks("admin_config_profile_fields_add_commit");

// Log admin action

			$plugins->run_hooks("admin_config_profile_fields_add_commit");

// Log admin action

			log_admin_action($fid, $mybb->input['name']);

			log_admin_action($fid, htmlspecialchars_uni($mybb->input['name']));

					
flash_message($lang->success_profile_field_added, 'success');
admin_redirect("index.php?module=config-profile_fields");

					
flash_message($lang->success_profile_field_added, 'success');
admin_redirect("index.php?module=config-profile_fields");

Zeile 127Zeile 128
	$form_container->output_row($lang->required." <em>*</em>", $lang->required_desc, $form->generate_yes_no_radio('required', $mybb->input['required']));
$form_container->output_row($lang->editable_by_user." <em>*</em>", $lang->editable_by_user_desc, $form->generate_yes_no_radio('editable', $mybb->input['editable']));
$form_container->output_row($lang->hide_on_profile." <em>*</em>", $lang->hide_on_profile_desc, $form->generate_yes_no_radio('hidden', $mybb->input['hidden']));

	$form_container->output_row($lang->required." <em>*</em>", $lang->required_desc, $form->generate_yes_no_radio('required', $mybb->input['required']));
$form_container->output_row($lang->editable_by_user." <em>*</em>", $lang->editable_by_user_desc, $form->generate_yes_no_radio('editable', $mybb->input['editable']));
$form_container->output_row($lang->hide_on_profile." <em>*</em>", $lang->hide_on_profile_desc, $form->generate_yes_no_radio('hidden', $mybb->input['hidden']));

 
	$form_container->output_row($lang->min_posts_enabled, $lang->min_posts_enabled_desc, $form->generate_text_box('postnum', $mybb->input['postnum'], array('id' => 'postnum')), 'postnum');

	$form_container->end();

$buttons[] = $form->generate_submit_button($lang->save_profile_field);

	$form_container->end();

$buttons[] = $form->generate_submit_button($lang->save_profile_field);

Zeile 189Zeile 191
		
if(!$errors)
{

		
if(!$errors)
{

			$profile_field = array(

			$updated_profile_field = array(

				"name" => $db->escape_string($mybb->input['name']),
"description" => $db->escape_string($mybb->input['description']),
"disporder" => intval($mybb->input['disporder']),

				"name" => $db->escape_string($mybb->input['name']),
"description" => $db->escape_string($mybb->input['description']),
"disporder" => intval($mybb->input['disporder']),

Zeile 199Zeile 201
				"required" => $db->escape_string($mybb->input['required']),
"editable" => $db->escape_string($mybb->input['editable']),
"hidden" => $db->escape_string($mybb->input['hidden']),

				"required" => $db->escape_string($mybb->input['required']),
"editable" => $db->escape_string($mybb->input['editable']),
"hidden" => $db->escape_string($mybb->input['hidden']),

 
				"postnum" => intval($mybb->input['postnum'])

			);


			);


			$db->update_query("profilefields", $profile_field, "fid = '".intval($mybb->input['fid'])."'");

			$db->update_query("profilefields", $updated_profile_field, "fid = '".intval($mybb->input['fid'])."'");

			
$plugins->run_hooks("admin_config_profile_fields_edit_commit");

// Log admin action

			
$plugins->run_hooks("admin_config_profile_fields_edit_commit");

// Log admin action

			log_admin_action($profile_field['fid'], $mybb->input['name']);

			log_admin_action($profile_field['fid'], htmlspecialchars_uni($mybb->input['name']));


flash_message($lang->success_profile_field_saved, 'success');
admin_redirect("index.php?module=config-profile_fields");


flash_message($lang->success_profile_field_saved, 'success');
admin_redirect("index.php?module=config-profile_fields");

Zeile 260Zeile 263
	$form_container->output_row($lang->required." <em>*</em>", $lang->required_desc, $form->generate_yes_no_radio('required', $mybb->input['required']));
$form_container->output_row($lang->editable_by_user." <em>*</em>", $lang->editable_by_user_desc, $form->generate_yes_no_radio('editable', $mybb->input['editable']));
$form_container->output_row($lang->hide_on_profile." <em>*</em>", $lang->hide_on_profile_desc, $form->generate_yes_no_radio('hidden', $mybb->input['hidden']));

	$form_container->output_row($lang->required." <em>*</em>", $lang->required_desc, $form->generate_yes_no_radio('required', $mybb->input['required']));
$form_container->output_row($lang->editable_by_user." <em>*</em>", $lang->editable_by_user_desc, $form->generate_yes_no_radio('editable', $mybb->input['editable']));
$form_container->output_row($lang->hide_on_profile." <em>*</em>", $lang->hide_on_profile_desc, $form->generate_yes_no_radio('hidden', $mybb->input['hidden']));

 
	$form_container->output_row($lang->min_posts_enabled, $lang->min_posts_enabled_desc, $form->generate_text_box('postnum', $mybb->input['postnum'], array('id' => 'postnum')), 'postnum');

	$form_container->end();

$buttons[] = $form->generate_submit_button($lang->save_profile_field);

	$form_container->end();

$buttons[] = $form->generate_submit_button($lang->save_profile_field);

Zeile 270Zeile 274
	echo '<script type="text/javascript" src="./jscripts/peeker.js"></script>
<script type="text/javascript">
Event.observe(window, "load", function() {

	echo '<script type="text/javascript" src="./jscripts/peeker.js"></script>
<script type="text/javascript">
Event.observe(window, "load", function() {

				var maxlength_peeker = new Peeker("fieldtype", "row_maxlength", /text|textarea/);
var fieldlength_peeker = new Peeker("fieldtype", "row_fieldlength", /select|multiselect/);
var options_peeker = new Peeker("fieldtype", "row_options", /select|radio|checkbox/);

				var maxlength_peeker = new Peeker($("fieldtype"), $("row_maxlength"), /text|textarea/);
var fieldlength_peeker = new Peeker($("fieldtype"), $("row_fieldlength"), /select|multiselect/);
var options_peeker = new Peeker($("fieldtype"), $("row_options"), /select|radio|checkbox/);

				// Add a star to the extra row since the "extra" is required if the box is shown
add_star("row_maxlength");
add_star("row_fieldlength");

				// Add a star to the extra row since the "extra" is required if the box is shown
add_star("row_maxlength");
add_star("row_fieldlength");

Zeile 312Zeile 316
		$plugins->run_hooks("admin_config_profile_fields_delete_commit");

// Log admin action

		$plugins->run_hooks("admin_config_profile_fields_delete_commit");

// Log admin action

		log_admin_action($profile_field['fid'], $profile_field['name']);

		log_admin_action($profile_field['fid'], htmlspecialchars_uni($profile_field['name']));


flash_message($lang->success_profile_field_deleted, 'success');
admin_redirect("index.php?module=config-profile_fields");


flash_message($lang->success_profile_field_deleted, 'success');
admin_redirect("index.php?module=config-profile_fields");

Zeile 380Zeile 384
		{
$hidden = $lang->no;
}

		{
$hidden = $lang->no;
}

		$table->construct_cell("<strong><a href=\"index.php?module=config-profile_fields&amp;action=edit&amp;fid={$field['fid']}\">{$field['name']}</a></strong><br /><small>{$field['description']}</small>", array('width' => '45%'));



$table->construct_cell("<strong><a href=\"index.php?module=config-profile_fields&amp;action=edit&amp;fid={$field['fid']}\">".htmlspecialchars_uni($field['name'])."</a></strong><br /><small>".htmlspecialchars_uni($field['description'])."</small>", array('width' => '45%'));

		$table->construct_cell($field['fid'], array("class" => "align_center", 'width' => '5%'));
$table->construct_cell($required, array("class" => "align_center", 'width' => '10%'));
$table->construct_cell($editable, array("class" => "align_center", 'width' => '10%'));

		$table->construct_cell($field['fid'], array("class" => "align_center", 'width' => '5%'));
$table->construct_cell($required, array("class" => "align_center", 'width' => '10%'));
$table->construct_cell($editable, array("class" => "align_center", 'width' => '10%'));