ÿØÿàJFIFÿÛ„ ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20
System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 7.4.20
Disable Function : NONE
Directory :  /var/www/html/thietkewebvumi.com/lib/curl/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/thietkewebvumi.com/lib/curl/class_curl_2007.php
<?

//@class CURL

//@author sans_amour

//@copyright TVPHP.NET

//@date 12/15/2007



class CURL{

    var $contents;

    var $_header;

    var $headers=array();

    var $body;

    var $url="";



    function exec($method, $url, $vars="",$h=1,$cookie="",$referer="",$ua="Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0") {

	

	if (!function_exists('curl_init'))

		  {

			trigger_error('PHP was not built with --with-curl, rebuild PHP to use the curl class.',

						  E_USER_ERROR) ;

		  }

	

        $ch = curl_init();

        //$ip = rand(0,255).".".rand(0,255).".".rand(0,255).".".rand(0,255);

        //$header =array("REMOTE_ADDR: $ip");

        curl_setopt($ch, CURLOPT_URL, $url);

        curl_setopt($ch, CURLOPT_HEADER, ($h==2) ? 0:1);



        if($ua) curl_setopt($ch, CURLOPT_USERAGENT, $ua);



        if($referer || $this->url) curl_setopt($ch, CURLOPT_REFERER,$referer?$referer:$this->url);



        //curl_setopt($ch, CURLOPT_HTTPHEADER,$header);    

        @curl_setopt($ch, CURLOPT_FOLLOWLOCATION,true);

        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);



        if(strncmp($url,"https",6)) {

            curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);

        }

        //curl_setopt($ch, CURLOPT_COOKIEJAR, 'cookie.txt');

        //curl_setopt($ch, CURLOPT_COOKIEFILE, 'cookie.txt');



        if ($method == 'POST') {

            curl_setopt($ch, CURLOPT_POST, 1);

            curl_setopt($ch, CURLOPT_POSTFIELDS, $vars);

        }

        $data = curl_exec($ch);



        $this->url=$url;



        if ($data) {



            if(preg_match("/^HTTP\/1\.1 302/",$data) && $h!=2 && strstr($data,"\r\n\r\nHTTP/1.1 200") ){

                $pos = strpos($data, "\r\n\r\n");

                

                $data= substr($data, $pos  + 4);             

            }



            if($h==1||$h==2) return $data;

            else{



                $pos = strpos($data, "\r\n\r\n");

                $this->body = substr($data, $pos  + 4);

                $this->_header = substr($data, 0,$pos);

                $this->_header=explode("\r\n",trim($this->_header));

                foreach($this->_header as $v){

                     $v=explode(":",$v,2);

                     $this->headers[$v[0]]=trim($v[1]);

                }

                return $h==3?$this->headers:array($this->headers,$this->body);

            }



        } else {

            return curl_error($ch);

        }

        curl_close($ch);

    }



    function get($url, $vars="" ,$h=1) {

        return $this->exec('GET', $url, $vars,$h);

    }

    function post($url, $vars ,$h=1) {

        return $this->exec('POST', $url, $vars,$h);

    }

    function seturl($url){

        $this->url=$url;

    }

    function setref($r){



    }

}

?> 

ZeroDay Forums Mini