Skip to content

Commit

Permalink
Issue #5064 - Added user object vars.
Browse files Browse the repository at this point in the history
  • Loading branch information
CaMer0n committed Sep 8, 2023
1 parent 44526b4 commit 001799c
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions class2.php
Expand Up @@ -1640,12 +1640,16 @@ function init_session()
define('e_CLASS_REGEXP', '(^|,)(253|254|250|251|0)(,|$)');
define('e_NOBODY_REGEXP', '(^|,)255(,|$)');

/* $user->set('user_id', 1);
$user->set('user_name','e107-cli');
$user->set('user_admin', 1);
$user->set('user_perms', '0');
$user->set('user_class', '');
$user->set('user_join', '');*/
if(deftrue('USE_NEW_GETPERMS')) // Add to e107_config.php.
{
$user->set('user_id', 1);
$user->set('user_name','e107-cli');
$user->set('user_admin', 1);
$user->set('user_perms', '0');
$user->set('user_class', '');
$user->set('user_join', '');
}

return;
}

Expand Down

0 comments on commit 001799c

Please sign in to comment.