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
API.PHP redirects to CLIENT.PHP .. where do I edit to...
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="Mitchul" data-source="post: 94093" data-attributes="member: 13122"><p>[PHP]<?php</p><p>////////////////////////////////////////////////////////</p><p>// # TheHabbos Topsites API Script - Release 1.0.3 //</p><p>// # © Copyright TheHabbos 2011. 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>switch($lookingFor) {</p><p> case 1:</p><p> {</p><p> //what happens if someone does successfully vote</p><p> header("Location: client");</p><p> break;</p><p> }</p><p> case 2:</p><p> {</p><p> //what happens if someone has already voted</p><p> header("Location: client");</p><p> break;</p><p> }</p><p> case 3:</p><p> {</p><p> //what happens if someone hasn't voted yet</p><p> echo '<div class="contentTitle">Please Vote</div></p><p> It appears that you have not voted yet today! Please click the button below.<br /></p><p> <br /></p><p> <form action="http://votingapi.com/vote/'.$CONFIG['Username'].'" method="post"></p><p> <input type="hidden" name="api_url" value="'.$CONFIG['URL'].'" /></p><p> <input class="button" type="submit" name="votingAPI" value="" /></p><p> </form>';</p><p> break;</p><p> }</p><p> case 4:</p><p> case 5:</p><p> {</p><p> //what happens if someone sends an invalid request</p><p> echo $LANG['content'][4].'<br /><br />Click <a href="client" style="color: #000000;">here</a> to proceed to the client.';</p><p> break;</p><p> }</p><p> case 6:</p><p> {</p><p> //what happens if thehabbos is down or having connection issues</p><p> header("Location: client");</p><p> break;</p><p> }</p><p>}[/PHP]</p><p> </p><p> </p><p>@ What Vineen said, edit that file to ^^</p><p> </p><p>EDIT - It's in <strong>/thehabbos_api/types/client.php</strong></p></blockquote><p></p>
[QUOTE="Mitchul, post: 94093, member: 13122"] [PHP]<?php //////////////////////////////////////////////////////// // # TheHabbos Topsites API Script - Release 1.0.3 // // # © Copyright TheHabbos 2011. All rights reserved. // //////////////////////////////////////////////////////// if(!defined('IN_THEHABBOS_API')) { die('Sorry, but you can not access this file directly. :('); } switch($lookingFor) { case 1: { //what happens if someone does successfully vote header("Location: client"); break; } case 2: { //what happens if someone has already voted header("Location: client"); break; } case 3: { //what happens if someone hasn't voted yet echo '<div class="contentTitle">Please Vote</div> It appears that you have not voted yet today! Please click the button below.<br /> <br /> <form action="http://votingapi.com/vote/'.$CONFIG['Username'].'" method="post"> <input type="hidden" name="api_url" value="'.$CONFIG['URL'].'" /> <input class="button" type="submit" name="votingAPI" value="" /> </form>'; break; } case 4: case 5: { //what happens if someone sends an invalid request echo $LANG['content'][4].'<br /><br />Click <a href="client" style="color: #000000;">here</a> to proceed to the client.'; break; } case 6: { //what happens if thehabbos is down or having connection issues header("Location: client"); break; } }[/PHP] @ What Vineen said, edit that file to ^^ EDIT - It's in [B]/thehabbos_api/types/client.php[/B] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Miscellaneous
FindRetros
Help & Support
API.PHP redirects to CLIENT.PHP .. where do I edit to...
Top