Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
432
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. <?php
  2.  
  3. $username = urlencode('scholzel-a@web.de');
  4. $username_org = $username;
  5.  
  6. $password = urlencode('Andre125');
  7.  
  8.  
  9.  
  10.  
  11. $imap_host = 'imap.web.de';
  12.  
  13.  
  14. $url_folders = "imaps://".$username.":".$password."@".$imap_host."";
  15. echo $url_folders;
  16.  
  17. $ch = curl_init();
  18. curl_setopt($ch, CURLOPT_URL, $url_folders);
  19. curl_setopt($ch, CURLOPT_HEADER, TRUE);
  20. curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
  21.  
  22. //curl_setopt($ch, CURLOPT_PROXY, $proxy1);
  23. //curl_setopt($ch, CURLOPT_PROXYUSERPWD, 'sp6db43531:kofefa10');
  24. curl_setopt($ch, CURLOPT_PORT, 993);
  25.  
  26.  
  27. //curl_setopt($ch, CURLOPT_PORT, $imap_port);
  28. $content = curl_exec( $ch );
  29. echo 'Curl-Fehler: ' . curl_error($ch).'<br>';
  30.  
  31.  
  32. echo 'Verfügbare Ordner<br>';
  33.  
  34. print_r($content);
  35.  
  36.  
  37. exit;
  38.  
  39.  
  40. echo " <table>";
  41. echo "<tr><td>" .$_SERVER['SERVER_ADDR'] ."</td><td>SERVER_ADDR</td></tr>";
  42. echo "<tr><td>" .$_SERVER['SERVER_NAME'] ."</td><td>SERVER_NAME</td></tr>";
  43. echo " </table>";
  44. $external_ip = exec('curl http://ipecho.net/plain; echo');
  45. echo "$external_ip";
  46. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement