FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
prettydiff/proxy.php at master · prettydiff/prettydiff · GitHub
prettydiff
/
prettydiff
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
138
Star
1.8k
Code
Issues
44
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
prettydiff
/
proxy.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
20 lines (20 loc) · 619 Bytes
Breadcrumbs
prettydiff
/
proxy.php
Copy path
File metadata and controls
20 lines (20 loc) · 619 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
$
referer
=
$
_SERVER
[
'
HTTP_REFERER
'
];
$
refpos
=
strpos
(
$
referer
,
'
prettydiff.com
'
);
if
(
$
refpos
===
0
||
$
refpos
===
7
||
$
refpos
===
11
) {
$
x
=
$
_GET
[
'
x
'
];
//$r = file_get_contents($x);
//echo($r);
$
ch
=
curl_init
();
curl_setopt
(
$
ch
,
CURLOPT_URL
,
$
x
);
curl_setopt
(
$
ch
,
CURLOPT_HEADER
,
0
);
curl_setopt
(
$
ch
,
CURLOPT_RETURNTRANSFER
,
1
);
$
result
=
curl_exec
(
$
ch
);
curl_close
(
$
ch
);
header
(
"
Content-type: text/plain;charset=UTF-8
"
);
echo
(
$
result
);
}
else
{
header
(
"
HTTP/1.1 301 Moved Permanently
"
);
header
(
"
Location: http://prettydiff.com/
"
);
}
?>
Back
|
FazBrowse Home
|
New Git URL