1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-24 08:22:07 +02:00

USERSESS double-booked - added USERPHOTO define

This commit is contained in:
e107steved
2008-01-09 22:00:23 +00:00
parent b635bdd84d
commit f44c6def59
2 changed files with 6 additions and 6 deletions

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/class2.php,v $
| $Revision: 1.42 $
| $Date: 2008-01-06 22:16:37 $
| $Author: mcfly_e107 $
| $Revision: 1.43 $
| $Date: 2008-01-09 22:00:22 $
| $Author: e107steved $
+----------------------------------------------------------------------------+
*/
//
@@ -1221,7 +1221,7 @@ function init_session() {
define("USERREALM", $result['user_realm']);
define("USERVIEWED", $result['user_viewed']);
define("USERIMAGE", $result['user_image']);
define("USERSESS", $result['user_sess']);
define("USERPHOTO", $result['user_sess']);
$update_ip = ($result['user_ip'] != USERIP ? ", user_ip = '".USERIP."'" : "");

View File

@@ -7,7 +7,7 @@ if(is_numeric($parm))
{
if(intval($parm) == USERID)
{
$image = USERSESS;
$image = USERPHOTO;
}
else
{
@@ -21,7 +21,7 @@ elseif($parm)
}
else
{
$image = USERSESS;
$image = USERPHOTO;
}
if($image && file_exists(e_FILE."public/avatars/".$image))
{