/var/www/(Del)rep-gaming.com/webadmin/autologin.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
header
('X-UA-Compatible: IE=edge,chrome=1');
if(isSet(
$cookie_name))
{
    
// Check if the cookie exists
if(isSet($_COOKIE[$cookie_name]))
    {
    
parse_str($_COOKIE[$cookie_name]);

    
// Make a verification

    
if(($usr == $config_loginname) && ($hash == md5($config_password)))
        {
        
// Register the session
        
$_SESSION['loginname'] = $config_loginname;
        }
    }
}
?>