Zeile 3 | Zeile 3 |
---|
* MyBB 1.2 * Copyright � 2006 MyBB Group, All Rights Reserved *
|
* MyBB 1.2 * Copyright � 2006 MyBB Group, All Rights Reserved *
|
* Website: http://www.mybboard.com * License: http://www.mybboard.com/eula.html
| * Website: http://www.mybboard.net * License: http://www.mybboard.net/eula.html
|
*
|
*
|
* $Id: member.php 2193 2006-09-03 12:33:03Z chris $
| * $Id: member.php 3069 2007-05-18 05:48:44Z chris $
|
*/
define("IN_MYBB", 1);
| */
define("IN_MYBB", 1);
|
Zeile 210 | Zeile 210 |
---|
if($mybb->settings['regtype'] != "randompass") { // Log them in
|
if($mybb->settings['regtype'] != "randompass") { // Log them in
|
my_setcookie("mybbuser", $user_info['uid']."_".$user_info['loginkey']);
| my_setcookie("mybbuser", $user_info['uid']."_".$user_info['loginkey'], null, true);
|
}
if($mybb->settings['regtype'] == "verify")
| }
if($mybb->settings['regtype'] == "verify")
|
Zeile 381 | Zeile 381 |
---|
} elseif($referrername) {
|
} elseif($referrername) {
|
$query = $db->simple_select(TABLE_PREFIX."users", "uid", "username='".$db->escape_string($referrername)."'");
| $query = $db->simple_select(TABLE_PREFIX."users", "uid", "LOWER(username)='".$db->escape_string(my_strtolower($referrername))."'");
|
$ref = $db->fetch_array($query); if(!$ref['uid']) {
| $ref = $db->fetch_array($query); if(!$ref['uid']) {
|
Zeile 563 | Zeile 563 |
---|
$emailnotifycheck = ''; $receivepmscheck = "checked=\"checked\""; $pmpopupcheck = "checked=\"checked\"";
|
$emailnotifycheck = ''; $receivepmscheck = "checked=\"checked\""; $pmpopupcheck = "checked=\"checked\"";
|
$pmnotifycheck = '';
| $emailpmnotifycheck = '';
|
$invisiblecheck = ''; if($mybb->settings['dstcorrection'] == "yes") {
| $invisiblecheck = ''; if($mybb->settings['dstcorrection'] == "yes") {
|
Zeile 615 | Zeile 615 |
---|
if($mybb->input['username']) {
|
if($mybb->input['username']) {
|
$query = $db->simple_select(TABLE_PREFIX."users", "*", "username='".$db->escape_string($mybb->input['username'])."'");
| $query = $db->simple_select(TABLE_PREFIX."users", "*", "LOWER(username)='".$db->escape_string(my_strtolower($mybb->input['username']))."'");
|
$user = $db->fetch_array($query); if(!$user['username']) {
| $user = $db->fetch_array($query); if(!$user['username']) {
|
Zeile 799 | Zeile 799 |
---|
if($mybb->input['username']) {
|
if($mybb->input['username']) {
|
$query = $db->simple_select(TABLE_PREFIX."users", "*", "username='".$db->escape_string($mybb->input['username'])."'");
| $query = $db->simple_select(TABLE_PREFIX."users", "*", "LOWER(username)='".$db->escape_string(my_strtolower($mybb->input['username']))."'");
|
$user = $db->fetch_array($query); if(!$user['uid']) {
| $user = $db->fetch_array($query); if(!$user['uid']) {
|
Zeile 902 | Zeile 902 |
---|
}
my_setcookie('loginattempts', 1);
|
}
my_setcookie('loginattempts', 1);
|
$db->delete_query(TABLE_PREFIX."sessions", "ip='".$session->ipaddress."' AND sid != '".$session->sid."'");
| $db->delete_query(TABLE_PREFIX."sessions", "ip='".$db->escape_string($session->ipaddress)."' AND sid != '".$session->sid."'");
|
$newsession = array( "uid" => $user['uid'], "loginattempts" => 1,
| $newsession = array( "uid" => $user['uid'], "loginattempts" => 1,
|
Zeile 912 | Zeile 912 |
---|
// Temporarily set the cookie remember option for the login cookies $mybb->user['remember'] = $user['remember'];
|
// Temporarily set the cookie remember option for the login cookies $mybb->user['remember'] = $user['remember'];
|
my_setcookie("mybbuser", $user['uid']."_".$user['loginkey']); my_setcookie("sid", $session->sid, -1);
| my_setcookie("mybbuser", $user['uid']."_".$user['loginkey'], null, true); my_setcookie("sid", $session->sid, -1, true);
|
if(function_exists("loggedIn")) {
| if(function_exists("loggedIn")) {
|
Zeile 943 | Zeile 943 |
---|
if($mybb->input['uid'] == $mybb->user['uid']) { my_unsetcookie("mybbuser");
|
if($mybb->input['uid'] == $mybb->user['uid']) { my_unsetcookie("mybbuser");
|
my_setcookie("sid", 0, -1);
| my_unsetcookie("sid");
|
if($mybb->user['uid']) { $time = time();
| if($mybb->user['uid']) { $time = time();
|
Zeile 1046 | Zeile 1046 |
---|
$lang->users_additional_info = sprintf($lang->users_additional_info, $memprofile['username']); $lang->users_signature = sprintf($lang->users_signature, $memprofile['username']); $lang->send_user_email = sprintf($lang->send_user_email, $memprofile['username']);
|
$lang->users_additional_info = sprintf($lang->users_additional_info, $memprofile['username']); $lang->users_signature = sprintf($lang->users_signature, $memprofile['username']); $lang->send_user_email = sprintf($lang->send_user_email, $memprofile['username']);
|
if(!empty($memprofile['awayreason'])) { $awayreason = $memprofile['awayreason']; } else { $awayreason = $lang->away_no_reason; }
| |
if($memprofile['avatar']) {
| if($memprofile['avatar']) {
|
Zeile 1091 | Zeile 1082 |
---|
}
if($memprofile['signature'])
|
}
if($memprofile['signature'])
|
{
| {
|
$sig_parser = array( "allow_html" => $mybb->settings['sightml'], "allow_mycode" => $mybb->settings['sigmycode'],
| $sig_parser = array( "allow_html" => $mybb->settings['sightml'], "allow_mycode" => $mybb->settings['sigmycode'],
|
Zeile 1110 | Zeile 1101 |
---|
{ $ppd = $memprofile['postnum']; }
|
{ $ppd = $memprofile['postnum']; }
|
$query = $db->simple_select(TABLE_PREFIX."posts", "COUNT(pid) AS posts", "visible > 0"); $posts = $db->fetch_field($query, "posts");
| $stats = $cache->read("stats"); $posts = $stats['numposts'];
|
if($posts == 0) { $percent = "0";
| if($posts == 0) { $percent = "0";
|
Zeile 1128 | Zeile 1119 |
---|
if(!empty($memprofile['icq'])) { $memprofile['icq'] = intval($memprofile['icq']);
|
if(!empty($memprofile['icq'])) { $memprofile['icq'] = intval($memprofile['icq']);
|
}
| }
|
else { $memprofile['icq'] = '';
| else { $memprofile['icq'] = '';
|
Zeile 1138 | Zeile 1129 |
---|
{ $lang->away_note = sprintf($lang->away_note, $memprofile['username']); $awaydate = my_date($mybb->settings['dateformat'], $memprofile['awaydate']);
|
{ $lang->away_note = sprintf($lang->away_note, $memprofile['username']); $awaydate = my_date($mybb->settings['dateformat'], $memprofile['awaydate']);
|
$memprofile['awayreason'] = htmlspecialchars_uni($memprofile['awayreason']);
| if(!empty($memprofile['awayreason'])) { $awayreason = htmlspecialchars_uni($memprofile['awayreason']); } else { $awayreason = $lang->away_no_reason; }
|
if($memprofile['returndate'] == '') { $returndate = "$lang->unknown";
|
if($memprofile['returndate'] == '') { $returndate = "$lang->unknown";
|
}
| }
|
else
|
else
|
{
| {
|
$returnhome = explode("-", $memprofile['returndate']); $returnmkdate = mktime(0, 0, 0, $returnhome[1], $returnhome[0], $returnhome[2]); $returndate = my_date($mybb->settings['dateformat'], $returnmkdate);
| $returnhome = explode("-", $memprofile['returndate']); $returnmkdate = mktime(0, 0, 0, $returnhome[1], $returnhome[0], $returnhome[2]); $returndate = my_date($mybb->settings['dateformat'], $returnmkdate);
|
Zeile 1183 | Zeile 1181 |
---|
$membday = explode("-", $memprofile['birthday']); if($membday[2]) {
|
$membday = explode("-", $memprofile['birthday']); if($membday[2]) {
|
| $year = my_date("Y"); $lang->membdayage = sprintf($lang->membdayage, get_age($memprofile['birthday'])); $membdayage = $lang->membdayage;
|
if($membday[2] < 1970)
|
if($membday[2] < 1970)
|
{
| {
|
$w_day = get_weekday($membday[1], $membday[0], $membday[2]); $membday = format_bdays($mybb->settings['dateformat'], $membday[1], $membday[0], $membday[2], $w_day);
|
$w_day = get_weekday($membday[1], $membday[0], $membday[2]); $membday = format_bdays($mybb->settings['dateformat'], $membday[1], $membday[0], $membday[2], $w_day);
|
}
| }
|
else { $bdayformat = fix_mktime($mybb->settings['dateformat'], $membday[2]); $membday = mktime(0, 0, 0, $membday[1], $membday[0], $membday[2]); $membday = date($bdayformat, $membday); }
|
else { $bdayformat = fix_mktime($mybb->settings['dateformat'], $membday[2]); $membday = mktime(0, 0, 0, $membday[1], $membday[0], $membday[2]); $membday = date($bdayformat, $membday); }
|
$lang->membdayage = sprintf($lang->membdayage, get_age($memprofile['birthday'])); $membdayage = $lang->membdayage;
| |
} else {
| } else {
|
Zeile 1399 | Zeile 1398 |
---|
{ error_no_permission(); }
|
{ error_no_permission(); }
|
$query = $db->simple_select(TABLE_PREFIX."users", "uid, username, email, hideemail", "username='".$db->escape_string($mybb->input['touser'])."'");
| $query = $db->simple_select(TABLE_PREFIX."users", "uid, username, email, hideemail", "LOWER(username)='".$db->escape_string(my_strtolower($mybb->input['touser']))."'");
|
$emailto = $db->fetch_array($query); if(!$emailto['username']) {
| $emailto = $db->fetch_array($query); if(!$emailto['username']) {
|