Skip to content

Commit

Permalink
new proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
jatorre committed May 24, 2011
1 parent a039761 commit 6408270
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion proxy.php
Expand Up @@ -2,6 +2,10 @@
$proxy_url = isset($_GET['proxy_url'])?$_GET['proxy_url']:false;

@$data=file_get_contents($proxy_url);
echo($data);

if (!$data) {
header("HTTP/1.0 404 Not Found");
} else {
echo($data);
}
?>

0 comments on commit 6408270

Please sign in to comment.