Vergleich admin/profilefields.php - 1.2.0 - 1.2.8

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 3Zeile 3
 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

 * Website: http://www.mybboard.com
* License: http://www.mybboard.com/eula.html

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/eula.html

 *

 *

 * $Id: profilefields.php 2148 2006-08-27 04:10:33Z Tikitiki $

 * $Id: profilefields.php 2932 2007-03-10 05:48:55Z chris $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 39Zeile 39
if($mybb->input['action'] == "do_add")
{
$type = $mybb->input['type'];

if($mybb->input['action'] == "do_add")
{
$type = $mybb->input['type'];

	$options = preg_replace("#(\r\n|\r|\n)#s", "\n", $mybb->input['options']);

	$options = preg_replace("#(\r\n|\r|\n)#s", "\n", trim($mybb->input['options']));

	if($type != "text" && $type != "textarea")
{
$thing = "$type\n$options";

	if($type != "text" && $type != "textarea")
{
$thing = "$type\n$options";

Zeile 96Zeile 96
if($mybb->input['action'] == "do_edit")
{
$type = $mybb->input['type'];

if($mybb->input['action'] == "do_edit")
{
$type = $mybb->input['type'];

	$options = preg_replace("#(\r\n|\r|\n)#s", "\n", $mybb->input['options']);

	$options = preg_replace("#(\r\n|\r|\n)#s", "\n", trim($mybb->input['options']));

	if($type != "text" && $type != "textarea")
{
$thing = "$type\n$options";

	if($type != "text" && $type != "textarea")
{
$thing = "$type\n$options";

Zeile 172Zeile 172
	$profilefield['type'] = stripslashes($profilefield['type']);

$type = explode("\n", $profilefield['type'], "2");

	$profilefield['type'] = stripslashes($profilefield['type']);

$type = explode("\n", $profilefield['type'], "2");

	$typesel[$type[0]] = "selected";

	$typesel[$type[0]] = " selected";

	$options = $type[1];

$plugins->run_hooks("admin_profilefields_edit");

	$options = $type[1];

$plugins->run_hooks("admin_profilefields_edit");

Zeile 188Zeile 188
	makeinputcode($lang->field_max_length, "maxlength", $profilefield['maxlength']);
makeinputcode($lang->field_length, "length", $profilefield['length']);
makeinputcode($lang->field_disporder, "disporder", $profilefield['disporder'], 4);

	makeinputcode($lang->field_max_length, "maxlength", $profilefield['maxlength']);
makeinputcode($lang->field_length, "length", $profilefield['length']);
makeinputcode($lang->field_disporder, "disporder", $profilefield['disporder'], 4);

	makelabelcode($lang->field_type, "<select name=\"type\"><option value=\"text\" $typesel[text]>$lang->field_type_textbox</option><option value=\"textarea\" $typesel[textarea]>$lang->field_type_textarea</option><option value=\"select\" $typesel[select]>$lang->field_type_select</option><option value=\"multiselect\" $typesel[multiselect]>$lang->field_type_multiselect</option><option value=\"radio\" $typesel[radio]>$lang->field_type_radio</option><option value=\"checkbox\" $typesel[checkbox]>$lang->field_type_checkbox</option></select>");

	makelabelcode($lang->field_type, "<select name=\"type\"><option value=\"text\"{$typesel['text']}>$lang->field_type_textbox</option><option value=\"textarea\"{$typesel['textarea']}>$lang->field_type_textarea</option><option value=\"select\"{$typesel['select']}>$lang->field_type_select</option><option value=\"multiselect\"{$typesel['multiselect']}>$lang->field_type_multiselect</option><option value=\"radio\"{$typesel['radio']}>$lang->field_type_radio</option><option value=\"checkbox\"{$typesel['checkbox']}>$lang->field_type_checkbox</option></select>");

	maketextareacode($lang->field_options, "options", $options, 6, 50);
makeyesnocode($lang->field_required, "required", $profilefield['required']);
makeyesnocode($lang->field_editable, "editable", $profilefield['editable']);

	maketextareacode($lang->field_options, "options", $options, 6, 50);
makeyesnocode($lang->field_required, "required", $profilefield['required']);
makeyesnocode($lang->field_editable, "editable", $profilefield['editable']);

Zeile 236Zeile 236
		echo "<td class=\"$bgcolor\" align=\"right\">";
startform("profilefields.php");
makehiddencode("fid", $profilefield['fid']);

		echo "<td class=\"$bgcolor\" align=\"right\">";
startform("profilefields.php");
makehiddencode("fid", $profilefield['fid']);

    echo "<select name=\"action\"><option value=\"edit\">$lang->edit_field</option><option value=\"delete\">$lang->delete_field</option></select>&nbsp;<input type=\"submit\" value=\"$lang->go\" />";
endform();
echo "</td>\n";

    	echo "<select name=\"action\"><option value=\"edit\">$lang->edit_field</option><option value=\"delete\">$lang->delete_field</option></select>&nbsp;<input type=\"submit\" value=\"$lang->go\" />";
endform();
echo "</td>\n";

		echo "</tr>\n";

}

		echo "</tr>\n";

}