Vergleich admin/modules/user/users.php - 1.4.1 - 1.4.2

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * $Id: users.php 4111 2008-08-13 06:14:12Z Tikitiki $

 * $Id: users.php 4180 2008-09-07 16:44:43Z Tikitiki $

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 569Zeile 569
			"displaygroup" => $mybb->input['displaygroup'],
"postnum" => $mybb->input['postnum'],
"usertitle" => $mybb->input['usertitle'],

			"displaygroup" => $mybb->input['displaygroup'],
"postnum" => $mybb->input['postnum'],
"usertitle" => $mybb->input['usertitle'],

			"timezone" => $mybb->input['timezoneoffset'],

			"timezone" => $mybb->input['timezone'],

			"language" => $mybb->input['language'],
"profile_fields" => $mybb->input['profile_fields'],
"profile_fields_editable" => true,

			"language" => $mybb->input['language'],
"profile_fields" => $mybb->input['profile_fields'],
"profile_fields_editable" => true,

Zeile 1109Zeile 1109
		"<label for=\"threadmode\">{$lang->default_thread_view_mode}:</label><br />".$form->generate_select_box("threadmode", array("" => $lang->use_default, "linear" => $lang->linear_mode, "threaded" => $lang->threaded_mode), $mybb->input['threadmode'], array('id' => 'threadmode'))
);
$form_container->output_row($lang->thread_view_options, "", "<div class=\"user_settings_bit\">".implode("</div><div class=\"user_settings_bit\">", $thread_options)."</div>");

		"<label for=\"threadmode\">{$lang->default_thread_view_mode}:</label><br />".$form->generate_select_box("threadmode", array("" => $lang->use_default, "linear" => $lang->linear_mode, "threaded" => $lang->threaded_mode), $mybb->input['threadmode'], array('id' => 'threadmode'))
);
$form_container->output_row($lang->thread_view_options, "", "<div class=\"user_settings_bit\">".implode("</div><div class=\"user_settings_bit\">", $thread_options)."</div>");

 

$languages = array_merge(array('0' => $lang->use_default), $lang->get_languages());


$other_options = array(
$form->generate_check_box("showredirect", 1, $lang->show_redirect, array("checked" => $mybb->input['showredirect'])),
$form->generate_check_box("showcodebuttons", "1", $lang->show_code_buttons, array("checked" => $mybb->input['showcodebuttons'])),
"<label for=\"style\">{$lang->theme}:</label><br />".build_theme_select("style", $mybb->input['style'], 0, "", 1),


$other_options = array(
$form->generate_check_box("showredirect", 1, $lang->show_redirect, array("checked" => $mybb->input['showredirect'])),
$form->generate_check_box("showcodebuttons", "1", $lang->show_code_buttons, array("checked" => $mybb->input['showcodebuttons'])),
"<label for=\"style\">{$lang->theme}:</label><br />".build_theme_select("style", $mybb->input['style'], 0, "", 1),

		"<label for=\"language\">{$lang->board_language}:</label><br />".$form->generate_select_box("language", $lang->get_languages(), $mybb->input['language'], array('id' => 'language'))

		"<label for=\"language\">{$lang->board_language}:</label><br />".$form->generate_select_box("language", $languages, $mybb->input['language'], array('id' => 'language'))

	);
$form_container->output_row($lang->other_options, "", "<div class=\"user_settings_bit\">".implode("</div><div class=\"user_settings_bit\">", $other_options)."</div>");

	);
$form_container->output_row($lang->other_options, "", "<div class=\"user_settings_bit\">".implode("</div><div class=\"user_settings_bit\">", $other_options)."</div>");


$form_container->end();


$form_container->end();

	echo "</div>\n";

//
// SIGNATURE EDITOR
//
$signature_editor = $form->generate_text_area("signature", $mybb->input['signature'], array('id' => 'signature', 'rows' => 15, 'cols' => '70', 'style' => 'width: 95%'));

	echo "</div>\n";

//
// SIGNATURE EDITOR
//
$signature_editor = $form->generate_text_area("signature", $mybb->input['signature'], array('id' => 'signature', 'rows' => 15, 'cols' => '70', 'style' => 'width: 95%'));

	$sig_smilies = "off";

	$sig_smilies = $lang->off;

	if($mybb->settings['sigsmilies'] == 1)
{

	if($mybb->settings['sigsmilies'] == 1)
{

		$sig_smilies = "on";

		$sig_smilies = $lang->on;

	}

	}

	$sig_mycode = "off";

	$sig_mycode = $lang->off;

	if($mybb->settings['sigmycode'] == 1)
{

	if($mybb->settings['sigmycode'] == 1)
{

		$sig_mycode = "on";

		$sig_mycode = $lang->on;

		$signature_editor .= build_mycode_inserter("signature");
}

		$signature_editor .= build_mycode_inserter("signature");
}

	$sig_html = "off";

	$sig_html = $lang->off;

	if($mybb->settings['sightml'] == 1)
{

	if($mybb->settings['sightml'] == 1)
{

		$sig_html = "on";

		$sig_html = $lang->on;

	}

	}

	$sig_imcode = "on";

	$sig_imgcode = $lang->off;

	if($mybb->settings['sigimgcode'] == 1)
{

	if($mybb->settings['sigimgcode'] == 1)
{

		$sig_imgcode = "off";

		$sig_imgcode = $lang->on;

	}
echo "<div id=\"tab_signature\">\n";
$form_container = new FormContainer("{$lang->signature}: {$user['username']}");

	}
echo "<div id=\"tab_signature\">\n";
$form_container = new FormContainer("{$lang->signature}: {$user['username']}");

Zeile 1160Zeile 1162

$form_container->end();
echo "</div>\n";


$form_container->end();
echo "</div>\n";


//


//

	// AVATAR MANAGER
//
echo "<div id=\"tab_avatar\">\n";

	// AVATAR MANAGER
//
echo "<div id=\"tab_avatar\">\n";

Zeile 1175Zeile 1177
		$current_avatar_msg = "<br /><strong>{$lang->user_current_using_uploaded_avatar}</strong>";
}
else if($user['avatartype'] == "gallery" || stristr($user['avatar'], $mybb->settings['avatardir']))

		$current_avatar_msg = "<br /><strong>{$lang->user_current_using_uploaded_avatar}</strong>";
}
else if($user['avatartype'] == "gallery" || stristr($user['avatar'], $mybb->settings['avatardir']))

	{

	{

		$current_avatar_msg = "<br /><strong>{$lang->user_current_using_gallery_avatar}</strong>";
}
elseif($user['avatartype'] == "remote" || my_strpos(my_strtolower($user['avatar']), "http://") !== false)

		$current_avatar_msg = "<br /><strong>{$lang->user_current_using_gallery_avatar}</strong>";
}
elseif($user['avatartype'] == "remote" || my_strpos(my_strtolower($user['avatar']), "http://") !== false)

Zeile 1187Zeile 1189
	if($errors)
{
$avatar_url = $mybb->input['avatar_url'];

	if($errors)
{
$avatar_url = $mybb->input['avatar_url'];

	}


	}


	if($mybb->settings['maxavatardims'] != "")
{
list($max_width, $max_height) = explode("x", $mybb->settings['maxavatardims']);

	if($mybb->settings['maxavatardims'] != "")
{
list($max_width, $max_height) = explode("x", $mybb->settings['maxavatardims']);

Zeile 1202Zeile 1204
	}

if($user['avatar'])

	}

if($user['avatar'])

	{

	{

		$remove_avatar = "<br /><br />".$form->generate_check_box("remove_avatar", 1, "<strong>{$lang->remove_avatar}</strong>");
}


		$remove_avatar = "<br /><br />".$form->generate_check_box("remove_avatar", 1, "<strong>{$lang->remove_avatar}</strong>");
}


Zeile 1230Zeile 1232
	echo "<div class=\"title\">.. {$lang->or_select_avatar_gallery}</div>";
echo "<iframe src=\"index.php?module=user/users&amp;action=avatar_gallery&amp;uid={$user['uid']}\" width=\"100%\" height=\"350\" frameborder=\"0\"></iframe>";
echo "</div>";

	echo "<div class=\"title\">.. {$lang->or_select_avatar_gallery}</div>";
echo "<iframe src=\"index.php?module=user/users&amp;action=avatar_gallery&amp;uid={$user['uid']}\" width=\"100%\" height=\"350\" frameborder=\"0\"></iframe>";
echo "</div>";

	echo "</div>";


	echo "</div>";


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

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





	$form->end();
$page->output_footer();

}

	$form->end();
$page->output_footer();

}





if($mybb->input['action'] == "delete")
{
$plugins->run_hooks("admin_user_users_delete");

$query = $db->simple_select("users", "*", "uid='".intval($mybb->input['uid'])."'");
$user = $db->fetch_array($query);

if($mybb->input['action'] == "delete")
{
$plugins->run_hooks("admin_user_users_delete");

$query = $db->simple_select("users", "*", "uid='".intval($mybb->input['uid'])."'");
$user = $db->fetch_array($query);





	// Does the user not exist?
if(!$user['uid'])
{

	// Does the user not exist?
if(!$user['uid'])
{

Zeile 1289Zeile 1291
		// Log admin action
log_admin_action($user['uid'], $user['username']);


		// Log admin action
log_admin_action($user['uid'], $user['username']);






		flash_message($lang->success_user_deleted, 'success');
admin_redirect("index.php?module=user/users");
}
else
{
$page->output_confirm_action("index.php?module=user/users&action=delete&uid={$user['uid']}", $lang->user_deletion_confirmation);

		flash_message($lang->success_user_deleted, 'success');
admin_redirect("index.php?module=user/users");
}
else
{
$page->output_confirm_action("index.php?module=user/users&action=delete&uid={$user['uid']}", $lang->user_deletion_confirmation);

	}

	}

}

if($mybb->input['action'] == "referrers")

}

if($mybb->input['action'] == "referrers")

Zeile 1310Zeile 1312
		'title' => $lang->show_referrers,
'link' => "index.php?module=user/users&amp;action=referrers&amp;uid={$mybb->input['uid']}",
'description' => $lang->show_referrers_desc

		'title' => $lang->show_referrers,
'link' => "index.php?module=user/users&amp;action=referrers&amp;uid={$mybb->input['uid']}",
'description' => $lang->show_referrers_desc

	);

	);

	
$page->output_nav_tabs($sub_tabs, 'referrers');


	
$page->output_nav_tabs($sub_tabs, 'referrers');


Zeile 1344Zeile 1346
		'link' => "index.php?module=user/users&amp;action=ipaddresses&amp;uid={$mybb->input['uid']}",
'description' => $lang->show_ip_addresses_desc
);

		'link' => "index.php?module=user/users&amp;action=ipaddresses&amp;uid={$mybb->input['uid']}",
'description' => $lang->show_ip_addresses_desc
);

	

	

	$page->output_nav_tabs($sub_tabs, 'ipaddresses');

$query = $db->simple_select("users", "uid, regip, username, lastip", "uid='{$mybb->input['uid']}'", array('limit' => 1));

	$page->output_nav_tabs($sub_tabs, 'ipaddresses');

$query = $db->simple_select("users", "uid, regip, username, lastip", "uid='{$mybb->input['uid']}'", array('limit' => 1));

Zeile 1569Zeile 1571
				unset($admin_view);
}
}

				unset($admin_view);
}
}



		

		if($mybb->input['search_id'] && $admin_session['data']['user_views'][$mybb->input['search_id']])
{
$admin_view = $admin_session['data']['user_views'][$mybb->input['search_id']];

		if($mybb->input['search_id'] && $admin_session['data']['user_views'][$mybb->input['search_id']])
{
$admin_view = $admin_session['data']['user_views'][$mybb->input['search_id']];

Zeile 1681Zeile 1683
	
$page->output_nav_tabs($sub_tabs, 'browse_users');


	
$page->output_nav_tabs($sub_tabs, 'browse_users');


	if($mybb->input['search_id'] && $admin_session['user_views'][$mybb->input['search_id']])

	if($mybb->input['search_id'] && $admin_session['data']['user_views'][$mybb->input['search_id']])

	{
$admin_view = $admin_session['data']['user_views'][$mybb->input['search_id']];
unset($admin_view['extra_sql']);

	{
$admin_view = $admin_session['data']['user_views'][$mybb->input['search_id']];
unset($admin_view['extra_sql']);