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
Miscellaneous
FindRetros
Help & Support
TheHabbos API Help
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="RastaLulz" data-source="post: 21802" data-attributes="member: 1"><p>I've created a quick script to allow you to check if your script is working for a certain case.</p><p></p><p>Go into "class.validate.php", and replace the file with the following code:</p><p>[php]<?php</p><p>//////////////////////////////////////////////////////////////</p><p>// # TheHabbos Topsites API Script - Release 1.0.0 (BETA 2) //</p><p>// # (C) Copyright TheHabbos 2010. All rights reserved. //</p><p>//////////////////////////////////////////////////////////////</p><p></p><p>if(!defined('IN_THEHABBOS_API')) {</p><p> die('Sorry, but you can not access this file directly. :(');</p><p>}</p><p></p><p>class Validate {</p><p> function validateVote() {</p><p> global $CONFIG;</p><p> if(!isset($_GET['api_code']) {</p><p> $handle = @fopen('http://api.thehabbos.org/validate.php?user='.$CONFIG['Username'].'&ip='.$_SERVER['REMOTE_ADDR'], 'r');</p><p> }else{</p><p> $handle = @fopen('http://api.thehabbos.org/sandbox.php?return='.$_GET['api_code'], 'r');</p><p> }</p><p> if(!$handle) {</p><p> return 6;</p><p> }else{</p><p> $validateCode = stream_get_contents($handle); fclose($handle);</p><p> return $validateCode;</p><p> }</p><p> }</p><p>}[/php]</p><p></p><p>So you can change the case to what you want based on the value you set api_code to:</p><p></p><p></p><p><strong>Just remember to change the file back to the default code when you make this script go live, or it could be obviously abused.</strong></p></blockquote><p></p>
[QUOTE="RastaLulz, post: 21802, member: 1"] I've created a quick script to allow you to check if your script is working for a certain case. Go into "class.validate.php", and replace the file with the following code: [php]<?php ////////////////////////////////////////////////////////////// // # TheHabbos Topsites API Script - Release 1.0.0 (BETA 2) // // # (C) Copyright TheHabbos 2010. All rights reserved. // ////////////////////////////////////////////////////////////// if(!defined('IN_THEHABBOS_API')) { die('Sorry, but you can not access this file directly. :('); } class Validate { function validateVote() { global $CONFIG; if(!isset($_GET['api_code']) { $handle = @fopen('http://api.thehabbos.org/validate.php?user='.$CONFIG['Username'].'&ip='.$_SERVER['REMOTE_ADDR'], 'r'); }else{ $handle = @fopen('http://api.thehabbos.org/sandbox.php?return='.$_GET['api_code'], 'r'); } if(!$handle) { return 6; }else{ $validateCode = stream_get_contents($handle); fclose($handle); return $validateCode; } } }[/php] So you can change the case to what you want based on the value you set api_code to: [B]Just remember to change the file back to the default code when you make this script go live, or it could be obviously abused.[/B] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Miscellaneous
FindRetros
Help & Support
TheHabbos API Help
Top