Zeile 6 | Zeile 6 |
---|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* $Id: usercp.php 5459 2011-05-10 10:47:56Z Tomm $
| * $Id: usercp.php 5616 2011-09-20 13:24:59Z Tomm $
|
*/
define("IN_MYBB", 1);
| */
define("IN_MYBB", 1);
|
Zeile 402 | Zeile 402 |
---|
$query = $db->simple_select("profilefields", "*", "editable=1", array('order_by' => 'disporder')); while($profilefield = $db->fetch_array($query)) {
|
$query = $db->simple_select("profilefields", "*", "editable=1", array('order_by' => 'disporder')); while($profilefield = $db->fetch_array($query)) {
|
| // Does this field have a minimum post count? if($profilefield['postnum'] && $profilefield['postnum'] > $user['postnum']) { continue; }
|
$profilefield['type'] = htmlspecialchars_uni($profilefield['type']); $profilefield['name'] = htmlspecialchars_uni($profilefield['name']); $profilefield['description'] = htmlspecialchars_uni($profilefield['description']);
| $profilefield['type'] = htmlspecialchars_uni($profilefield['type']); $profilefield['name'] = htmlspecialchars_uni($profilefield['name']); $profilefield['description'] = htmlspecialchars_uni($profilefield['description']);
|
Zeile 713 | Zeile 719 |
---|
else { $invisiblecheck = "";
|
else { $invisiblecheck = "";
|
}
| }
|
if($user['hideemail'] == 1)
|
if($user['hideemail'] == 1)
|
{
| {
|
$hideemailcheck = "checked=\"checked\""; }
|
$hideemailcheck = "checked=\"checked\""; }
|
else { $hideemailcheck = ""; }
| else { $hideemailcheck = ""; }
|
if($user['subscriptionmethod'] == 1) {
| if($user['subscriptionmethod'] == 1) {
|
Zeile 731 | Zeile 737 |
---|
else if($user['subscriptionmethod'] == 2) { $instant_email_subscribe_selected = "selected=\"selected\"";
|
else if($user['subscriptionmethod'] == 2) { $instant_email_subscribe_selected = "selected=\"selected\"";
|
} else
| } else
|
{ $no_subscribe_selected = "selected=\"selected\""; }
| { $no_subscribe_selected = "selected=\"selected\""; }
|
Zeile 741 | Zeile 747 |
---|
if($user['showsigs'] == 1) { $showsigscheck = "checked=\"checked\"";
|
if($user['showsigs'] == 1) { $showsigscheck = "checked=\"checked\"";
|
} else
| } else
|
{ $showsigscheck = "";
|
{ $showsigscheck = "";
|
}
| }
|
if($user['showavatars'] == 1) { $showavatarscheck = "checked=\"checked\"";
|
if($user['showavatars'] == 1) { $showavatarscheck = "checked=\"checked\"";
|
} else {
| } else {
|
$showavatarscheck = "";
|
$showavatarscheck = "";
|
}
if($user['showquickreply'] == 1)
| }
if($user['showquickreply'] == 1)
|
{ $showquickreplycheck = "checked=\"checked\""; }
|
{ $showquickreplycheck = "checked=\"checked\""; }
|
else { $showquickreplycheck = ""; }
| else { $showquickreplycheck = ""; }
|
if($user['receivepms'] == 1) { $receivepmscheck = "checked=\"checked\"";
|
if($user['receivepms'] == 1) { $receivepmscheck = "checked=\"checked\"";
|
} else {
| } else {
|
$receivepmscheck = ""; }
| $receivepmscheck = ""; }
|
Zeile 808 | Zeile 814 |
---|
if($user['showcodebuttons'] == 1) { $showcodebuttonscheck = "checked=\"checked\"";
|
if($user['showcodebuttons'] == 1) { $showcodebuttonscheck = "checked=\"checked\"";
|
} else {
| } else {
|
$showcodebuttonscheck = "";
|
$showcodebuttonscheck = "";
|
}
if($user['showredirect'] != 0)
| }
if($user['showredirect'] != 0)
|
{ $showredirectcheck = "checked=\"checked\""; }
|
{ $showredirectcheck = "checked=\"checked\""; }
|
else { $showredirectcheck = ""; }
| else { $showredirectcheck = ""; }
|
if($user['pmnotify'] != 0) { $pmnotifycheck = "checked=\"checked\"";
|
if($user['pmnotify'] != 0) { $pmnotifycheck = "checked=\"checked\"";
|
} else {
| } else {
|
$pmnotifycheck = ''; }
| $pmnotifycheck = ''; }
|
Zeile 867 | Zeile 873 |
---|
if($user['timeformat'] == $key) { $time_format_options .= "<option value=\"$key\" selected=\"selected\">".my_date($format, TIME_NOW, "", 0)."</option>";
|
if($user['timeformat'] == $key) { $time_format_options .= "<option value=\"$key\" selected=\"selected\">".my_date($format, TIME_NOW, "", 0)."</option>";
|
} else {
| } else {
|
$time_format_options .= "<option value=\"$key\">".my_date($format, TIME_NOW, "", 0)."</option>"; } }
| $time_format_options .= "<option value=\"$key\">".my_date($format, TIME_NOW, "", 0)."</option>"; } }
|
Zeile 962 | Zeile 968 |
---|
else { if($mybb->user['usergroup'] != "5" && $mybb->usergroup['cancp'] != 1)
|
else { if($mybb->user['usergroup'] != "5" && $mybb->usergroup['cancp'] != 1)
|
{
| {
|
$activationcode = random_str(); $now = TIME_NOW; $db->delete_query("awaitingactivation", "uid='".$mybb->user['uid']."'");
| $activationcode = random_str(); $now = TIME_NOW; $db->delete_query("awaitingactivation", "uid='".$mybb->user['uid']."'");
|
Zeile 981 | Zeile 987 |
---|
$lang->emailsubject_changeemail = $lang->sprintf($lang->emailsubject_changeemail, $mybb->settings['bbname']); $lang->email_changeemail = $lang->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']); my_mail($mybb->input['email'], $lang->emailsubject_changeemail, $lang->email_changeemail);
|
$lang->emailsubject_changeemail = $lang->sprintf($lang->emailsubject_changeemail, $mybb->settings['bbname']); $lang->email_changeemail = $lang->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']); my_mail($mybb->input['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 1020 | Zeile 1026 |
---|
}
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();
| { // Verify incoming POST request verify_post_check($mybb->input['my_post_key']);
$errors = array();
|
$plugins->run_hooks("usercp_do_password_start"); if(validate_password_from_uid($mybb->user['uid'], $mybb->input['oldpassword']) == false) {
| $plugins->run_hooks("usercp_do_password_start"); if(validate_password_from_uid($mybb->user['uid'], $mybb->input['oldpassword']) == false) {
|
Zeile 1387 | Zeile 1393 |
---|
if($thread['lastpost'] > $cutoff) {
|
if($thread['lastpost'] > $cutoff) {
|
if($thread['lastpost'] > $cutoff)
| if($thread['lastread'])
|
{
|
{
|
if($thread['lastread']) { $lastread = $thread['lastread']; } else { $lastread = 1; }
| $lastread = $thread['lastread']; } else { $lastread = 1;
|
} }
| } }
|
Zeile 1413 | Zeile 1416 |
---|
} }
|
} }
|
if($thread['lastpost'] > $lastread && $lastread)
| if($lastread && $lastread < $thread['lastpost'])
|
{ $folder .= "new"; $folder_label .= $lang->icon_new;
| { $folder .= "new"; $folder_label .= $lang->icon_new;
|
Zeile 1653 | Zeile 1656 |
---|
if($mybb->user['suspendsignature'] && ($mybb->user['suspendsigtime'] == 0 || $mybb->user['suspendsigtime'] > 0 && $mybb->user['suspendsigtime'] > TIME_NOW)) { // User currently has no signature and they're suspended
|
if($mybb->user['suspendsignature'] && ($mybb->user['suspendsigtime'] == 0 || $mybb->user['suspendsigtime'] > 0 && $mybb->user['suspendsigtime'] > TIME_NOW)) { // User currently has no signature and they're suspended
|
| error($lang->sig_suspended); }
if($mybb->usergroup['canusesig'] != 1) { // Usergroup has no permission to use this facility
|
error_no_permission();
|
error_no_permission();
|
| } else if($mybb->usergroup['canusesig'] == 1 && $mybb->usergroup['canusesigxposts'] > 0 && $mybb->user['postnum'] < $mybb->usergroup['canusesigxposts']) { // Usergroup can use this facility, but only after x posts error($lang->sprintf($lang->sig_suspended_posts, $mybb->usergroup['canusesigxposts']));
|
}
if($sig && $template)
| }
if($sig && $template)
|
Zeile 3155 | Zeile 3169 |
---|
{ $folder = ''; $folder_label = '';
|
{ $folder = ''; $folder_label = '';
|
| $gotounread = '';
|
if($thread['tid']) {
| if($thread['tid']) {
|