Zeile 6 | Zeile 6 |
---|
* Website: http://www.mybboard.com * License: http://www.mybboard.com/eula.html *
|
* Website: http://www.mybboard.com * License: http://www.mybboard.com/eula.html *
|
* $Id$
| * $Id: usercp.php 924 2005-12-05 12:25:54Z chris $
|
*/ define("KILL_GLOBALS", 1);
| */ define("KILL_GLOBALS", 1);
|
Zeile 417 | Zeile 417 |
---|
else { $away = "no";
|
else { $away = "no";
|
$awaydate = "";
| $awaydate = "0";
|
$returndate = ""; $mybb->input['awayreason'] = ""; }
| $returndate = ""; $mybb->input['awayreason'] = ""; }
|
Zeile 816 | Zeile 816 |
---|
{ $mybb->input['language'] = ""; }
|
{ $mybb->input['language'] = ""; }
|
| if($mybb->input['threadmode'] != "threaded") { $mybb->input['threadmode'] = "linear"; }
|
$updatedoptions = array( "allownotices" => $mybb->input['allownotices'], "hideemail" => $mybb->input['hideemail'],
| $updatedoptions = array( "allownotices" => $mybb->input['allownotices'], "hideemail" => $mybb->input['hideemail'],
|
Zeile 846 | Zeile 851 |
---|
if($mybb->settings['userpppoptions']) { $updatedoptions['ppp'] = intval($mybb->input['ppp']);
|
if($mybb->settings['userpppoptions']) { $updatedoptions['ppp'] = intval($mybb->input['ppp']);
|
}
| }
|
$plugins->run_hooks("usercp_do_options_process"); $db->update_query(TABLE_PREFIX."users", $updatedoptions, "uid='".$mybb->user['uid']."'");
|
$plugins->run_hooks("usercp_do_options_process"); $db->update_query(TABLE_PREFIX."users", $updatedoptions, "uid='".$mybb->user['uid']."'");
|
| // If the cookie settings are different, re-set the cookie if($mybb->input['remember'] != $mybb->user['remember']) { $mybb->user['remember'] = $mybb->input['remember']; // Unset the old one myunsetcookie("mybbuser"); // Set the new one if($mybb->input['remember'] == "yes") { mysetcookie("mybbuser", $mybb->user['uid']."_".$mybb->user['loginkey']); } else { mysetcookie("mybbuser", $mybb->user['uid']."_".$mybb->user['loginkey'], -1); } }
|
$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 866 | Zeile 887 |
---|
if(!$user['uid']) { error($lang->error_invalidpassword);
|
if(!$user['uid']) { error($lang->error_invalidpassword);
|
}
| }
|
if($mybb->input['email'] != $mybb->input['email2']) { error($lang->error_emailmismatch);
| if($mybb->input['email'] != $mybb->input['email2']) { error($lang->error_emailmismatch);
|
Zeile 895 | Zeile 916 |
---|
error($lang->error_invalidemail); } if(function_exists("emailChanged"))
|
error($lang->error_invalidemail); } if(function_exists("emailChanged"))
|
{ emailChanged($mybb->user['uid'], $mybb->input['email']); }
| { emailChanged($mybb->user['uid'], $mybb->input['email']); }
|
|
|
if(!$mybb->user['usergroup'] == "5")
| if($mybb->user['usergroup'] != "5")
|
{ $activationcode = random_str(); $now = time();
| { $activationcode = random_str(); $now = time();
|
Zeile 918 | Zeile 939 |
---|
$uid = $mybb->user['uid']; $lang->emailsubject_changeemail = sprintf($lang->emailsubject_changeemail, $mybb->settings['bbname']); $lang->email_changeemail = sprintf($lang->email_changeemail, $mybb->user['username'], $mybb->settings['bbname'], $mybb->user['email'], $mybb->input['email'], $mybb->settings['bburl'], $activationcode, $mybb->user['username'], $mybb->user['uid']);
|
$uid = $mybb->user['uid']; $lang->emailsubject_changeemail = sprintf($lang->emailsubject_changeemail, $mybb->settings['bbname']); $lang->email_changeemail = sprintf($lang->email_changeemail, $mybb->user['username'], $mybb->settings['bbname'], $mybb->user['email'], $mybb->input['email'], $mybb->settings['bburl'], $activationcode, $mybb->user['username'], $mybb->user['uid']);
|
mymail($email, $lang->emailsubject_changeemail, $lang->email_changeemail);
| $email = $mybb->input['email']; mymail($email, $lang->emailsubject_changeemail, $lang->email_changeemail);
|
$plugins->run_hooks("usercp_do_email_verify"); error($lang->redirect_changeemail_activation); }
| $plugins->run_hooks("usercp_do_email_verify"); error($lang->redirect_changeemail_activation); }
|
Zeile 1271 | Zeile 1293 |
---|
$sigimgcode = $lang->off; } $lang->edit_sig_note2 = sprintf($lang->edit_sig_note2, $sigsmilies, $sigmycode, $sigimgcode, $sightml, $mybb->settings['siglength']);
|
$sigimgcode = $lang->off; } $lang->edit_sig_note2 = sprintf($lang->edit_sig_note2, $sigsmilies, $sigmycode, $sigimgcode, $sightml, $mybb->settings['siglength']);
|
| $sig = htmlspecialchars_uni($sig);
|
eval("\$editsig = \"".$templates->get("usercp_editsig")."\";"); $plugins->run_hooks("usercp_endsig_end"); outputpage($editsig);
| eval("\$editsig = \"".$templates->get("usercp_editsig")."\";"); $plugins->run_hooks("usercp_endsig_end"); outputpage($editsig);
|
Zeile 1492 | Zeile 1515 |
---|
elseif($mybb->input['action'] == "notepad") { $plugins->run_hooks("usercp_notepad_start");
|
elseif($mybb->input['action'] == "notepad") { $plugins->run_hooks("usercp_notepad_start");
|
| $mybbuser['notepad'] = htmlspecialchars($mybbuser['notepad']);
|
eval("\$notepad = \"".$templates->get("usercp_notepad")."\";"); $plugins->run_hooks("usercp_notepad_end"); outputpage($notepad);
| eval("\$notepad = \"".$templates->get("usercp_notepad")."\";"); $plugins->run_hooks("usercp_notepad_end"); outputpage($notepad);
|