1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 19:30:25 +02:00

Mostly some LANs relating to 'comments' to synchronize with v1. USERJOINED constant added to sync with v1 also.

This commit is contained in:
CaMer0n
2012-07-21 03:55:04 +00:00
parent 794783b692
commit 09f789b09d
8 changed files with 41 additions and 8 deletions

View File

@@ -1549,6 +1549,7 @@ function init_session()
define('USEREMAIL', '');
define('USERCLASS_LIST', '');
define('USERCLASS', '');
define('USERJOINED', '');
return;
}
@@ -1580,12 +1581,14 @@ function init_session()
// we shouldn't use getValue() here, it's there for e.g. shortcodes, profile page render etc.
define('USERID', $user->getId());
define('USERNAME', $user->get('user_name'));
// define('USERURL', $user->get('user_homepage', false)); OLD?
define('USERURL', $user->get('user_homepage', false)); //required for BC
define('USEREMAIL', $user->get('user_email'));
define('USER', true);
define('USERCLASS', $user->get('user_class'));
define('USERIMAGE', $user->get('user_image'));
define('USERPHOTO', $user->get('user_sess'));
define('USERJOINED', $user->get('user_join'));
define('USERVISITS', $user->get('user_visits'));
define('ADMIN', $user->isAdmin());
define('ADMINID', $user->getAdminId());