<?php
if(!defined('PAGE'))
{
die('Why are you here?');
}
class api
{
function getPage()
{
global $CONFIG;
ob_start();
switch($CONFIG['Status'])
{
case 1:
case 2:
{
header("Location: client.php");
exit;
break;
}
case 3:
{
echo '<!DOCTYPE html>
<head>
<title>Habbo: Vote For Us</title>
<link rel="shortcut icon" href="'.$CONFIG['URL'].'favicon.ico" type="image/vnd.microsoft.icon" />
<script src="'.$CONFIG['URL'].'web-gallery/static/js/visual.js" type="text/javascript"></script>
<script src="'.$CONFIG['URL'].'web-gallery/static/js/libs.js" type="text/javascript"></script>
<script src="'.$CONFIG['URL'].'web-gallery/static/js/common.js" type="text/javascript"></script>
<script src="'.$CONFIG['URL'].'web-gallery/static/js/fullcontent.js" type="text/javascript"></script>
<script src="'.$CONFIG['URL'].'web-gallery/static/js/libs2.js" type="text/javascript"></script>
<link rel="stylesheet" href="'.$CONFIG['URL'].'web-gallery/v2/styles/style.css" type="text/css" />
<link rel="stylesheet" href="'.$CONFIG['URL'].'web-gallery/v2/styles/buttons.css" type="text/css" />
<link rel="stylesheet" href="'.$CONFIG['URL'].'web-gallery/v2/styles/boxes.css" type="text/css" />
<link rel="stylesheet" href="'.$CONFIG['URL'].'web-gallery/v2/styles/tooltips.css" type="text/css" />
<script type="text/javascript">
var andSoItBegins = (new Date()).getTime();
document.habboLoggedIn = true;
var habboReqPath = "'.$CONFIG['URL'].'";
var habboStaticFilePath = "'.$CONFIG['URL'].'web-gallery/";
var habboImagerUrl = "'.$CONFIG['URL'].'habbo-imaging/";
var habboPartner = "";
window.name = "habboMain";
</script>
<link rel="stylesheet" href="'.$CONFIG['URL'].'web-gallery/v2/styles/myhabbo.css" type="text/css" />
<style rel="stylesheet" type="text/css" />
.cb, div.ad-container
{
margin: 0 0 7px;
}
</style>
<meta name="description" content="habbo hotel is a virtual world where you can meet and make friends." />
<meta name="keywords" content="habbo,habbo hotel,virtual world,play games,enter competitions,make friends" />
<!--[if lt IE 8]>
<link rel="stylesheet" href="'.$CONFIG['URL'].'web-gallery/v2/styles/ie.css" type="text/css" />
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" href="'.$CONFIG['URL'].'web-gallery/v2/styles/ie6.css" type="text/css" />
<script src="'.$CONFIG['URL'].'web-gallery/static/js/pngfix.js" type="text/javascript"></script>
<script type="text/javascript">
try { document.execCommand(\'BackgroundImageCache\', false, true); } catch(e) {}
</script>
<style type="text/css">
body { behavior: url("'.$CONFIG['URL'].'web-gallery/csshover.htc"); }
</style>
<![endif]-->
</head>
<body id="home" class="anonymous">
<div id="overlay"></div>
<div id="header-container">
<div id="header" class="clearfix">
<h1><a href="'.$CONFIG['URL'].'"></a></h1>
</div>
</div>
<div id="content-container">
<div id="container">
<div id="content">
<div class="habblet-container">
<div class="cbb clearfix default">
<h2 class="title">Vote For Us</h2>
<div class="box-content">
<b>Please Vote For Us</b><br />
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 type="submit" name="votingAPI" value="Submit" class="submit">
</form>
</div>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName(\'process-template\')) { Rounder.init(); }</script>
<!--[if lt IE 7]>
<script type="text/javascript">
Pngfix.doPngImageFix();
</script>
<![endif]-->
<div id="footer">
<p><a href="'.$CONFIG['URL'].'" target="_self">Homepage</a> | <a href="'.$CONFIG['URL'].'documents.php?page=1" target="_self">Terms of Service</a> | <a href="'.$CONFIG['URL'].'documents.php?page=2" target="_self">Privacy Policy</a></p>
</div>
</div>
</div>
</div>
<script type="text/javascript">
HabboView.run();
</script>
</body>
</html>';
exit;
break;
}
case 4:
case 5:
{
echo '<!DOCTYPE html>
<head>
<title>Habbo: Vote For Us</title>
<link rel="shortcut icon" href="'.$CONFIG['URL'].'favicon.ico" type="image/vnd.microsoft.icon" />
<script src="'.$CONFIG['URL'].'web-gallery/static/js/visual.js" type="text/javascript"></script>
<script src="'.$CONFIG['URL'].'web-gallery/static/js/libs.js" type="text/javascript"></script>
<script src="'.$CONFIG['URL'].'web-gallery/static/js/common.js" type="text/javascript"></script>
<script src="'.$CONFIG['URL'].'web-gallery/static/js/fullcontent.js" type="text/javascript"></script>
<script src="'.$CONFIG['URL'].'web-gallery/static/js/libs2.js" type="text/javascript"></script>
<link rel="stylesheet" href="'.$CONFIG['URL'].'web-gallery/v2/styles/style.css" type="text/css" />
<link rel="stylesheet" href="'.$CONFIG['URL'].'web-gallery/v2/styles/buttons.css" type="text/css" />
<link rel="stylesheet" href="'.$CONFIG['URL'].'web-gallery/v2/styles/boxes.css" type="text/css" />
<link rel="stylesheet" href="'.$CONFIG['URL'].'web-gallery/v2/styles/tooltips.css" type="text/css" />
<script type="text/javascript">
var andSoItBegins = (new Date()).getTime();
document.habboLoggedIn = true;
var habboName = "";
var habboReqPath = "'.$CONFIG['URL'].'";
var habboStaticFilePath = "'.$CONFIG['URL'].'web-gallery/";
var habboImagerUrl = "'.$CONFIG['URL'].'habbo-imaging/";
var habboPartner = "";
window.name = "habboMain";
</script>
<link rel="stylesheet" href="'.$CONFIG['URL'].'web-gallery/v2/styles/myhabbo.css" type="text/css" />
<style rel="stylesheet" type="text/css" />
.cb, div.ad-container
{
margin: 0 0 7px;
}
</style>
<meta name="description" content="habbo hotel is a virtual world where you can meet and make friends." />
<meta name="keywords" content="habbo,habbo hotel,virtual world,play games,enter competitions,make friends" />
<!--[if lt IE 8]>
<link rel="stylesheet" href="'.$CONFIG['URL'].'web-gallery/v2/styles/ie.css" type="text/css" />
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" href="'.$CONFIG['URL'].'web-gallery/v2/styles/ie6.css" type="text/css" />
<script src="'.$CONFIG['URL'].'web-gallery/static/js/pngfix.js" type="text/javascript"></script>
<script type="text/javascript">
try { document.execCommand(\'BackgroundImageCache\', false, true); } catch(e) {}
</script>
<style type="text/css">
body { behavior: url("'.$CONFIG['URL'].'web-gallery/csshover.htc"); }
</style>
<![endif]-->
</head>
<body id="home" class="anonymous">
<div id="overlay"></div>
<div id="header-container">
<div id="header" class="clearfix">
<h1><a href="'.$CONFIG['URL'].'"></a></h1>
</div>
</div>
<div id="content-container">
<div id="container">
<div id="content">
<div class="habblet-container">
<div class="cbb clearfix default">
<h2 class="title">Vote For Us</h2>
<div class="box-content">
<b>Invalid Request</b><br />
Sorry, but it appears that an invalid request is being sent.<br /><br />
Click <a href="'.$CONFIG['URL'].'client.php">here</a> to proceed to the client.
</div>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName(\'process-template\')) { Rounder.init(); }</script>
<!--[if lt IE 7]>
<script type="text/javascript">
Pngfix.doPngImageFix();
</script>
<![endif]-->
<div id="footer">
<p><a href="'.$CONFIG['URL'].'" target="_self">Homepage</a> | <a href="'.$CONFIG['URL'].'documents.php?page=1" target="_self">Terms of Service</a> | <a href="'.$CONFIG['URL'].'documents.php?page=2" target="_self">Privacy Policy</a></p>
</div>
</div>
</div>
</div>
<script type="text/javascript">
HabboView.run();
</script>
</body>
</html>';
exit;
break;
}
case 6:
{
header("Location: client.php");
exit;
break;
}
}
$string = ob_get_contents();
ob_end_clean();
return $string;
}
}
?>