Advertisement
Guest User

Untitled

a guest
Jun 17th, 2013
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for Zend Encoder/SafeGuard & PhpExpress)
  6. *
  7. * @ Version : 1.1.5.0
  8. * @ Author : DeZender
  9. * @ Release on : 09.06.2012
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function url_exists($strURL) {
  15. $resURL = curl_init( );
  16. curl_setopt( $resURL, CURLOPT_URL, $strURL );
  17. curl_setopt( $resURL, CURLOPT_BINARYTRANSFER, 1 );
  18. curl_setopt( $resURL, CURLOPT_HEADERFUNCTION, 'curlHeaderCallback' );
  19. curl_setopt( $resURL, CURLOPT_FAILONERROR, 1 );
  20. curl_setopt( $resURL, CURLOPT_TIMEOUT, 15 );
  21. curl_setopt( $ch, CURLOPT_FORBID_REUSE, 1 );
  22. curl_setopt( $ch, CURLOPT_FRESH_CONNECT, 1 );
  23. $dummy = curl_exec( $resURL );
  24. $intReturnCode = curl_getinfo( $resURL, CURLINFO_HTTP_CODE );
  25. curl_close( $resURL );
  26.  
  27. if (( ( $intReturnCode != 200 && $intReturnCode != 302 ) && $intReturnCode != 304 )) {
  28. return false;
  29. } else {
  30. return true;
  31. }
  32.  
  33. }
  34.  
  35. function setdata($stat) {
  36. header( 'Content-Type:text/xml' );
  37. $str = '<?xml version="1.0" encoding="UTF-8" ?>';
  38. echo $str;
  39. echo '<data>';
  40. echo '<result>' . $stat . '</result>';
  41.  
  42. if ($stat == 'true') {
  43. $url = 'http://' . $_POST['myip'] . $_POST['syspath'] . '/' . 'readaccessory.php?a=' . mt_rand( );
  44. myread( $url, 'a' );
  45. $url = 'http://' . $_POST['myip'] . $_POST['syspath'] . '/' . 'readmedia.php?a=' . mt_rand( );
  46. myread( $url, 'm' );
  47. $url = 'http://' . $_POST['myip'] . $_POST['syspath'] . '/' . 'readblc.php?a=' . mt_rand( );
  48. myread( $url, 'b' );
  49. }
  50.  
  51. echo '</data>';
  52. }
  53.  
  54. function myread($url, $mode) {
  55. $ch = curl_init( );
  56. curl_setopt( $ch, CURLOPT_URL, $url );
  57. curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
  58. curl_setopt( $ch, CURLOPT_FORBID_REUSE, 1 );
  59. curl_setopt( $ch, CURLOPT_FRESH_CONNECT, 1 );
  60. $file_contents = curl_exec( $ch );
  61. curl_close( $ch );
  62. $xml = simplexml_load_string( $file_contents );
  63. .............................................................................
  64. ...................................
  65. ............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement