-
Notifications
You must be signed in to change notification settings - Fork 75
/
doulCi.Proxy.php
executable file
·48 lines (45 loc) · 1.44 KB
/
doulCi.Proxy.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
// require_once ( '../doulCi.Core.php' );
if ( $_SERVER [ 'REQUEST_METHOD' ] == "POST" )
{
// Check the User Agent and lets do it :)
if ( isset ( $_SERVER [ 'HTTP_USER_AGENT' ] ) )
{
if ( ( strpos ( $_SERVER [ 'HTTP_USER_AGENT' ], 'AppleTV' ) !== false ) or ( strpos ( $_SERVER [ 'HTTP_USER_AGENT' ], 'iPhone' ) !== false ) or ( strpos ( $_SERVER [ 'HTTP_USER_AGENT' ], 'iPod' ) !== false ) or ( strpos ( $_SERVER [ 'HTTP_USER_AGENT' ], 'iPad' ) !== false ) )
{
// Make it Freeze and he we go :)
// Setting the Default Header & User Agent Type.
Header ( CONTENT_XML );
ini_set ( 'user_agent', USER_AGENT_IOS_DEVICE );
$Unbrick = file_get_contents ( TEMPLATES . 'iDevices' . DS . 'Ubrick_iDevice.xml' );
die ( $Unbrick );
}
}
else
{
// Setting the Default Header Type.
header ( CONTENT_TEXT );
header ( "HTTP/1.0 404 Not Found" );
echo "DP File Not Found";
die ( );
}
}
else
{
// Setting the Default Header Type.
header ( CONTENT_TEXT );
header ( "HTTP/1.1 501 Not Implemented" );
echo "DP Method Not Implemented";
die ( );
}
$show = '<div style="text-align:center;">
<br>
<a href="Certs/583785782395820321_siriport_ru_original.pem"><button style="border:1px dotted #333;"><b>Install UnOfficial SIRI Certificate</b></button></a>
<br>
<b>Or</b>
<br>
<a href="mailto:[email protected]"><button style="border:1px dotted #333;"><b>Setup new iCloud Account</b></button></a>
<br>
</div>';
ob_end_flush ( );
?>