Zeile 6 | Zeile 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: member.php 2932 2007-03-10 05:48:55Z chris $
| * $Id: member.php 3596 2008-01-20 08:27:39Z Tikitiki $
|
*/
define("IN_MYBB", 1);
| */
define("IN_MYBB", 1);
|
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 940 | Zeile 940 |
---|
{ redirect("index.php", $lang->redirect_alreadyloggedout); }
|
{ redirect("index.php", $lang->redirect_alreadyloggedout); }
|
if($mybb->input['uid'] == $mybb->user['uid'])
| // Check session ID if we have one if($mybb->input['sid'] && $mybb->input['sid'] != $session->sid)
|
{
|
{
|
my_unsetcookie("mybbuser"); my_unsetcookie("sid"); if($mybb->user['uid']) { $time = time(); $lastvisit = array( "lastactive" => $time-900, "lastvisit" => $time, ); $db->update_query(TABLE_PREFIX."users", $lastvisit, "uid='".$mybb->user['uid']."'"); $db->delete_query(TABLE_PREFIX."sessions", "sid='".$session->sid."'");
if(function_exists("loggedOut")) { loggedOut($mybb->user['uid']); } }
$plugins->run_hooks("member_logout_end");
redirect("index.php", $lang->redirect_loggedout);
| error($lang->error_notloggedout); } // Otherwise, check logoutkey else if($mybb->input['logoutkey'] != $mybb->user['logoutkey']) { error($lang->error_notloggedout);
|
}
|
}
|
else
| my_unsetcookie("mybbuser"); my_unsetcookie("sid"); if($mybb->user['uid'])
|
{
|
{
|
error($lang->error_notloggedout);
| $time = time(); $lastvisit = array( "lastactive" => $time-900, "lastvisit" => $time, ); $db->update_query(TABLE_PREFIX."users", $lastvisit, "uid='".$mybb->user['uid']."'"); $db->delete_query(TABLE_PREFIX."sessions", "sid='".$session->sid."'");
|
}
|
}
|
| $plugins->run_hooks("member_logout_end");
redirect("index.php", $lang->redirect_loggedout);
|
} elseif($mybb->input['action'] == "profile") { $plugins->run_hooks("member_profile_start");
if($mybb->usergroup['canviewprofiles'] == "no")
|
} elseif($mybb->input['action'] == "profile") { $plugins->run_hooks("member_profile_start");
if($mybb->usergroup['canviewprofiles'] == "no")
|
{
| {
|
error_no_permission(); } if($mybb->input['uid'] == "lastposter")
| error_no_permission(); } if($mybb->input['uid'] == "lastposter")
|
Zeile 986 | Zeile 985 |
---|
$uid = $post['uid']; } elseif($mybb->input['fid'])
|
$uid = $post['uid']; } elseif($mybb->input['fid'])
|
{
| {
|
$flist = ''; $query = $db->simple_select(TABLE_PREFIX."forums", "fid", "INSTR(CONCAT(',',parentlist,','),',".intval($mybb->input['fid']).",') > 0"); while($forum = $db->fetch_array($query))
| $flist = ''; $query = $db->simple_select(TABLE_PREFIX."forums", "fid", "INSTR(CONCAT(',',parentlist,','),',".intval($mybb->input['fid']).",') > 0"); while($forum = $db->fetch_array($query))
|
Zeile 1003 | Zeile 1002 |
---|
$query = $db->simple_select(TABLE_PREFIX."posts", "uid", "tid='$tid' AND visible = 1", array('order_by' => 'dateline', 'order_dir' => 'DESC', 'limit' => '1')); $post = $db->fetch_array($query); $uid = $post['uid'];
|
$query = $db->simple_select(TABLE_PREFIX."posts", "uid", "tid='$tid' AND visible = 1", array('order_by' => 'dateline', 'order_dir' => 'DESC', 'limit' => '1')); $post = $db->fetch_array($query); $uid = $post['uid'];
|
}
| }
|
} else { if($mybb->input['uid']) { $uid = intval($mybb->input['uid']);
|
} else { if($mybb->input['uid']) { $uid = intval($mybb->input['uid']);
|
}
| }
|
else { $uid = $mybb->user['uid'];
|
else { $uid = $mybb->user['uid'];
|
} }
| } }
|
$query = $db->simple_select(TABLE_PREFIX."users", "*", "uid='$uid'"); $memprofile = $db->fetch_array($query);
| $query = $db->simple_select(TABLE_PREFIX."users", "*", "uid='$uid'"); $memprofile = $db->fetch_array($query);
|
Zeile 1075 | Zeile 1074 |
---|
{ $memprofile['website'] = htmlspecialchars_uni($memprofile['website']); $website = "<a href=\"$memprofile[website]\" target=\"_blank\">$memprofile[website]</a>";
|
{ $memprofile['website'] = htmlspecialchars_uni($memprofile['website']); $website = "<a href=\"$memprofile[website]\" target=\"_blank\">$memprofile[website]</a>";
|
}
| }
|
else { $website = '';
| else { $website = '';
|
Zeile 1132 | Zeile 1131 |
---|
if(!empty($memprofile['awayreason'])) { $awayreason = htmlspecialchars_uni($memprofile['awayreason']);
|
if(!empty($memprofile['awayreason'])) { $awayreason = htmlspecialchars_uni($memprofile['awayreason']);
|
} else {
| } else {
|
$awayreason = $lang->away_no_reason; } if($memprofile['returndate'] == '')
|
$awayreason = $lang->away_no_reason; } if($memprofile['returndate'] == '')
|
{
| {
|
$returndate = "$lang->unknown"; } else
| $returndate = "$lang->unknown"; } else
|
Zeile 1146 | Zeile 1145 |
---|
$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);
|
}
| }
|
eval("\$awaybit = \"".$templates->get("member_profile_away")."\";"); } if($memprofile['dst'] == "yes")
| eval("\$awaybit = \"".$templates->get("member_profile_away")."\";"); } if($memprofile['dst'] == "yes")
|
Zeile 1164 | Zeile 1163 |
---|
$localtime = sprintf($lang->local_time_format, $memlocaldate, $memlocaltime);
if($memprofile['lastactive'])
|
$localtime = sprintf($lang->local_time_format, $memlocaldate, $memlocaltime);
if($memprofile['lastactive'])
|
{
| {
|
$memlastvisitdate = my_date($mybb->settings['dateformat'], $memprofile['lastactive']); $memlastvisitsep = ', '; $memlastvisittime = my_date($mybb->settings['timeformat'], $memprofile['lastactive']);
|
$memlastvisitdate = my_date($mybb->settings['dateformat'], $memprofile['lastactive']); $memlastvisitsep = ', '; $memlastvisittime = my_date($mybb->settings['timeformat'], $memprofile['lastactive']);
|
}
| }
|
else { $memlastvisitdate = $lang->lastvisit_never;
| else { $memlastvisitdate = $lang->lastvisit_never;
|
Zeile 1181 | Zeile 1180 |
---|
$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) { $w_day = get_weekday($membday[1], $membday[0], $membday[2]);
| if($membday[2] < 1970) { $w_day = get_weekday($membday[1], $membday[0], $membday[2]);
|
Zeile 1192 | Zeile 1194 |
---|
$membday = mktime(0, 0, 0, $membday[1], $membday[0], $membday[2]); $membday = date($bdayformat, $membday); }
|
$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 1281 | Zeile 1281 |
---|
$query = $db->simple_select(TABLE_PREFIX."userfields", "*", "ufid='$uid'"); $userfields = $db->fetch_array($query); $customfields = '';
|
$query = $db->simple_select(TABLE_PREFIX."userfields", "*", "ufid='$uid'"); $userfields = $db->fetch_array($query); $customfields = '';
|
$bgcolor = trow1;
| $bgcolor = "trow1";
|
// If this user is an Administrator or a Moderator then we wish to show all profile fields if($mybb->usergroup['cancp'] == "yes" || $mybb->usergroup['issupermod'] == "yes" || $mybb->usergroup['gid'] == 6) {
| // If this user is an Administrator or a Moderator then we wish to show all profile fields if($mybb->usergroup['cancp'] == "yes" || $mybb->usergroup['issupermod'] == "yes" || $mybb->usergroup['gid'] == 6) {
|
Zeile 1391 | Zeile 1391 |
---|
} elseif($mybb->input['action'] == "do_emailuser" && $mybb->request_method == "post") {
|
} elseif($mybb->input['action'] == "do_emailuser" && $mybb->request_method == "post") {
|
| // Verify incoming POST request verify_post_check($mybb->input['my_post_key']);
|
$plugins->run_hooks("member_do_emailuser_start");
if($mybb->usergroup['cansendemail'] == "no")
| $plugins->run_hooks("member_do_emailuser_start");
if($mybb->usergroup['cansendemail'] == "no")
|