Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
[HELP] Not Showing users online!
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Pocket" data-source="post: 294995" data-attributes="member: 20940"><p>What Version of Phoenix would you recommend? / Link</p><p>I says [0] Connection from [TCP IP HERE]</p><p>And then [1] Connection Dropped from [My TCP IP]</p><p></p><p>class.core</p><ol> <li data-xf-list-type="ol"><span style="font-size: 12px">[SPOILER="class.core"]<br /> <?php <br /> <br /> namespace Revolution;<br /> if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); }<br /> class core implements iCore<br /> {<br /> <br /> final public function getOnline()<br /> {<br /> global $engine;<br /> return $engine->result("SELECT users_online FROM server_status");<br /> }<br /> <br /> final public function getStatus()<br /> {<br /> global $engine;<br /> return $engine->result("SELECT status FROM server_status");<br /> }<br /> <br /> final public function systemError($who, $txt)<br /> {<br /> die('<b>' . $who . ' - RevCMS: </b><br /> <center>' . $txt . '</center>');<br /> }<br /> <br /> final public function handleCall($k)<br /> {<br /> global $users, $template, $_CONFIG;<br /> <br /> if($_CONFIG['hotel']['in_maint'] == false)<br /> {<br /> if(!isset($_SESSION['user']['id']))<br /> {<br /> switch($k)<br /> {<br /> case "index":<br /> case null:<br /> case "login":<br /> $users->login();<br /> break;<br /> <br /> case "register":<br /> $users->register();<br /> break;<br /> <br /> <br /> case "maintenance":<br /> case "ToS":<br /> //<br /> break;<br /> <br /> case "me":<br /> case "account":<br /> case "news":<br /> header('Location: '.$_CONFIG['hotel']['url'].'/index');<br /> exit;<br /> break;<br /> <br /> default:<br /> //Nothing<br /> break;<br /> }<br /> }<br /> else<br /> {<br /> if($_SESSION['user']['ip_last'] != $_SERVER['REMOTE_ADDR'])<br /> {<br /> header('Location: '.$_CONFIG['hotel']['url'].'/logout');<br /> }<br /> <br /> switch($k)<br /> {<br /> case "index":<br /> case null:<br /> header('Location: '.$_CONFIG['hotel']['url'].'/me');<br /> exit;<br /> break;<br /> <br /> case "register":<br /> header('Location: '.$_CONFIG['hotel']['url'].'/me');<br /> exit;<br /> break;<br /> <br /> case "forgot":<br /> header('Location: '.$_CONFIG['hotel']['url'].'/me');<br /> exit;<br /> break;<br /> <br /> case "client":<br /> $users->createSSO($_SESSION['user']['id']);<br /> $users->updateUser($_SESSION['user']['id'], 'ip_last', $_SERVER['REMOTE_ADDR']);<br /> $template->setParams('sso', $users->getInfo($_SESSION['user']['id'], 'auth_ticket'));<br /> break;<br /> <br /> case "help":<br /> $users->help();<br /> break;<br /> <br /> case "account":<br /> $users->updateAccount();<br /> break;<br /> <br /> default:<br /> //nothing<br /> break;<br /> }<br /> }<br /> }<br /> elseif($_GET['url'] != 'maintenance')<br /> {<br /> header('Location: '.$_CONFIG['hotel']['url'].'/maintenance');<br /> exit;<br /> }<br /> }<br /> <br /> final public function handleCallHK($k)<br /> {<br /> global $users, $engine, $_CONFIG;<br /> <br /> if($_SESSION["in_hk"] != true)<br /> {<br /> if(isset($_SESSION['user']['id']))<br /> {<br /> if($k == 'login')<br /> {<br /> $users->loginHK();<br /> }<br /> else<br /> {<br /> header("Location:".$_CONFIG['hotel']['url']."/ase/login");<br /> exit;<br /> }<br /> }<br /> else<br /> {<br /> header("Location:".$_CONFIG['hotel']['url']."/index");<br /> exit;<br /> }<br /> }<br /> else<br /> {<br /> if(!isset($k))<br /> {<br /> header("Location:".$_CONFIG['hotel']['url']."/ase/dash");<br /> exit;<br /> }<br /> else<br /> {<br /> if($k == 'balist')<br /> {<br /> <br /> if(isset($_GET["unban"]))<br /> {<br /> $user = $engine->secure($_GET["unban"]);<br /> $engine->query("DELETE FROM bans WHERE id = '" . $user . "'");<br /> header("Location: ".$_CONFIG['hotel']['url']."/ase/banlist");<br /> exit;<br /> } <br /> }<br /> }<br /> }<br /> }<br /> <br /> final public function hashed($password)<br /> {<br /> return MD5($password);<br /> }<br /> }<br /> ?><br /> [/SPOILER]</span></li> </ol></blockquote><p></p>
[QUOTE="Pocket, post: 294995, member: 20940"] 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 [LIST=1] [*][SIZE=3][SPOILER="class.core"] <?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); } } ?> [/SPOILER][/SIZE] [/LIST] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
[HELP] Not Showing users online!
Top