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 3160 2007-06-25 21:12:24Z CraKteR $
| * $Id: member.php 3478 2007-11-15 04:11:36Z Tikitiki $
|
*/
define("IN_MYBB", 1);
| */
define("IN_MYBB", 1);
|
Zeile 940 | Zeile 940 |
---|
{ redirect("index.php", $lang->redirect_alreadyloggedout); }
|
{ redirect("index.php", $lang->redirect_alreadyloggedout); }
|
if($mybb->input['uid'] == $mybb->user['uid'] && $mybb->input['sid'] == $session->sid)
| // 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); } else
| error($lang->error_notloggedout); } // Otherwise, check logoutkey else if($mybb->input['logoutkey'] != $mybb->user['logoutkey'])
|
{ error($lang->error_notloggedout); }
|
{ error($lang->error_notloggedout); }
|
| 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."'"); } $plugins->run_hooks("member_logout_end");
redirect("index.php", $lang->redirect_loggedout);
|
} elseif($mybb->input['action'] == "profile") {
| } elseif($mybb->input['action'] == "profile") {
|
Zeile 1282 | 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) {
|