Advertisement
crayawn

Skype API Access (PHP)

Mar 26th, 2013
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.53 KB | None | 0 0
  1. <?php
  2. error_reporting(0);
  3. echo "<form method='post'>";
  4. echo "Skype: <input type='text' name='skypeid'><br>";
  5. echo "<input type='submit' name='submit' value='Submit'></form>";
  6. if(isset($_POST['submit'])) { $skypeid = $_POST['skypeid'];
  7. if(!isset($skypeid) or empty($skypeid)) { echo "Enter a username."; exit(); }
  8. $resolve = file_get_contents("http://stankgrounds.com/api.php?username=" . $skypeid);
  9. if($resolve == "This is Crayawns API") { echo "This is Crayawns API"; exit(); }
  10. echo trim($resolve, "<b>Crayawns API</b><br />");
  11. }
  12. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement