mirror of
https://github.com/e107inc/e107.git
synced 2025-07-25 17:01:43 +02:00
USERSESS double-booked - added USERPHOTO define
This commit is contained in:
@@ -11,9 +11,9 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/class2.php,v $
|
| $Source: /cvs_backup/e107_0.8/class2.php,v $
|
||||||
| $Revision: 1.42 $
|
| $Revision: 1.43 $
|
||||||
| $Date: 2008-01-06 22:16:37 $
|
| $Date: 2008-01-09 22:00:22 $
|
||||||
| $Author: mcfly_e107 $
|
| $Author: e107steved $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
//
|
//
|
||||||
@@ -1221,7 +1221,7 @@ function init_session() {
|
|||||||
define("USERREALM", $result['user_realm']);
|
define("USERREALM", $result['user_realm']);
|
||||||
define("USERVIEWED", $result['user_viewed']);
|
define("USERVIEWED", $result['user_viewed']);
|
||||||
define("USERIMAGE", $result['user_image']);
|
define("USERIMAGE", $result['user_image']);
|
||||||
define("USERSESS", $result['user_sess']);
|
define("USERPHOTO", $result['user_sess']);
|
||||||
|
|
||||||
$update_ip = ($result['user_ip'] != USERIP ? ", user_ip = '".USERIP."'" : "");
|
$update_ip = ($result['user_ip'] != USERIP ? ", user_ip = '".USERIP."'" : "");
|
||||||
|
|
||||||
|
@@ -7,7 +7,7 @@ if(is_numeric($parm))
|
|||||||
{
|
{
|
||||||
if(intval($parm) == USERID)
|
if(intval($parm) == USERID)
|
||||||
{
|
{
|
||||||
$image = USERSESS;
|
$image = USERPHOTO;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -21,7 +21,7 @@ elseif($parm)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$image = USERSESS;
|
$image = USERPHOTO;
|
||||||
}
|
}
|
||||||
if($image && file_exists(e_FILE."public/avatars/".$image))
|
if($image && file_exists(e_FILE."public/avatars/".$image))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user