Vergleich admin/modules/user/users.php - 1.6.3 - 1.6.4

  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: users.php 5380 2011-02-21 12:04:43Z Tomm $

 * $Id: users.php 5483 2011-07-06 00:57:17Z huji $

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 2951Zeile 2951
	if(!isset($admin_session['data']['last_users_view']) || $admin_session['data']['last_users_view'] != str_replace("&", "&", $view['url']))
{
update_admin_session('last_users_url', str_replace("&", "&", $view['url']));

	if(!isset($admin_session['data']['last_users_view']) || $admin_session['data']['last_users_view'] != str_replace("&", "&", $view['url']))
{
update_admin_session('last_users_url', str_replace("&", "&", $view['url']));

 
	}

if(isset($view['conditions']['referrer'])){
$view['url'] .= "&action=referrers&uid=".htmlspecialchars($view['conditions']['referrer']);

	}

// Do we not have any views?

	}

// Do we not have any views?

Zeile 3100Zeile 3104
			{
foreach($input as $value => $text)
{

			{
foreach($input as $value => $text)
{

					if($value == "N/A")






					if($value == $column)
{
$value = $text;
}

if($value == $lang->na)

					{
continue;
}

					{
continue;
}

Zeile 3110Zeile 3119
			}
else if(!empty($input))
{

			}
else if(!empty($input))
{

				if($input == "N/A")

				if($input == $lang->na)

				{
continue;
}

				{
continue;
}

Zeile 3153Zeile 3162
			}
}
$search_sql .= " AND (u.usergroup IN (".implode(",", $view['conditions']['usergroup']).") {$additional_sql})";

			}
}
$search_sql .= " AND (u.usergroup IN (".implode(",", $view['conditions']['usergroup']).") {$additional_sql})";

	}

	}


// COPPA users only?
if($view['conditions']['coppa'])


// COPPA users only?
if($view['conditions']['coppa'])

Zeile 3451Zeile 3460
	if($view['view_type'] != "card")
{
$checkbox = '';

	if($view['view_type'] != "card")
{
$checkbox = '';

	}

	}

	else
{
$checkbox = "<input type=\"checkbox\" name=\"allbox\" onclick=\"inlineModeration.checkAll(this)\" /> ";

	else
{
$checkbox = "<input type=\"checkbox\" name=\"allbox\" onclick=\"inlineModeration.checkAll(this)\" /> ";

Zeile 3635Zeile 3644
		list($type, $options) = explode("\n", $profile_field['type'], 2);
$type = trim($type);
$field_name = "fid{$profile_field['fid']}";

		list($type, $options) = explode("\n", $profile_field['type'], 2);
$type = trim($type);
$field_name = "fid{$profile_field['fid']}";

 


		switch($type)
{
case "multiselect":

		switch($type)
{
case "multiselect":

				if(!is_array($values[$field_name]))
{
$user_options = explode("\n", $values[$field_name]);
}
else
{
$user_options = $values[$field_name];
}

foreach($user_options as $val)
{
$selected_options[$val] = $val;
}

				if(!is_array($values[$field_name]))
{
$user_options = explode("\n", $values[$field_name]);
}
else
{
$user_options = $values[$field_name];
}

foreach($user_options as $val)
{
$selected_options[$val] = $val;
}


$select_options = explode("\n", $options);
$options = array();


$select_options = explode("\n", $options);
$options = array();

Zeile 3659Zeile 3669
					$select_options[''] = $lang->na;
}


					$select_options[''] = $lang->na;
}


				foreach($select_options as $val)
{
$val = trim($val);
$options[$val] = $val;
}

				foreach($select_options as $val)
{
$val = trim($val);
$options[$val] = $val;
}

				if(!$profile_field['length'])
{
$profile_field['length'] = 3;

				if(!$profile_field['length'])
{
$profile_field['length'] = 3;

Zeile 3671Zeile 3681
				$code = $form->generate_select_box("profile_fields[{$field_name}][]", $options, $selected_options, array('id' => "profile_field_{$field_name}", 'multiple' => true, 'size' => $profile_field['length']));
break;
case "select":

				$code = $form->generate_select_box("profile_fields[{$field_name}][]", $options, $selected_options, array('id' => "profile_field_{$field_name}", 'multiple' => true, 'size' => $profile_field['length']));
break;
case "select":

				$select_options = array();
if($search == true)
{
$select_options[''] = $lang->na;
}

				$select_options = array();
if($search == true)
{
$select_options[''] = $lang->na;
}

				$select_options += explode("\n", $options);
$options = array();
foreach($select_options as $val)

				$select_options += explode("\n", $options);
$options = array();
foreach($select_options as $val)

				{

				{

					$val = trim($val);
$options[$val] = $val;

					$val = trim($val);
$options[$val] = $val;

				}

				}

				if(!$profile_field['length'])

				if(!$profile_field['length'])

				{

				{

					$profile_field['length'] = 1;
}

					$profile_field['length'] = 1;
}

				$code = $form->generate_select_box("profile_fields[{$field_name}]", $options, $values[$field_name], array('id' => "profile_field_{$field_name}", 'size' => $profile_field['length']));








				if($search == true)
{
$code = $form->generate_select_box("profile_fields[{$field_name}][{$field_name}]", $options, $values[$field_name], array('id' => "profile_field_{$field_name}", 'size' => $profile_field['length']));
}
else
{
$code = $form->generate_select_box("profile_fields[{$field_name}]", $options, $values[$field_name], array('id' => "profile_field_{$field_name}", 'size' => $profile_field['length']));
}

				break;
case "radio":
$radio_options = array();

				break;
case "radio":
$radio_options = array();

Zeile 3700Zeile 3717
				{
$val = trim($val);
$code .= $form->generate_radio_button("profile_fields[{$field_name}]", $val, $val, array('id' => "profile_field_{$field_name}", 'checked' => ($val == $values[$field_name] ? true : false)))."<br />";

				{
$val = trim($val);
$code .= $form->generate_radio_button("profile_fields[{$field_name}]", $val, $val, array('id' => "profile_field_{$field_name}", 'checked' => ($val == $values[$field_name] ? true : false)))."<br />";

				}
break;

				}
break;

			case "checkbox":
if(!is_array($values[$field_name]))
{

			case "checkbox":
if(!is_array($values[$field_name]))
{

Zeile 3726Zeile 3743
					$val = trim($val);
$code .= $form->generate_check_box("profile_fields[{$field_name}][]", $val, $val, array('id' => "profile_field_{$field_name}", 'checked' => ($val == $selected_options[$val] ? true : false)))."<br />";
}

					$val = trim($val);
$code .= $form->generate_check_box("profile_fields[{$field_name}][]", $val, $val, array('id' => "profile_field_{$field_name}", 'checked' => ($val == $selected_options[$val] ? true : false)))."<br />";
}

				break;

				break;

			case "textarea":
$code = $form->generate_text_area("profile_fields[{$field_name}]", $values[$field_name], array('id' => "profile_field_{$field_name}", 'rows' => 6, 'cols' => 50));

			case "textarea":
$code = $form->generate_text_area("profile_fields[{$field_name}]", $values[$field_name], array('id' => "profile_field_{$field_name}", 'rows' => 6, 'cols' => 50));

				break;

				break;

			default:
$code = $form->generate_text_box("profile_fields[{$field_name}]", $values[$field_name], array('id' => "profile_field_{$field_name}", 'maxlength' => $profile_field['maxlength'], 'length' => $profile_field['length']));
break;

			default:
$code = $form->generate_text_box("profile_fields[{$field_name}]", $values[$field_name], array('id' => "profile_field_{$field_name}", 'maxlength' => $profile_field['maxlength'], 'length' => $profile_field['length']));
break;

Zeile 3738Zeile 3755
		$code = $user_options = $selected_options = $radio_options = $val = $options = '';
}
}

		$code = $user_options = $selected_options = $radio_options = $val = $options = '';
}
}





function user_search_conditions($input=array(), &$form)
{
global $mybb, $db, $lang;

if(!$input)

function user_search_conditions($input=array(), &$form)
{
global $mybb, $db, $lang;

if(!$input)

	{

	{

		$input = $mybb->input;
}


		$input = $mybb->input;
}


	if(!is_array($input['conditions']))






	if(!is_array($input['conditions']))
{
$input['conditions'] = unserialize($input['conditions']);
}

if(!is_array($input['profile_fields']))

	{

	{

		$input['conditions'] = unserialize($input['conditions']);

		$input['profile_fields'] = unserialize($input['profile_fields']);

	}

if(!is_array($input['fields']))

	}

if(!is_array($input['fields']))

Zeile 3807Zeile 3829
		}
}


		}
}


	output_custom_profile_fields($profile_fields['required'], $mybb->input['profile_fields'], $form_container, $form, true);
output_custom_profile_fields($profile_fields['optional'], $mybb->input['profile_fields'], $form_container, $form, true);

	output_custom_profile_fields($profile_fields['required'], $input['profile_fields'], $form_container, $form, true);
output_custom_profile_fields($profile_fields['optional'], $input['profile_fields'], $form_container, $form, true);

	
$form_container->end();


	
$form_container->end();