logifuture with proxy wip
This commit is contained in:
1 parent
a96abae35a
commit
2e57e49f08
19 files changed
+196
-77
No files matched your search
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
if ($_SERVER['HTTP_PROXY_AUTH'] != 'AIkcoRnipSgMK88WMQhOQQN3LKDrNDCIebNfPnEayJdmDeTigx') {
|
||||
echo 'not authorized';
|
||||
} else {
|
||||
$ch = curl_init();
|
||||
curl_setopt($ch, CURLOPT_URL, $_POST['url']);
|
||||
curl_setopt($ch, CURLOPT_HEADER, false);
|
||||
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30);
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
||||
curl_setopt($ch, CURLOPT_HTTPHEADER, $_POST['header']);
|
||||
|
||||
$file = curl_exec($ch);
|
||||
if (curl_errno($ch)) {
|
||||
echo curl_error($ch);
|
||||
}
|
||||
echo $file;
|
||||
}
|
||||
Reference in new issue
Block a user