php session_start sec_cookie_value cookie_passport if isset _POST subm

 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
<?php
session_start();
$sec_cookie_value = "cookie_passport";
if( isset($_POST['submit'])) {
if( $_SESSION['security_code'] == $_POST['security_code']
&&
!empty($_SESSION['security_code'] ) ) {
// SET COOKIES
setcookie("cookie_shield", $sec_cookie_value, time()+3600); // 1 hour
// Redirect to site or Forum
echo '<SCRIPT language="JavaScript">window.location="http://server-help.ru/";</SCRIP\
T>';
unset($_SESSION['security_code']);
} else {
// Repeat please again or you will be banned
echo '<SCRIPT language="JavaScript">window.location="http://server-help.ru/";</SCRIP\
T>';
}
} else {
echo base64_decode('PGZvcm0gYWN0aW9uPSJmb3JtLnBocCIgbWV0aG9kPSJwb3N0Ij4NCiAgICAgICAgICAgICAgICA8
aW1nIHNyYz0iQ2FwdGNoYVNlY3VyaXR5SW1hZ2VzLnBocD93aWR0aD0xMzAmaGVpZ2h0PTUwJmNoYXJhY3RlcnM9NSIgLz48YnIgLz4NCiAg\
ICAgICAgICAgICAgICA8bGFiZWwgZm9yPSJzZWN1cml0eV9jb2RlIj5WdmVkaXRlIGtvZDogPC9sYWJlbD48aW5wdXQgaWQ9InNlY3VyaXR5\
X2NvZGUiIG5hbWU9InNlY3VyaXR5X2NvZGUiIHR5cGU9InRleHQiIC8+PGJyIC8+DQogICAgICAgICAgICAgICAgPGlucHV0IHR5cGU9InN1\
Ym1pdCIgbmFtZT0ic3VibWl0IiB2YWx1ZT0iU3VibWl0IiAvPg0KICAgICAgICA8L2Zvcm0+DQoNCg==');
}
?>