Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for Zend Encoder/SafeGuard & PhpExpress)
- *
- * @ Version : 1.1.5.0
- * @ Author : DeZender
- * @ Release on : 09.06.2012
- * @ Official site : http://DeZender.Net
- *
- */
- function url_exists($strURL) {
- $resURL = curl_init( );
- curl_setopt( $resURL, CURLOPT_URL, $strURL );
- curl_setopt( $resURL, CURLOPT_BINARYTRANSFER, 1 );
- curl_setopt( $resURL, CURLOPT_HEADERFUNCTION, 'curlHeaderCallback' );
- curl_setopt( $resURL, CURLOPT_FAILONERROR, 1 );
- curl_setopt( $resURL, CURLOPT_TIMEOUT, 15 );
- curl_setopt( $ch, CURLOPT_FORBID_REUSE, 1 );
- curl_setopt( $ch, CURLOPT_FRESH_CONNECT, 1 );
- $dummy = curl_exec( $resURL );
- $intReturnCode = curl_getinfo( $resURL, CURLINFO_HTTP_CODE );
- curl_close( $resURL );
- if (( ( $intReturnCode != 200 && $intReturnCode != 302 ) && $intReturnCode != 304 )) {
- return false;
- } else {
- return true;
- }
- }
- function setdata($stat) {
- header( 'Content-Type:text/xml' );
- $str = '<?xml version="1.0" encoding="UTF-8" ?>';
- echo $str;
- echo '<data>';
- echo '<result>' . $stat . '</result>';
- if ($stat == 'true') {
- $url = 'http://' . $_POST['myip'] . $_POST['syspath'] . '/' . 'readaccessory.php?a=' . mt_rand( );
- myread( $url, 'a' );
- $url = 'http://' . $_POST['myip'] . $_POST['syspath'] . '/' . 'readmedia.php?a=' . mt_rand( );
- myread( $url, 'm' );
- $url = 'http://' . $_POST['myip'] . $_POST['syspath'] . '/' . 'readblc.php?a=' . mt_rand( );
- myread( $url, 'b' );
- }
- echo '</data>';
- }
- function myread($url, $mode) {
- $ch = curl_init( );
- curl_setopt( $ch, CURLOPT_URL, $url );
- curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
- curl_setopt( $ch, CURLOPT_FORBID_REUSE, 1 );
- curl_setopt( $ch, CURLOPT_FRESH_CONNECT, 1 );
- $file_contents = curl_exec( $ch );
- curl_close( $ch );
- $xml = simplexml_load_string( $file_contents );
- .............................................................................
- ...................................
- ............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement