-
Notifications
You must be signed in to change notification settings - Fork 75
/
Get_Access.php
executable file
·62 lines (51 loc) · 1.54 KB
/
Get_Access.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
session_start ( );
require_once ( 'doulCi.Core.php' );
// Enable Maintenance Support
if ( $doulCi_Maintenance == true )
{
require_once ( SYS_IMPORTANT_FILES . 'doulCiMaintenance.php' );
}
if ( isset ( $_GET [ 'access' ] ) && ( $_GET [ 'access' ] == "request" ) )
{
// Setting the Default Header Type.
Header ( CONTENT_HTML );
if ( ( strpos ( $_SERVER [ 'HTTP_USER_AGENT' ], 'MT doulCi Activator' ) !== falsee ) or ( strpos ( $_SERVER [ 'HTTP_USER_AGENT' ], 'GadgetWide' ) !== false ) or ( strpos ( $_SERVER [ 'HTTP_USER_AGENT' ], USER_AGENT_DOULCI ) !== false ) )
{
// Get Authorization and Let's do some Business :)
$doulCi_Get_Auth = get_ip_address ( );
$doulCi_Verify_Auth = file_put_contents ( DOULCI_AUTH_DIRECTORY . DS . $doulCi_Get_Auth, $_SERVER [ 'HTTP_USER_AGENT' ] );
if ( $doulCi_Verify_Auth )
{
$Result = "doulCi is now working for you! thanks for using it.";
}
else
{
$Result = "Payment has not yet bean set!";
}
}
else
{
// Stop direct access.
$Result = "It's not working this way !";
}
echo $Result;
}
elseif ( isset ( $_GET [ 'access' ] ) && ( $_GET [ 'access' ] == "done" ) )
{
// Get Authorization and Let's do some Business :)
$doulCi_Get_Auth = get_ip_address ( );
$doulCi_Remove_Auth = DOULCI_AUTH_DIRECTORY . DS . $doulCi_Get_Auth;
@unlink ( $doulCi_Remove_Auth );
echo "Thank you for using doulCi Server.";
}
else
{
// Setting the Default Header Type.
header ( CONTENT_TEXT );
header ( "HTTP/1.1 501 Not Implemented" );
echo "Method not implemented";
die ( );
}
ob_end_flush ( );
?>