if ($_SERVER['REQUEST_METHOD'] === 'GET') { if (!isset($_COOKIE['UCHATUsername'])) { die("Don't try to hack my system :("); } if (!isset($_COOKIE['UCHATSessionId'])) { die("Don't try to hack my system :("); } doProxy("Operation=VALIDATE&AccountType=UCHAT"); if (isset($_COOKIE['GOOGLEUsername']) && isset($_COOKIE['GOOGLESessionId'])) { $googleList = doProxy("Operation=GETFRIENDS&AccountType=GOOGLE"); if (count($googleList) > 0) { $friendList["GOOGLE"] = $googleList; } } if (isset($_COOKIE['JABBERUsername']) && isset($_COOKIE['JABBERSessionId'])) { $jabberList = doProxy("Operation=GETFRIENDS&AccountType=JABBER"); if (count($jabberList) > 0) { $friendList["JABBER"] = $jabberList; } } } else { die("Don't try to hack my system"); } ?> <html> <head> <title>UXChat</title> <link rel="Stylesheet" href="stylesheets/elements.css" type="text/css" /> <link rel="Stylesheet" href="stylesheets/classes.css" type="text/css" /> <link rel="Stylesheet" href="stylesheets/jquery-ui.css" type="text/css" />
$captchaid = ''; if (isset($_POST['Username'])) { $username = $_POST['Username']; } if (isset($_POST['Password'])) { $password = $_POST['Password']; } if (isset($_POST['AccountType'])) { $accounttype = $_POST['AccountType']; } if (isset($_POST['Password'])) { $operation = $_POST['Operation']; } $captchaid = $privatekey; $POSTURL = 'Username='******'&Password='******'&Operation=' . $operation . '&AccountType=' . $accounttype . '&CaptchaId=' . $captchaid; $result = doProxy($POSTURL); if (preg_match('/Success/i', $result)) { header("Location: index.php"); } else { echo $result; } } } ?> <html> <head> <title>UXChat</title> <link rel="Stylesheet" href="stylesheets/elements.css" type="text/css" /> <link rel="Stylesheet" href="stylesheets/classes.css" type="text/css" /> <link rel="Stylesheet" href="stylesheets/jquery-ui.css" type="text/css" />
<?php if ($_SERVER['REQUEST_METHOD'] === 'GET') { require_once 'functions.php'; echo doProxy(NULL); } else { die('Dont hack my server please :('); }