Vergleich usercp.php - 1.2.10 - 1.2.12

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

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

 * $Id: usercp.php 3478 2007-11-15 04:11:36Z Tikitiki $

 * $Id: usercp.php 3598 2008-01-20 20:42:43Z Tikitiki $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 157Zeile 157

if($mybb->input['action'] == "do_profile" && $mybb->request_method == "post")
{


if($mybb->input['action'] == "do_profile" && $mybb->request_method == "post")
{

 
	// Verify incoming POST request
verify_post_check($mybb->input['my_post_key']);


	$plugins->run_hooks("usercp_do_profile_start");

if($mybb->input['away'] == "yes" && $mybb->settings['allowaway'] != "no")

	$plugins->run_hooks("usercp_do_profile_start");

if($mybb->input['away'] == "yes" && $mybb->settings['allowaway'] != "no")

Zeile 167Zeile 170
			if(!$mybb->input['awaymonth'])
{
$mybb->input['awaymonth'] = my_date('n', $awaydate);

			if(!$mybb->input['awaymonth'])
{
$mybb->input['awaymonth'] = my_date('n', $awaydate);

			}

			}

			
if(!$mybb->input['awayyear'])
{

			
if(!$mybb->input['awayyear'])
{

Zeile 175Zeile 178
			}

if($mybb->input['awayyear'] >= 2038)

			}

if($mybb->input['awayyear'] >= 2038)

			{

			{

				error($lang->error_usercp_return_date_2038);
}


				error($lang->error_usercp_return_date_2038);
}


Zeile 186Zeile 189
				error($lang->error_usercp_return_date_past);
}
$returndate = intval($mybb->input['awayday'])."-".intval($mybb->input['awaymonth'])."-".intval($mybb->input['awayyear']);

				error($lang->error_usercp_return_date_past);
}
$returndate = intval($mybb->input['awayday'])."-".intval($mybb->input['awaymonth'])."-".intval($mybb->input['awayyear']);

		}
else
{

		}
else
{

			$returndate = "";
}
$away = array(

			$returndate = "";
}
$away = array(

Zeile 318Zeile 321
		if($errors)
{
if($user['away'] == "yes")

		if($errors)
{
if($user['away'] == "yes")

			{

			{

				$awaycheck['yes'] = "checked";
}
else

				$awaycheck['yes'] = "checked";
}
else

Zeile 416Zeile 419
						$sel = "selected=\"selected\"";
}
$select .= "<option value=\"$val\" $sel>$val</option>\n";

						$sel = "selected=\"selected\"";
}
$select .= "<option value=\"$val\" $sel>$val</option>\n";

				}
if(!$profilefield['length'])
{

				}
if(!$profilefield['length'])
{

					$profilefield['length'] = 3;
}
$code = "<select name=\"profile_fields[$field][]\" size=\"$profilefield[length]\" multiple=\"multiple\">$select</select>";

					$profilefield['length'] = 3;
}
$code = "<select name=\"profile_fields[$field][]\" size=\"$profilefield[length]\" multiple=\"multiple\">$select</select>";

			}
}

			}
}

		elseif($type == "select")

		elseif($type == "select")

		{
$expoptions = explode("\n", $options);
if(is_array($expoptions))

		{
$expoptions = explode("\n", $options);
if(is_array($expoptions))

			{
foreach($expoptions as $key => $val)
{

			{
foreach($expoptions as $key => $val)
{

Zeile 439Zeile 442
						$sel = "selected=\"selected\"";
}
$select .= "<option value=\"$val\" $sel>$val</option>";

						$sel = "selected=\"selected\"";
}
$select .= "<option value=\"$val\" $sel>$val</option>";

				}

				}

				if(!$profilefield['length'])
{
$profilefield['length'] = 1;

				if(!$profilefield['length'])
{
$profilefield['length'] = 1;

Zeile 448Zeile 451
			}
}
elseif($type == "radio")

			}
}
elseif($type == "radio")

		{
$expoptions = explode("\n", $options);
if(is_array($expoptions))
{

		{
$expoptions = explode("\n", $options);
if(is_array($expoptions))
{

				foreach($expoptions as $key => $val)
{
$checked = "";

				foreach($expoptions as $key => $val)
{
$checked = "";

Zeile 548Zeile 551
			{
$newtitle = htmlspecialchars_uni($user['usertitle']);
$user['usertitle'] = $mybb->user['usertitle'];

			{
$newtitle = htmlspecialchars_uni($user['usertitle']);
$user['usertitle'] = $mybb->user['usertitle'];

			}
}

			}
}

		eval("\$customtitle = \"".$templates->get("usercp_profile_customtitle")."\";");

		eval("\$customtitle = \"".$templates->get("usercp_profile_customtitle")."\";");

	}

	}

	else
{
$customtitle = "";

	else
{
$customtitle = "";

Zeile 563Zeile 566

if($mybb->input['action'] == "do_options" && $mybb->request_method == "post")
{


if($mybb->input['action'] == "do_options" && $mybb->request_method == "post")
{

 
	// Verify incoming POST request
verify_post_check($mybb->input['my_post_key']);


	$plugins->run_hooks("usercp_do_options_start");

// Set up user handler.

	$plugins->run_hooks("usercp_do_options_start");

// Set up user handler.

Zeile 615Zeile 621
		$errors = $userhandler->get_friendly_errors();
$errors = inline_error($errors);
$mybb->input['action'] = "options";

		$errors = $userhandler->get_friendly_errors();
$errors = inline_error($errors);
$mybb->input['action'] = "options";

	}

	}

	else
{
$userhandler->update_user();

	else
{
$userhandler->update_user();

Zeile 628Zeile 634
			my_unsetcookie("mybbuser");
// Set the new one
if($mybb->input['remember'] == "yes")

			my_unsetcookie("mybbuser");
// Set the new one
if($mybb->input['remember'] == "yes")

			{

			{

				my_setcookie("mybbuser", $mybb->user['uid']."_".$mybb->user['loginkey'], null, true);
}
else

				my_setcookie("mybbuser", $mybb->user['uid']."_".$mybb->user['loginkey'], null, true);
}
else

Zeile 636Zeile 642
				my_setcookie("mybbuser", $mybb->user['uid']."_".$mybb->user['loginkey'], -1, true);
}
}

				my_setcookie("mybbuser", $mybb->user['uid']."_".$mybb->user['loginkey'], -1, true);
}
}





		$plugins->run_hooks("usercp_do_options_end");

redirect("usercp.php", $lang->redirect_optionsupdated);

		$plugins->run_hooks("usercp_do_options_end");

redirect("usercp.php", $lang->redirect_optionsupdated);

Zeile 648Zeile 654
	$plugins->run_hooks("usercp_options_start");

if($errors != '')

	$plugins->run_hooks("usercp_options_start");

if($errors != '')

	{

	{

		$user = $mybb->input;

		$user = $mybb->input;

	}
else
{

	}
else
{

		$user = $mybb->user;
}
$languages = $lang->get_languages();

		$user = $mybb->user;
}
$languages = $lang->get_languages();

Zeile 680Zeile 686
	if($user['invisible'] == "yes")
{
$invisiblecheck = "checked=\"checked\"";

	if($user['invisible'] == "yes")
{
$invisiblecheck = "checked=\"checked\"";

	}

	}

	else
{
$invisiblecheck = "";

	else
{
$invisiblecheck = "";

	}

	}


if($user['hideemail'] == "yes")
{


if($user['hideemail'] == "yes")
{

Zeile 698Zeile 704
	if($user['emailnotify'] == "yes")
{
$emailnotifycheck = "checked=\"checked\"";

	if($user['emailnotify'] == "yes")
{
$emailnotifycheck = "checked=\"checked\"";

	}
else

	}
else

	{
$emailnotifycheck = "";

	{
$emailnotifycheck = "";

	}


	}


	if($user['showsigs'] == "yes")
{
$showsigscheck = "checked=\"checked\"";;

	if($user['showsigs'] == "yes")
{
$showsigscheck = "checked=\"checked\"";;

	}

	}

	else
{
$showsigscheck = "";

	else
{
$showsigscheck = "";

	}


	}


	if($user['showavatars'] == "yes")

	if($user['showavatars'] == "yes")

	{

	{

		$showavatarscheck = "checked=\"checked\"";

		$showavatarscheck = "checked=\"checked\"";

	}
else
{

	}
else
{

		$showavatarscheck = "";
}

if($user['showquickreply'] == "yes")
{
$showquickreplycheck = "checked=\"checked\"";

		$showavatarscheck = "";
}

if($user['showquickreply'] == "yes")
{
$showquickreplycheck = "checked=\"checked\"";

	}
else

	}
else

	{
$showquickreplycheck = "";

	{
$showquickreplycheck = "";

	}


	}


	if($user['remember'] == "yes")
{
$remembercheck = "checked=\"checked\"";

	if($user['remember'] == "yes")
{
$remembercheck = "checked=\"checked\"";

	}

	}

	else
{
$remembercheck = "";

	else
{
$remembercheck = "";

	}

	}


if($user['receivepms'] == "yes")
{
$receivepmscheck = "checked=\"checked\"";


if($user['receivepms'] == "yes")
{
$receivepmscheck = "checked=\"checked\"";

	}
else

	}
else

	{
$receivepmscheck = "";
}

	{
$receivepmscheck = "";
}

Zeile 752Zeile 758
	if($user['pmpopup'] == "yes")
{
$pmpopupcheck = "checked=\"checked\"";

	if($user['pmpopup'] == "yes")
{
$pmpopupcheck = "checked=\"checked\"";

	}
else

	}
else

	{
$pmpopupcheck = "";

	{
$pmpopupcheck = "";

	}


	}


	if($user['dst'] == "yes")
{
$dstcheck = "checked=\"checked\"";

	if($user['dst'] == "yes")
{
$dstcheck = "checked=\"checked\"";

Zeile 777Zeile 783
	}

if($user['showredirect'] != "no")

	}

if($user['showredirect'] != "no")

	{

	{

		$showredirectcheck = "checked=\"checked\"";
}
else

		$showredirectcheck = "checked=\"checked\"";
}
else

Zeile 883Zeile 889

if($mybb->input['action'] == "do_email" && $mybb->request_method == "post")
{


if($mybb->input['action'] == "do_email" && $mybb->request_method == "post")
{

 
	// Verify incoming POST request
verify_post_check($mybb->input['my_post_key']);


	$errors = array();

$plugins->run_hooks("usercp_do_email_start");

	$errors = array();

$plugins->run_hooks("usercp_do_email_start");

Zeile 905Zeile 914
		$userhandler->set_data($user);

if(!$userhandler->validate_user())

		$userhandler->set_data($user);

if(!$userhandler->validate_user())

		{

		{

			$errors = $userhandler->get_friendly_errors();
}
else

			$errors = $userhandler->get_friendly_errors();
}
else

Zeile 938Zeile 947
				$userhandler->update_user();
$plugins->run_hooks("usercp_do_email_changed");
redirect("usercp.php", $lang->redirect_emailupdated);

				$userhandler->update_user();
$plugins->run_hooks("usercp_do_email_changed");
redirect("usercp.php", $lang->redirect_emailupdated);

			}
}
}
if(count($errors) > 0)
{

			}
}
}
if(count($errors) > 0)
{

			$mybb->input['action'] = "email";
$errors = inline_error($errors);
}

			$mybb->input['action'] = "email";
$errors = inline_error($errors);
}

Zeile 952Zeile 961
{
// Coming back to this page after one or more errors were experienced, show fields the user previously entered (with the exception of the password)
if($errors)

{
// Coming back to this page after one or more errors were experienced, show fields the user previously entered (with the exception of the password)
if($errors)

	{

	{

		$email = htmlspecialchars_uni($mybb->input['email']);
$email2 = htmlspecialchars_uni($mybb->input['email2']);
}

		$email = htmlspecialchars_uni($mybb->input['email']);
$email2 = htmlspecialchars_uni($mybb->input['email2']);
}

Zeile 969Zeile 978

if($mybb->input['action'] == "do_password" && $mybb->request_method == "post")
{


if($mybb->input['action'] == "do_password" && $mybb->request_method == "post")
{

 
	// Verify incoming POST request
verify_post_check($mybb->input['my_post_key']);


	$errors = array();

$plugins->run_hooks("usercp_do_password_start");

	$errors = array();

$plugins->run_hooks("usercp_do_password_start");

Zeile 989Zeile 1001
		);

$userhandler->set_data($user);

		);

$userhandler->set_data($user);





		if(!$userhandler->validate_user())
{
$errors = $userhandler->get_friendly_errors();

		if(!$userhandler->validate_user())
{
$errors = $userhandler->get_friendly_errors();

Zeile 1004Zeile 1016
	}
if(count($errors) > 0)
{

	}
if(count($errors) > 0)
{

			$mybb->input['action'] = "password";
$errors = inline_error($errors);

		$mybb->input['action'] = "password";
$errors = inline_error($errors);

	}
}


	}
}


Zeile 1019Zeile 1031

if($mybb->input['action'] == "do_changename" && $mybb->request_method == "post")
{


if($mybb->input['action'] == "do_changename" && $mybb->request_method == "post")
{

 
	// Verify incoming POST request
verify_post_check($mybb->input['my_post_key']);


	$plugins->run_hooks("usercp_do_changename_start");
if($mybb->usergroup['canchangename'] != "yes")
{

	$plugins->run_hooks("usercp_do_changename_start");
if($mybb->usergroup['canchangename'] != "yes")
{

Zeile 1352Zeile 1367

if($mybb->input['action'] == "do_editsig" && $mybb->request_method == "post")
{


if($mybb->input['action'] == "do_editsig" && $mybb->request_method == "post")
{

 
	// Verify incoming POST request
verify_post_check($mybb->input['my_post_key']);


	$plugins->run_hooks("usercp_do_editsig_start");
if($mybb->input['updateposts'] == "enable")

	$plugins->run_hooks("usercp_do_editsig_start");
if($mybb->input['updateposts'] == "enable")

	{
$update_signature = array(

	{
$update_signature = array(

			"includesig" => "yes"

			"includesig" => "yes"

		);

		);

		$db->update_query(TABLE_PREFIX."posts", $update_signature, "uid='".$mybb->user['uid']."'");
}
elseif($mybb->input['updateposts'] == "disable")

		$db->update_query(TABLE_PREFIX."posts", $update_signature, "uid='".$mybb->user['uid']."'");
}
elseif($mybb->input['updateposts'] == "disable")

Zeile 1366Zeile 1384
			"includesig" => "no"
);
$db->update_query(TABLE_PREFIX."posts", $update_signature, "uid='".$mybb->user['uid']."'");

			"includesig" => "no"
);
$db->update_query(TABLE_PREFIX."posts", $update_signature, "uid='".$mybb->user['uid']."'");

	}

	}

	$new_signature = array(
"signature" => $db->escape_string($mybb->input['signature'])
);

	$new_signature = array(
"signature" => $db->escape_string($mybb->input['signature'])
);

Zeile 1408Zeile 1426
	{
$sigsmilies = $lang->on;
}

	{
$sigsmilies = $lang->on;
}

	else
{
$sigsmilies = $lang->off;
}

	else
{
$sigsmilies = $lang->off;
}

	if($mybb->settings['sigmycode'] == "yes")

	if($mybb->settings['sigmycode'] == "yes")

	{

	{

		$sigmycode = $lang->on;

		$sigmycode = $lang->on;

	}

	}

	else

	else

	{

	{

		$sigmycode = $lang->off;
}
if($mybb->settings['sightml'] == "yes")
{
$sightml = $lang->on;

		$sigmycode = $lang->off;
}
if($mybb->settings['sightml'] == "yes")
{
$sightml = $lang->on;

	}
else

	}
else

	{
$sightml = $lang->off;
}

	{
$sightml = $lang->off;
}

Zeile 1439Zeile 1457
	$sig = htmlspecialchars_uni($sig);
$lang->edit_sig_note2 = sprintf($lang->edit_sig_note2, $sigsmilies, $sigmycode, $sigimgcode, $sightml, $mybb->settings['siglength']);
eval("\$editsig = \"".$templates->get("usercp_editsig")."\";");

	$sig = htmlspecialchars_uni($sig);
$lang->edit_sig_note2 = sprintf($lang->edit_sig_note2, $sigsmilies, $sigmycode, $sigimgcode, $sightml, $mybb->settings['siglength']);
eval("\$editsig = \"".$templates->get("usercp_editsig")."\";");

	$plugins->run_hooks("usercp_endsig_end");

	$plugins->run_hooks("usercp_editsig_end");

	output_page($editsig);
}

if($mybb->input['action'] == "do_avatar" && $mybb->request_method == "post")

	output_page($editsig);
}

if($mybb->input['action'] == "do_avatar" && $mybb->request_method == "post")

{ 




{
// Verify incoming POST request
verify_post_check($mybb->input['my_post_key']);


	$plugins->run_hooks("usercp_do_avatar_start"); 
require_once MYBB_ROOT."inc/functions_upload.php";
if($mybb->input['remove']) // remove avatar

	$plugins->run_hooks("usercp_do_avatar_start"); 
require_once MYBB_ROOT."inc/functions_upload.php";
if($mybb->input['remove']) // remove avatar

Zeile 1469Zeile 1490
			if($mybb->input['gallery'] == "default") 
{
$avatarpath = $db->escape_string($mybb->settings['avatardir']."/".$mybb->input['avatar']);

			if($mybb->input['gallery'] == "default") 
{
$avatarpath = $db->escape_string($mybb->settings['avatardir']."/".$mybb->input['avatar']);

			} 

			} 

			else 
{
$avatarpath = $db->escape_string($mybb->settings['avatardir']."/".$mybb->input['gallery']."/".$mybb->input['avatar']);

			else 
{
$avatarpath = $db->escape_string($mybb->settings['avatardir']."/".$mybb->input['gallery']."/".$mybb->input['avatar']);

Zeile 1502Zeile 1523
			if($avatar['width'] > 0 && $avatar['height'] > 0) 
{
$avatar_dimensions = $avatar['width']."|".$avatar['height'];

			if($avatar['width'] > 0 && $avatar['height'] > 0) 
{
$avatar_dimensions = $avatar['width']."|".$avatar['height'];

			} 

			} 

			$updated_avatar = array( 
"avatar" => $avatar['avatar'],
"avatardimensions" => $avatar_dimensions,

			$updated_avatar = array( 
"avatar" => $avatar['avatar'],
"avatardimensions" => $avatar_dimensions,

Zeile 1631Zeile 1652
			if(is_file($avatarpath) && preg_match("#\.(jpg|jpeg|gif|bmp|png)$#i", $avatar))
{
$avatars[] = $avatar;

			if(is_file($avatarpath) && preg_match("#\.(jpg|jpeg|gif|bmp|png)$#i", $avatar))
{
$avatars[] = $avatar;

			}
}

			}
}

		@closedir($opendir);

if(is_array($avatars))

		@closedir($opendir);

if(is_array($avatars))

Zeile 1664Zeile 1685
				{
eval("\$avatarlist .= \"".$templates->get("usercp_avatar_gallery_blankblock")."\";");
}

				{
eval("\$avatarlist .= \"".$templates->get("usercp_avatar_gallery_blankblock")."\";");
}

			}

			}

		}
else
{

		}
else
{

Zeile 1730Zeile 1751
}
if($mybb->input['action'] == "do_notepad" && $mybb->request_method == "post")
{

}
if($mybb->input['action'] == "do_notepad" && $mybb->request_method == "post")
{

 
	// Verify incoming POST request
verify_post_check($mybb->input['my_post_key']);


	$plugins->run_hooks("usercp_do_notepad_start");
$db->update_query(TABLE_PREFIX."users", array('notepad' => $db->escape_string($mybb->input['notepad'])), "uid='".$mybb->user['uid']."'");
$plugins->run_hooks("usercp_do_notepad_end");

	$plugins->run_hooks("usercp_do_notepad_start");
$db->update_query(TABLE_PREFIX."users", array('notepad' => $db->escape_string($mybb->input['notepad'])), "uid='".$mybb->user['uid']."'");
$plugins->run_hooks("usercp_do_notepad_end");

Zeile 1789Zeile 1813
}
if($mybb->input['action'] == "do_editlists" && $mybb->request_method == "post")
{

}
if($mybb->input['action'] == "do_editlists" && $mybb->request_method == "post")
{

 
	// Verify incoming POST request
verify_post_check($mybb->input['my_post_key']);


	$plugins->run_hooks("usercp_do_editlists_start");
$comma = '';
$users = '';

	$plugins->run_hooks("usercp_do_editlists_start");
$comma = '';
$users = '';

Zeile 1810Zeile 1837
		$comma2 = ",";
}
if($mybb->input['list'] == "ignore")

		$comma2 = ",";
}
if($mybb->input['list'] == "ignore")

	{

	{

		$type = "ignorelist";
}
else

		$type = "ignorelist";
}
else

Zeile 1872Zeile 1899
}
if($mybb->input['action'] == "do_drafts" && $mybb->request_method == "post")
{

}
if($mybb->input['action'] == "do_drafts" && $mybb->request_method == "post")
{

 
	// Verify incoming POST request
verify_post_check($mybb->input['my_post_key']);


	$plugins->run_hooks("usercp_do_drafts_start");
if(!$mybb->input['deletedraft'])
{

	$plugins->run_hooks("usercp_do_drafts_start");
if(!$mybb->input['deletedraft'])
{

Zeile 1897Zeile 1927
		$tidinp = "OR tid IN ($tidin)";
}
if($pidin || $tidinp)

		$tidinp = "OR tid IN ($tidin)";
}
if($pidin || $tidinp)

	{

	{

		if($pidin)
{
$pidin = implode(",", $pidin);

		if($pidin)
{
$pidin = implode(",", $pidin);

Zeile 1920Zeile 1950
	// Changing our display group
if($mybb->input['displaygroup'])
{

	// Changing our display group
if($mybb->input['displaygroup'])
{

 
		// Verify incoming POST request
verify_post_check($mybb->input['my_post_key']);


		if(strpos($ingroups, ",".$mybb->input['displaygroup'].",") === false)
{
error($lang->not_member_of_group);

		if(strpos($ingroups, ",".$mybb->input['displaygroup'].",") === false)
{
error($lang->not_member_of_group);

Zeile 1939Zeile 1972
	// Leaving a group
if($mybb->input['leavegroup'])
{

	// Leaving a group
if($mybb->input['leavegroup'])
{

 
		// Verify incoming POST request
verify_post_check($mybb->input['my_post_key']);


		if(strpos($ingroups, ",".$mybb->input['leavegroup'].",") === false)

		if(strpos($ingroups, ",".$mybb->input['leavegroup'].",") === false)

		{

		{

			error($lang->not_member_of_group);
}
if($mybb->user['usergroup'] == $mybb->input['leavegroup'])
{
error($lang->cannot_leave_primary_group);

			error($lang->not_member_of_group);
}
if($mybb->user['usergroup'] == $mybb->input['leavegroup'])
{
error($lang->cannot_leave_primary_group);

		}

		}

		$query = $db->simple_select(TABLE_PREFIX."usergroups", "*", "gid='".intval($mybb->input['leavegroup'])."'");
$usergroup = $db->fetch_array($query);
if($usergroup['type'] != 4 && $usergroup['type'] != 3)

		$query = $db->simple_select(TABLE_PREFIX."usergroups", "*", "gid='".intval($mybb->input['leavegroup'])."'");
$usergroup = $db->fetch_array($query);
if($usergroup['type'] != 4 && $usergroup['type'] != 3)

Zeile 1962Zeile 1998
	// Joining a group
if($mybb->input['joingroup'])
{

	// Joining a group
if($mybb->input['joingroup'])
{

 
		// Verify incoming POST request
verify_post_check($mybb->input['my_post_key']);


		$mybb->input['joingroup'] = intval($mybb->input['joingroup']);
$query = $db->simple_select(TABLE_PREFIX."usergroups", "*", "gid='".intval($mybb->input['joingroup'])."'");
$usergroup = $db->fetch_array($query);

		$mybb->input['joingroup'] = intval($mybb->input['joingroup']);
$query = $db->simple_select(TABLE_PREFIX."usergroups", "*", "gid='".intval($mybb->input['joingroup'])."'");
$usergroup = $db->fetch_array($query);

Zeile 2091Zeile 2130
			}
else
{

			}
else
{

				$leavelink = "<div align=\"center\"><a href=\"usercp.php?action=usergroups&leavegroup=".$usergroup['gid']."\">".$lang->usergroup_leave."</a></div>";

				$leavelink = "<div align=\"center\"><a href=\"usercp.php?action=usergroups&amp;leavegroup=".$usergroup['gid']."&amp;my_post_key={$mybb->post_code}\">".$lang->usergroup_leave."</a></div>";

			}
if($usergroup['description'])
{

			}
if($usergroup['description'])
{

Zeile 2165Zeile 2204
		}
else
{

		}
else
{

			$joinlink = "<a href=\"usercp.php?action=usergroups&amp;joingroup={$usergroup['gid']}\">{$lang->join_group}</a>";

			$joinlink = "<a href=\"usercp.php?action=usergroups&amp;joingroup={$usergroup['gid']}&amp;my_post_key={$mybb->post_code}\">{$lang->join_group}</a>";

		}
$usergroupleaders = '';
if($groupleaders[$usergroup['gid']])

		}
$usergroupleaders = '';
if($groupleaders[$usergroup['gid']])

Zeile 2257Zeile 2296
}
if($mybb->input['action'] == "do_attachments" && $mybb->request_method == "post")
{

}
if($mybb->input['action'] == "do_attachments" && $mybb->request_method == "post")
{

 
	// Verify incoming POST request
verify_post_check($mybb->input['my_post_key']);


	$plugins->run_hooks("usercp_do_attachments_start");
require_once MYBB_ROOT."inc/functions_upload.php";
if(!is_array($mybb->input['attachments']))

	$plugins->run_hooks("usercp_do_attachments_start");
require_once MYBB_ROOT."inc/functions_upload.php";
if(!is_array($mybb->input['attachments']))