Advertisement
Guest User

Untitled

a guest
May 8th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.70 KB | None | 0 0
  1. <?php
  2.  
  3. $pclkey = "betas";
  4. require "library.php";
  5. require "tasks.php";
  6.  
  7. $Username = "48ghg";
  8. $Password = "bedbed";
  9. $Server = 100;
  10. $i = 0;
  11.  
  12. $p = new Pickle;
  13.  
  14. $e_servs = array(171, 215, 315, 411);
  15.  
  16. $p->connect($Username, $Password, $Server);
  17.  
  18. if ($p->run) {
  19. $handle = fopen("info.txt", "a");
  20. echo "Penguin info getter started\n";
  21. echo "What room is the penguin in: (ID)\n";
  22. $room = trim(fgets(STDIN));
  23.  
  24. if (is_numeric($room)) {
  25. echo "What is the penguin's name:\n";
  26. $peng = trim(fgets(STDIN));
  27.  
  28. if ($peng) {
  29.           $packet = $p->grabRoom($roomID);
  30.           if (stripos($packet, $name)) {
  31.               $penguins = explode("%", $packet);
  32.               foreach ($penguins as $data) {
  33.                   if (stripos($data, $name)) {
  34.                       $info = explode("|", $data);
  35.                       $id = $info[0];
  36.               $name = $info[1];
  37.                       $color = $info[3];
  38.                       $head = $info[4];
  39.                       $face = $info[5];
  40.                       $neck = $info[6];
  41.                       $body = $info[7];
  42.                       $hand = $info[8];
  43.                       $feet = $info[9];
  44.                       $pin = $info[10];
  45.                   }
  46.           }
  47. echo "ID: ". $id ."\n Name: ". $name."\n Color: ". $color."\n Head: ". $head
  48. ."\n Face: ". $face."\n Neck: ". $neck."\n Body: ". $body."\n Hand: ". $hand
  49. ."\n Feet: ". $feet."\n Pin: ". $pin ."\n";
  50.  
  51. fwrite($handle, "ID: $id
  52. Name: $name
  53. Color: $color
  54. Head: $head
  55. Face: $face
  56. Neck: $neck
  57. Body: $body
  58. Hand: $hand
  59. Feet: $feet
  60. Pin: $pin");
  61. fclose($handle);
  62. while(true) {}
  63. }
  64. }
  65. }
  66. } else {
  67. echo "room must be a number, closing due to you not listening\n";
  68. sleep(5);
  69. die();
  70. }
  71.  
  72.  
  73. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement