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
[Request][Client Error]Look at photo below
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="Alb" data-source="post: 256351" data-attributes="member: 41187"><p>Thats code for global.php</p><p>[CODE]<?php</p><p>//Installation files? - Start</p><p>if(file_exists('ainstall.php'))</p><p>{</p><p> echo 'Go to <a href="install.php">install.php</a>';</p><p> die;</p><p>}</p><p>if(file_exists('aupdate.php'))</p><p>{</p><p> echo 'Go to <a href="update.php">update.php</a>';</p><p> die;</p><p>}</p><p>//Installation files? - End</p><p>define('SEP', DIRECTORY_SEPARATOR);</p><p>$dir = str_replace('register'.SEP, '', dirname(__FILE__).SEP);</p><p>$dir = str_replace('functions'.SEP, '', $dir);</p><p>$dir = str_replace('housekeeping'.SEP, '', $dir);</p><p>define('DIR', $dir);</p><p>define('DOCUMENT_ROOT', DIR.SEP);</p><p>define('INCLUDES', DIR.'inc'.SEP);</p><p>define('WWW', 'http://'.$_SERVER['SERVER_NAME']);</p><p></p><p>session_start();</p><p></p><p>require_once DOCUMENT_ROOT.'config.php';</p><p></p><p>$connect = mysql_connect($host, $username, $password) or die("Could not connect to server, error: ".mysql_error());</p><p>mysql_select_db($dbname, $connect) or die("Could not connect to database, error: ".mysql_error());</p><p></p><p>require_once INCLUDES."class.core.php";</p><p>require_once INCLUDES."class.users.php";</p><p></p><p>$core = new Core();</p><p>$users = new Users();</p><p></p><p>require_once DOCUMENT_ROOT.'lang/'.$language.'.php';</p><p></p><p>define('MAINTENANCE', $core->Maintenance());</p><p></p><p>if(USERNAME_REQUIRED == TRUE && !isset($_SESSION["username"]))</p><p>header("Location: ".WWW."/characters.php");</p><p>if(ACCOUNT_REQUIRED == TRUE && !isset($_SESSION["account"]))</p><p>header("Location: ".WWW."/index.php");</p><p></p><p>$sitename = $core->CmsSetting('cms_name');</p><p></p><p>if(isset($_SESSION["username"]))</p><p>{</p><p>$username = $core->EscapeString($_SESSION['username']);</p><p>if($users->CheckBan($username))</p><p>header($users->BanInfo($username));</p><p>}</p><p></p><p>if(MAINTENANCE && !$users->UserPermission('hk_login', $username) && !defined('MAINTENANCE_PAGE'))</p><p>header("Location: ".WWW."/maintenance.php");</p><p>?>[/CODE]</p></blockquote><p></p>
[QUOTE="Alb, post: 256351, member: 41187"] Thats code for global.php [CODE]<?php //Installation files? - Start if(file_exists('ainstall.php')) { echo 'Go to <a href="install.php">install.php</a>'; die; } if(file_exists('aupdate.php')) { echo 'Go to <a href="update.php">update.php</a>'; die; } //Installation files? - End define('SEP', DIRECTORY_SEPARATOR); $dir = str_replace('register'.SEP, '', dirname(__FILE__).SEP); $dir = str_replace('functions'.SEP, '', $dir); $dir = str_replace('housekeeping'.SEP, '', $dir); define('DIR', $dir); define('DOCUMENT_ROOT', DIR.SEP); define('INCLUDES', DIR.'inc'.SEP); define('WWW', 'http://'.$_SERVER['SERVER_NAME']); session_start(); require_once DOCUMENT_ROOT.'config.php'; $connect = mysql_connect($host, $username, $password) or die("Could not connect to server, error: ".mysql_error()); mysql_select_db($dbname, $connect) or die("Could not connect to database, error: ".mysql_error()); require_once INCLUDES."class.core.php"; require_once INCLUDES."class.users.php"; $core = new Core(); $users = new Users(); require_once DOCUMENT_ROOT.'lang/'.$language.'.php'; define('MAINTENANCE', $core->Maintenance()); if(USERNAME_REQUIRED == TRUE && !isset($_SESSION["username"])) header("Location: ".WWW."/characters.php"); if(ACCOUNT_REQUIRED == TRUE && !isset($_SESSION["account"])) header("Location: ".WWW."/index.php"); $sitename = $core->CmsSetting('cms_name'); if(isset($_SESSION["username"])) { $username = $core->EscapeString($_SESSION['username']); if($users->CheckBan($username)) header($users->BanInfo($username)); } if(MAINTENANCE && !$users->UserPermission('hk_login', $username) && !defined('MAINTENANCE_PAGE')) header("Location: ".WWW."/maintenance.php"); ?>[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
[Request][Client Error]Look at photo below
Top