Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- if(empty($_SESSION['token'])) {
- $token = $_GET['token_a'];
- if(empty($token)) {
- ?>This page will tell you how many AIM buddy lists your screenname is added to. <a href="https://api.screenname.aol.com/auth/login?devId=ze1qK3Y3NTg_qyuI&f=qs&succUrl=http://www.sitexero.net/aim/">Click here to log in <b>securely</b> first</a><?
- die();
- }
- $_SESSION['token'] = $token;
- header("Location: http://www.sitexero.net/aim/");
- die();
- }
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_REFERER, "http://www.sitexero.net/aim/");
- curl_setopt($ch, CURLOPT_URL, "http://api.oscar.aol.com/aim/startSession?f=json&invisible=true&succUrl=http://www.sitexero.net/aim/&k=ze1qK3Y3NTg_qyuI&a=" . urlencode($_SESSION['token']) . "&events=myInfo");
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- $tmp = @json_decode(curl_exec($ch), true);
- switch($tmp['response']['statusCode']) {
- case 450:
- ?><script type="text/javascript">
- setInterval(function(){
- if(location.hash == '#CONSENTDONE'){
- location.hash = '';
- location = 'http://www.sitexero.net/aim/';
- }
- }, 1000);
- </script>
- <iframe src="<?=$tmp['response']['data']['redirectURL']?>&devId=ze1qK3Y3NTg_qyuI&f=qs" width="600" height="400" frameborder="0"></iframe><br><br>
- <b>Did you already accept and nothing happened? <a href="http://www.sitexero.net/aim/">Click here to reload the page then</a></b><?
- die();
- break;
- case 200:
- $sn = $tmp['response']['data']['myInfo']['aimId'];
- $aimsid = $tmp['response']['data']['aimsid'];
- $tmp = @json_decode(file_get_contents("http://api.lifestream.aol.com/lifestream/getMyInfo?aimsid=" . $aimsid . "&f=json&k=ze1qK3Y3NTg_qyuI"), true);
- if(empty($tmp))
- bye(0);
- switch($tmp['response']['statusCode']) {
- case 200:
- ?><?=$sn?> is added on <b><?=number_format($tmp['response']['data']['watcherCount'])?></b> buddy lists and has <b><?=number_format($tmp['response']['data']['buddyCount'])?></b> buddies added.<?
- break;
- case 607:
- ?>Screen name is rate limited from retrieving this information. Try again later.<?
- break;
- default:
- ?>Unknown response code. Try again later.<?
- break;
- }
- break;
- case 607:
- ?>Screen name is rate limited from retrieving this information. Try again later.<?
- break;
- default:
- bye($tmp['response']['statusCode']);
- }
- fin();
- function bye($i) {
- print "Oops, something unexpected happened. Oh well, better luck next time!<!--{$i}-->";
- fin();
- die();
- }
- function fin() {
- ?><br><br><br>You've been logged out now. <a href="https://api.screenname.aol.com/auth/login?devId=ze1qK3Y3NTg_qyuI&f=qs&succUrl=http://www.sitexero.net/aim/">Click here to start again</a><iframe src="http://api.screenname.aol.com/auth/logout?devId=ze1qK3Y3NTg_qyuI&a=<?=urlencode($_SESSION['token'])?>" frameborder="0" width="1" height="1"></iframe><?
- $_SESSION['token'] = null;
- unset($_SESSION['token']);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement