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 ASAP] Points Shop redirects to /me page [Please!]
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="TinyBuilder" data-source="post: 170939" data-attributes="member: 14249"><p>I use DeltaCMS. And yeah it is on the tab[DOUBLEPOST=1357736408,1357736318][/DOUBLEPOST]</p><p> </p><p>Sorry not the me.php page :L</p><p> </p><p>Global.php:</p><p> </p><p>[PHP]<?php</p><p>//Simple but working coding :O//</p><p>if($index !== true){</p><p> exit("Do not underestimate DeltaCMS. It has advanced security.");</p><p>}</p><p> </p><p>//Defines the htdocs(for XAMPP) or wwwroot(for IIS) path//</p><p>$docs_split = explode('core', __FILE__);</p><p>if(isset($docs_split[0])){</p><p> define('root', $docs_split[0]); // New Method //</p><p>} else {</p><p> define('D_S', DIRECTORY_SEPARATOR); // Old Method //</p><p> define('root', str_replace(array('\core'.D_S, '\style'.D_S), '', dirname(__FILE__).D_S).D_S); // Old Method //</p><p>}</p><p> </p><p> </p><p>//Includes config//</p><p>require_once root.'core/config.php';</p><p> </p><p>//Gives error if config isn't correct//</p><p>if(!isset($sitename) || !isset($style) || !isset($maintenance) || !isset($debug)){</p><p> exit("<b>Fatal Error</b>: Configuration file isn't correct!");</p><p>}</p><p> </p><p> </p><p>//Gives error if style doesn't exist//</p><p>if(!file_exists('style/'.$style.'/index.php')){</p><p> if($debug == true){</p><p> exit("<b>Wrong Style!</b> DeltaCMS will exit.");</p><p> } else {</p><p> exit("Put debug on for error information..");</p><p> }</p><p>}</p><p> </p><p>//With this you can use $_SESSIONs//</p><p>session_start();</p><p> </p><p>//With this you can use $_COOKIEs - Not working yet//</p><p>$_COOKIE = array();</p><p> </p><p> </p><p>//The exploit-filter functions//</p><p>function clean($txt){ return stripslashes(trim($txt)); }</p><p>function X($txt){ return mysql_real_escape_string(clean($txt)); }</p><p> </p><p> </p><p>//Connects to MySQL//</p><p>if(!isset($debug) || $debug == true){</p><p> error_reporting(E_ALL);</p><p> $mysql = mysql_connect($dbhost, $dbuser, $dbpass) or die("Can't connect to the mysql host. Error: ".mysql_error());</p><p> mysql_select_db($dbname, $mysql) or die("Error: ".mysql_error());</p><p>} else {</p><p> error_reporting(0);</p><p> $mysql = mysql_connect($dbhost, $dbuser, $dbpass) or die("Put debug on for error information..");</p><p> mysql_select_db($dbname, $mysql) or die("Put debug on for error information..");</p><p>}</p><p> </p><p>//Auto defines the Site: No config needed :O//</p><p>$site = 'http://'.X($_SERVER['SERVER_NAME']);</p><p> </p><p> </p><p>// For Proxy / CloudFlare / IIS //</p><p>if(isset($_SERVER['HTTP_CF_CONNECTING_IP'])) { $_SERVER['REMOTE_ADDR'] = X($_SERVER['HTTP_CF_CONNECTING_IP']); }</p><p>if(isset($_SERVER['HTTP_CLIENT_IP'])) { $_SERVER['REMOTE_ADDR'] = X($_SERVER['HTTP_CLIENT_IP']); }</p><p>if(isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { $_SERVER['REMOTE_ADDR'] = X($_SERVER['HTTP_X_FORWARDED_FOR']); }</p><p>$remoteip = X($_SERVER['REMOTE_ADDR']);</p><p> </p><p> </p><p>require_once root.'core/habbocore.php';</p><p>$core = new Core();</p><p>$user = new User();</p><p>$top = new Top();</p><p>$swf = new Swf();</p><p>$tpl = new Tpl(); // NEW!! //</p><p> </p><p>$online = $core->online();</p><p>$WebBuild = $core->WebBuild(nl);</p><p>?>[/PHP]</p></blockquote><p></p>
[QUOTE="TinyBuilder, post: 170939, member: 14249"] I use DeltaCMS. And yeah it is on the tab[DOUBLEPOST=1357736408,1357736318][/DOUBLEPOST] Sorry not the me.php page :L Global.php: [PHP]<?php //Simple but working coding :O// if($index !== true){ exit("Do not underestimate DeltaCMS. It has advanced security."); } //Defines the htdocs(for XAMPP) or wwwroot(for IIS) path// $docs_split = explode('core', __FILE__); if(isset($docs_split[0])){ define('root', $docs_split[0]); // New Method // } else { define('D_S', DIRECTORY_SEPARATOR); // Old Method // define('root', str_replace(array('\core'.D_S, '\style'.D_S), '', dirname(__FILE__).D_S).D_S); // Old Method // } //Includes config// require_once root.'core/config.php'; //Gives error if config isn't correct// if(!isset($sitename) || !isset($style) || !isset($maintenance) || !isset($debug)){ exit("<b>Fatal Error</b>: Configuration file isn't correct!"); } //Gives error if style doesn't exist// if(!file_exists('style/'.$style.'/index.php')){ if($debug == true){ exit("<b>Wrong Style!</b> DeltaCMS will exit."); } else { exit("Put debug on for error information.."); } } //With this you can use $_SESSIONs// session_start(); //With this you can use $_COOKIEs - Not working yet// $_COOKIE = array(); //The exploit-filter functions// function clean($txt){ return stripslashes(trim($txt)); } function X($txt){ return mysql_real_escape_string(clean($txt)); } //Connects to MySQL// if(!isset($debug) || $debug == true){ error_reporting(E_ALL); $mysql = mysql_connect($dbhost, $dbuser, $dbpass) or die("Can't connect to the mysql host. Error: ".mysql_error()); mysql_select_db($dbname, $mysql) or die("Error: ".mysql_error()); } else { error_reporting(0); $mysql = mysql_connect($dbhost, $dbuser, $dbpass) or die("Put debug on for error information.."); mysql_select_db($dbname, $mysql) or die("Put debug on for error information.."); } //Auto defines the Site: No config needed :O// $site = 'http://'.X($_SERVER['SERVER_NAME']); // For Proxy / CloudFlare / IIS // if(isset($_SERVER['HTTP_CF_CONNECTING_IP'])) { $_SERVER['REMOTE_ADDR'] = X($_SERVER['HTTP_CF_CONNECTING_IP']); } if(isset($_SERVER['HTTP_CLIENT_IP'])) { $_SERVER['REMOTE_ADDR'] = X($_SERVER['HTTP_CLIENT_IP']); } if(isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { $_SERVER['REMOTE_ADDR'] = X($_SERVER['HTTP_X_FORWARDED_FOR']); } $remoteip = X($_SERVER['REMOTE_ADDR']); require_once root.'core/habbocore.php'; $core = new Core(); $user = new User(); $top = new Top(); $swf = new Swf(); $tpl = new Tpl(); // NEW!! // $online = $core->online(); $WebBuild = $core->WebBuild(nl); ?>[/PHP] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
[Help ASAP] Points Shop redirects to /me page [Please!]
Top