Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(isset($_GET['get'])) {
- define('POSTURL', $_GET['get']);
- define("POSTVARS", "username=" . $_POST['username'] . "&password=" . $_POST['password']); // POST VARIABLES TO BE SENT
- // INITIALIZE ALL VARS
- $Email='';
- $ch='';
- $Rec_Data='';
- $Temp_Output='';
- if($_SERVER['REQUEST_METHOD']==='POST') { // REQUIRE POST OR DIE
- $ch = curl_init(POSTURL);
- curl_setopt($ch, CURLOPT_POST ,1);
- curl_setopt($ch, CURLOPT_POSTFIELDS ,POSTVARS);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);
- curl_setopt($ch, CURLOPT_HEADER ,0); // DO NOT RETURN HTTP HEADERS
- curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL
- $Rec_Data = curl_exec($ch);
- if($debug) {
- if(curl_errno($ch)) {
- return '<span style="color:#22c922">Server not found.</span>';
- } else {
- return '<span style="color:#c92222">Server found.</span>';
- }
- }
- ob_start();
- header("Content-Type: text/html");
- $Temp_Output = ltrim(rtrim(trim(strip_tags(trim(preg_replace ( "/\s\s+/" , " " , html_entity_decode($Rec_Data)))),"\n\t\r\h\v\0 ")), "%20");
- $Temp_Output = ereg_replace (' +', ' ', trim($Temp_Output));
- $Temp_Output = ereg_replace("[\r\t\n]","",$Temp_Output);
- $Temp_Output = substr($Temp_Output,307,200);
- echo $Temp_Output;
- $Final_Out=ob_get_clean();
- echo $Final_Out;
- curl_close($ch);
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement