[HELP] Not Showing users online!

Pocket

Original
Aug 20, 2012
123
14
Hello, Devbest!

I'm here today Because my RevCMS isn't showing how many users are Online!

Here are a few screenshots!

< Screenshot #1
< Screenshot #2


I've googled around but no help!
Also, I Can only run the emulator in debug.. Won't let me run it Normally!
Thanks! :up:
 

Pocket

Original
Aug 20, 2012
123
14
What Version of Phoenix would you recommend? / Link
I says [0] Connection from [TCP IP HERE]
And then [1] Connection Dropped from [My TCP IP]

class.core
  1. <?php

    namespace Revolution;
    if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); }
    class core implements iCore
    {

    final public function getOnline()
    {
    global $engine;
    return $engine->result("SELECT users_online FROM server_status");
    }

    final public function getStatus()
    {
    global $engine;
    return $engine->result("SELECT status FROM server_status");
    }

    final public function systemError($who, $txt)
    {
    die('<b>' . $who . ' - RevCMS: </b><br /> <center>' . $txt . '</center>');
    }

    final public function handleCall($k)
    {
    global $users, $template, $_CONFIG;

    if($_CONFIG['hotel']['in_maint'] == false)
    {
    if(!isset($_SESSION['user']['id']))
    {
    switch($k)
    {
    case "index":
    case null:
    case "login":
    $users->login();
    break;

    case "register":
    $users->register();
    break;


    case "maintenance":
    case "ToS":
    //
    break;

    case "me":
    case "account":
    case "news":
    header('Location: '.$_CONFIG['hotel']['url'].'/index');
    exit;
    break;

    default:
    //Nothing
    break;
    }
    }
    else
    {
    if($_SESSION['user']['ip_last'] != $_SERVER['REMOTE_ADDR'])
    {
    header('Location: '.$_CONFIG['hotel']['url'].'/logout');
    }

    switch($k)
    {
    case "index":
    case null:
    header('Location: '.$_CONFIG['hotel']['url'].'/me');
    exit;
    break;

    case "register":
    header('Location: '.$_CONFIG['hotel']['url'].'/me');
    exit;
    break;

    case "forgot":
    header('Location: '.$_CONFIG['hotel']['url'].'/me');
    exit;
    break;

    case "client":
    $users->createSSO($_SESSION['user']['id']);
    $users->updateUser($_SESSION['user']['id'], 'ip_last', $_SERVER['REMOTE_ADDR']);
    $template->setParams('sso', $users->getInfo($_SESSION['user']['id'], 'auth_ticket'));
    break;

    case "help":
    $users->help();
    break;

    case "account":
    $users->updateAccount();
    break;

    default:
    //nothing
    break;
    }
    }
    }
    elseif($_GET['url'] != 'maintenance')
    {
    header('Location: '.$_CONFIG['hotel']['url'].'/maintenance');
    exit;
    }
    }

    final public function handleCallHK($k)
    {
    global $users, $engine, $_CONFIG;

    if($_SESSION["in_hk"] != true)
    {
    if(isset($_SESSION['user']['id']))
    {
    if($k == 'login')
    {
    $users->loginHK();
    }
    else
    {
    header("Location:".$_CONFIG['hotel']['url']."/ase/login");
    exit;
    }
    }
    else
    {
    header("Location:".$_CONFIG['hotel']['url']."/index");
    exit;
    }
    }
    else
    {
    if(!isset($k))
    {
    header("Location:".$_CONFIG['hotel']['url']."/ase/dash");
    exit;
    }
    else
    {
    if($k == 'balist')
    {

    if(isset($_GET["unban"]))
    {
    $user = $engine->secure($_GET["unban"]);
    $engine->query("DELETE FROM bans WHERE id = '" . $user . "'");
    header("Location: ".$_CONFIG['hotel']['url']."/ase/banlist");
    exit;
    }
    }
    }
    }
    }

    final public function hashed($password)
    {
    return MD5($password);
    }
    }
    ?>
 

GarettM

Posting Freak
Aug 5, 2010
833
136
What Version of Phoenix would you recommend? / Link
I says [0] Connection from [TCP IP HERE]
And then [1] Connection Dropped from [My TCP IP]

class.core
  1. <?php

    namespace Revolution;
    if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); }
    class core implements iCore
    {

    final public function getOnline()
    {
    global $engine;
    return $engine->result("SELECT users_online FROM server_status");
    }

    final public function getStatus()
    {
    global $engine;
    return $engine->result("SELECT status FROM server_status");
    }

    final public function systemError($who, $txt)
    {
    die('<b>' . $who . ' - RevCMS: </b><br /> <center>' . $txt . '</center>');
    }

    final public function handleCall($k)
    {
    global $users, $template, $_CONFIG;

    if($_CONFIG['hotel']['in_maint'] == false)
    {
    if(!isset($_SESSION['user']['id']))
    {
    switch($k)
    {
    case "index":
    case null:
    case "login":
    $users->login();
    break;

    case "register":
    $users->register();
    break;


    case "maintenance":
    case "ToS":
    //
    break;

    case "me":
    case "account":
    case "news":
    header('Location: '.$_CONFIG['hotel']['url'].'/index');
    exit;
    break;

    default:
    //Nothing
    break;
    }
    }
    else
    {
    if($_SESSION['user']['ip_last'] != $_SERVER['REMOTE_ADDR'])
    {
    header('Location: '.$_CONFIG['hotel']['url'].'/logout');
    }

    switch($k)
    {
    case "index":
    case null:
    header('Location: '.$_CONFIG['hotel']['url'].'/me');
    exit;
    break;

    case "register":
    header('Location: '.$_CONFIG['hotel']['url'].'/me');
    exit;
    break;

    case "forgot":
    header('Location: '.$_CONFIG['hotel']['url'].'/me');
    exit;
    break;

    case "client":
    $users->createSSO($_SESSION['user']['id']);
    $users->updateUser($_SESSION['user']['id'], 'ip_last', $_SERVER['REMOTE_ADDR']);
    $template->setParams('sso', $users->getInfo($_SESSION['user']['id'], 'auth_ticket'));
    break;

    case "help":
    $users->help();
    break;

    case "account":
    $users->updateAccount();
    break;

    default:
    //nothing
    break;
    }
    }
    }
    elseif($_GET['url'] != 'maintenance')
    {
    header('Location: '.$_CONFIG['hotel']['url'].'/maintenance');
    exit;
    }
    }

    final public function handleCallHK($k)
    {
    global $users, $engine, $_CONFIG;

    if($_SESSION["in_hk"] != true)
    {
    if(isset($_SESSION['user']['id']))
    {
    if($k == 'login')
    {
    $users->loginHK();
    }
    else
    {
    header("Location:".$_CONFIG['hotel']['url']."/ase/login");
    exit;
    }
    }
    else
    {
    header("Location:".$_CONFIG['hotel']['url']."/index");
    exit;
    }
    }
    else
    {
    if(!isset($k))
    {
    header("Location:".$_CONFIG['hotel']['url']."/ase/dash");
    exit;
    }
    else
    {
    if($k == 'balist')
    {

    if(isset($_GET["unban"]))
    {
    $user = $engine->secure($_GET["unban"]);
    $engine->query("DELETE FROM bans WHERE id = '" . $user . "'");
    header("Location: ".$_CONFIG['hotel']['url']."/ase/banlist");
    exit;
    }
    }
    }
    }
    }

    final public function hashed($password)
    {
    return MD5($password);
    }
    }
    ?>
Please use pastbin :)
Also another release in the release/emu section should work.
 

Pocket

Original
Aug 20, 2012
123
14
So. after Trying GTE that worked, it showed how many users were online (I'd stick to GTE bte i've heard of many exploits) And i can't find a decent Catalogue for it/Wabbo catalogue doesn't work on it.
 

Data

Posting Freak
May 19, 2013
593
97
So. after Trying GTE that worked, it showed how many users were online (I'd stick to GTE bte i've heard of many exploits) And i can't find a decent Catalogue for it/Wabbo catalogue doesn't work on it.
Modify it's structure(It's basic shit) lol only adding like 3 columns.
 

Pocket

Original
Aug 20, 2012
123
14
So, i updated the cata etc on GTE changed the structure etc now i have an SSO Error, i tried using a backup that didn't help, then i tried going back to phoenix and it still doesn't show how many are online..
 

Users who are viewing this thread

Top