First pass to add new user SQL model
This commit is contained in:
@@ -6,11 +6,11 @@ ini_set("session.cookie_lifetime",60*60*24*30);
|
||||
session_start();
|
||||
|
||||
$user = new User();
|
||||
$user->role == 0; // All users are visitors
|
||||
$user->rank == 'visitor'; // All users are visitors
|
||||
|
||||
if(isset($_SESSION['userid'])) {
|
||||
$user->checkID($_SESSION['userid']);
|
||||
if ($user->id != 0) {
|
||||
if ($user->get_id() != 0) {
|
||||
$user->updateLoginDate();
|
||||
$user->populate();
|
||||
setlocale(LC_ALL, $config['locales'][$user->locale][4]);
|
||||
|
||||
Reference in New Issue
Block a user