Zeile 417 | Zeile 417 |
---|
else { $away = "no";
|
else { $away = "no";
|
$awaydate = "";
| $awaydate = "0";
|
$returndate = ""; $mybb->input['awayreason'] = ""; }
| $returndate = ""; $mybb->input['awayreason'] = ""; }
|
Zeile 719 | Zeile 719 |
---|
{ $plugins->run_hooks("usercp_do_options_start");
|
{ $plugins->run_hooks("usercp_do_options_start");
|
if($mybb->input['showcodebuttons'] != 1)
| if($mybb->input['showcodebuttons'] != '1')
|
{ $mybb->input['showcodebuttons'] = 0; }
| { $mybb->input['showcodebuttons'] = 0; }
|
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 1035 | Zeile 1057 |
---|
$favorite['username'] = $favorite['threadusername']; } $favorite['subject'] = htmlspecialchars_uni(dobadwords($favorite['subject']));
|
$favorite['username'] = $favorite['threadusername']; } $favorite['subject'] = htmlspecialchars_uni(dobadwords($favorite['subject']));
|
if($favorite['iconpath']) { $icon = "<img src=\"$favorite[iconpath]\" alt=\"$favorite[iconname]\">"; } else { $icon = " "; } if($mybb->user['lastvisit'] == "0") { $folder = "new";
| if($favorite['iconpath']) { $icon = "<img src=\"$favorite[iconpath]\" alt=\"$favorite[iconname]\">"; } else { $icon = " "; } if($mybb->user['lastvisit'] == "0") { $folder = "new";
|
} if($favorite['lastpost'] > $mybb->user['lastvisit']) {
| } if($favorite['lastpost'] > $mybb->user['lastvisit']) {
|
Zeile 1056 | Zeile 1078 |
---|
} } if($favorite['replies'] >= $mybb->settings['hottopic'])
|
} } if($favorite['replies'] >= $mybb->settings['hottopic'])
|
{ $folder .= "hot"; }
| { $folder .= "hot"; }
|
if($favorite['closed'] == "yes") { $folder .= "lock";
| if($favorite['closed'] == "yes") { $folder .= "lock";
|
Zeile 1067 | Zeile 1089 |
---|
$favorite['replies'] = mynumberformat($favorite['replies']); $favorite['views'] = mynumberformat($favorite['views']); eval("\$threads .= \"".$templates->get("usercp_favorites_thread")."\";");
|
$favorite['replies'] = mynumberformat($favorite['replies']); $favorite['views'] = mynumberformat($favorite['views']); eval("\$threads .= \"".$templates->get("usercp_favorites_thread")."\";");
|
$folder = ""; } } if(!$threads) { eval("\$threads = \"".$templates->get("usercp_favorites_none")."\";");
| $folder = ""; } } if(!$threads) { eval("\$threads = \"".$templates->get("usercp_favorites_none")."\";");
|
} eval("\$favorites = \"".$templates->get("usercp_favorites")."\";"); $plugins->run_hooks("usercp_favorites_end");
| } eval("\$favorites = \"".$templates->get("usercp_favorites")."\";"); $plugins->run_hooks("usercp_favorites_end");
|
Zeile 1100 | Zeile 1122 |
---|
$lower = $start+1; $upper = $end; if($upper > $threadcount)
|
$lower = $start+1; $upper = $end; if($upper > $threadcount)
|
{
| {
|
$upper = $threadcount; } $multipage = multipage($threadcount, $perpage, $page, "usercp.php?action=subscriptions");
| $upper = $threadcount; } $multipage = multipage($threadcount, $perpage, $page, "usercp.php?action=subscriptions");
|
Zeile 1156 | Zeile 1178 |
---|
} } if(!$threads)
|
} } if(!$threads)
|
{
| {
|
eval("\$threads = \"".$templates->get("usercp_subscriptions_none")."\";"); } eval("\$subscriptions = \"".$templates->get("usercp_subscriptions")."\";");
| eval("\$threads = \"".$templates->get("usercp_subscriptions_none")."\";"); } eval("\$subscriptions = \"".$templates->get("usercp_subscriptions")."\";");
|
Zeile 1185 | Zeile 1207 |
---|
else { $folder = "off";
|
else { $folder = "off";
|
}
| }
|
if($forum['lastpost'] == 0 || $forum['lastposter'] == "") { $lastpost = "<font><center>$lang->never</center></font>";
| if($forum['lastpost'] == 0 || $forum['lastposter'] == "") { $lastpost = "<font><center>$lang->never</center></font>";
|
Zeile 1213 | Zeile 1235 |
---|
eval("\$forums .= \"".$templates->get("usercp_forumsubscriptions_forum")."\";"); } if(!$forums)
|
eval("\$forums .= \"".$templates->get("usercp_forumsubscriptions_forum")."\";"); } if(!$forums)
|
{
| {
|
eval("\$forums = \"".$templates->get("usercp_forumsubscriptions_none")."\";"); } $plugins->run_hooks("usercp_forumsubscriptions_end");
| eval("\$forums = \"".$templates->get("usercp_forumsubscriptions_none")."\";"); } $plugins->run_hooks("usercp_forumsubscriptions_end");
|
Zeile 1227 | Zeile 1249 |
---|
{ $sig = $mybb->input['signature']; $template = "usercp_editsig_preview";
|
{ $sig = $mybb->input['signature']; $template = "usercp_editsig_preview";
|
}
| }
|
else
|
else
|
{
| {
|
$sig = $mybb->user['signature']; $template = "usercp_editsig_current"; } if($sig)
|
$sig = $mybb->user['signature']; $template = "usercp_editsig_current"; } if($sig)
|
{
| {
|
$sigpreview = postify($sig, $mybb->settings['sightml'], $mybb->settings['sigmycode'], $mybb->settings['sigsmilies'], $mybb->settings['sigimgcode']); eval("\$signature = \"".$templates->get($template)."\";"); } if($mybb->settings['sigsmilies'] == "yes") { $sigsmilies = $lang->on;
|
$sigpreview = postify($sig, $mybb->settings['sightml'], $mybb->settings['sigmycode'], $mybb->settings['sigsmilies'], $mybb->settings['sigimgcode']); eval("\$signature = \"".$templates->get($template)."\";"); } if($mybb->settings['sigsmilies'] == "yes") { $sigsmilies = $lang->on;
|
} else {
| } else {
|
$sigsmilies = $lang->off;
|
$sigsmilies = $lang->off;
|
}
| }
|
if($mybb->settings['sigmycode'] == "yes") { $sigmycode = $lang->on;
|
if($mybb->settings['sigmycode'] == "yes") { $sigmycode = $lang->on;
|
}
| }
|
else
|
else
|
{
| {
|
$sigmycode = $lang->off; }
|
$sigmycode = $lang->off; }
|
if($mybb->settings['sightml'] == "yes") { $sightml = $lang->on; } else { $sightml = $lang->off;
| if($mybb->settings['sightml'] == "yes") { $sightml = $lang->on;
|
}
|
}
|
if($mybb->settings['sigimgcode'] == "yes")
| else { $sightml = $lang->off; } if($mybb->settings['sigimgcode'] == "yes")
|
{ $sigimgcode = $lang->on; } else { $sigimgcode = $lang->off;
|
{ $sigimgcode = $lang->on; } else { $sigimgcode = $lang->off;
|
}
| }
|
$lang->edit_sig_note2 = sprintf($lang->edit_sig_note2, $sigsmilies, $sigmycode, $sigimgcode, $sightml, $mybb->settings['siglength']);
|
$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);
|
Zeile 1716 | Zeile 1740 |
---|
// Joining a group if($mybb->input['joingroup']) {
|
// Joining a group if($mybb->input['joingroup']) {
|
| $mybb->input['joingroup'] = intval($mybb->input['joingroup']);
|
$query = $db->query("SELECT * FROM ".TABLE_PREFIX."usergroups WHERE gid='".intval($mybb->input['joingroup'])."'"); $usergroup = $db->fetch_array($query);
|
$query = $db->query("SELECT * FROM ".TABLE_PREFIX."usergroups WHERE gid='".intval($mybb->input['joingroup'])."'"); $usergroup = $db->fetch_array($query);
|
if($usergroup['type'] != 4 && $usergroup['type'] != 3)
| if(($usergroup['type'] != 4 && $usergroup['type'] != 3) || !$usergroup['gid'])
|
{ error($lang->cannot_join_group); }
| { error($lang->cannot_join_group); }
|