Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Steam Resolver

By: P_H_P on Dec 1st, 2012  |  syntax: PHP  |  size: 2.61 KB  |  views: 968  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. ob_start();
  3. require_once 'includes/db.php';
  4. require_once 'includes/init.php';
  5. if (!($user -> LoggedIn()))
  6. {
  7.         header('location: login.php');
  8.         die();
  9. }
  10. if (!($user->hasMembership($odb)))
  11. {
  12.         header('location: purchase.php');
  13.         die();
  14. }
  15. if (!($user -> notBanned($odb)))
  16. {
  17.         header('location: login.php');
  18.         die();
  19. }
  20.  
  21. function get_data($url)
  22. {
  23.   $ch = curl_init();
  24.   $timeout = 5;
  25.   curl_setopt($ch,CURLOPT_URL,$url);
  26.   curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
  27.   curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);
  28.   $data = curl_exec($ch);
  29.   curl_close($ch);
  30.   return $data;
  31. }
  32. ?>
  33. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  34. <html xmlns="http://www.w3.org/1999/xhtml">
  35. <head>
  36. <title><?php echo $title_prefix; ?>Steam Resolver</title>
  37. <?php include 'includes/css.php';?>
  38. </head>
  39. <body>
  40. <?php
  41. include 'sidebar.php';
  42. ?>
  43. <!-- Right side -->
  44. <div id="rightSide">
  45. <?php include 'header.php';?>
  46.    
  47.    
  48.  
  49.    
  50.     <!-- Title area -->
  51.     <div class="titleArea">
  52.         <div class="wrapper">
  53.             <div class="pageTitle">
  54.                 <h3>Steam Resolver</h3>
  55.             </div>
  56.             <div class="clear"></div>
  57.         </div>
  58.     </div>
  59.    
  60.     <div class="line"></div>
  61.    
  62.  
  63.    
  64.     <!-- Main content wrapper -->
  65.     <div class="wrapper">
  66.         <!-- Form -->
  67.                 <?php
  68.                 $resolved = '';
  69.                 if (isset($_POST['resolveBtn']))
  70.                 {
  71.                    $steamname = $_POST['skypeName'];
  72.   $myip='';
  73.   $APIkey='';
  74.  
  75.   $resolved = get_data('http://raptorstresser.com/api/steamid.php?steamid='.$steamname.'&APIkey='.$APIkey.'&myip='.$myip);     
  76.                 }
  77.                 $split = split('"', $resolved);
  78.                 ?>
  79.                 <form class="form" method="POST" action="">
  80.             <fieldset>
  81.                 <div class="widget">
  82.                     <div class="title"><img src="images/icons/dark/list.png" alt="" class="titleIcon" /><h6>Steam Resolver</h6></div>
  83.                     <div class="formRow">
  84.                         <label>Steam Name</label>
  85.                         <div class="formRight"><input type="text" name="skypeName" value="<?php echo $name; ?>" id="skypeName"/></div>
  86.                         <div class="clear"></div>
  87.                                         </div>
  88.                                         <div class="formRow">
  89.                                                 <?php echo $resolved;?>
  90.                                                 <input type="submit" value="Resolve" name="resolveBtn" class="dblueB logMeIn" />
  91.                                                 <div class="clear"></div>
  92.                     </div>
  93.                 </div>
  94.             </fieldset>
  95.         </form>
  96. </div>
  97. <!-- Footer line -->
  98. <?php include 'footer.php';?>
  99. </div>
  100.  
  101. <div class="clear"></div>
  102. </body>
  103.  
  104. </html>