if( !isset($_COOKIE["create_unaoc"]) && !isset($_POST["submit"]))
echo "
“;
else if(!isset($_COOKIE["create_unaoc"]) && isset($_POST["submit"]) )
{
$con = mysql_connect(‘localhost’, ‘lgn’, ‘qlnNvlcgvg6OR’);
if (!$con)
{
die(‘Could not connect: ‘ . mysql_error());
}
mysql_select_db(createunaoc, $con);
$user = strtoupper($_POST['user']);
$pass = $_POST['pass'];
$result = mysql_query(“SELECT * FROM login WHERE user = ‘$user’ AND pass = ‘$pass’ “) or die(mysql_error());
if(mysql_num_rows($result) != 0 )
{
$row = mysql_fetch_array($result);
$auth_key = $row['auth_key'];
if(!isset($_POST['id']) || $_POST['id'] == 1)
include “/var/www/domains/unaoc.org/www/htdocs/wp-content/themes/lgn-create/profile.php”; #Here’s the code to change for the profile
else if($_POST['id'] ==2)
include “/var/www/domains/unaoc.org/www/htdocs/wp-content/themes/lgn-create/details.php”;
else if($_POST['id'] ==3)
include “/var/www/domains/unaoc.org/www/htdocs/wp-content/themes/lgn-create/submit.php”;
else if($_POST['id'] == 4)
include “/var/www/domains/unaoc.org/www/htdocs/wp-content/themes/lgn-create/cpanel.php”;
echo “
“; }
else
{
echo “ Incorrect Login Details “;
echo “
“;
}
}
else if(isset($_COOKIE["create_unaoc"]))
{
$con = mysql_connect(‘localhost’, ‘lgn’, ‘qlnNvlcgvg6OR’);
if (!$con)
{
die(‘Could not connect: ‘ . mysql_error());
}
mysql_select_db(createunaoc, $con);
$auth_key = $_COOKIE['create_unaoc'];
$result = mysql_query(” SELECT * FROM login WHERE auth_key LIKE ‘$auth_key’ “) or die(mysql_error());
if(mysql_num_rows($result) != 0)
{
$row = mysql_fetch_array($result);
$user = $row['user'];
if(!isset($_POST['id']) || $_POST['id'] == 1)
include “/var/www/domains/unaoc.org/www/htdocs/wp-content/themes/lgn-create/profile.php”; #Here’s the code to change for the profile
else if($_POST['id'] ==2)
include “/var/www/domains/unaoc.org/www/htdocs/wp-content/themes/lgn-create/details.php”;
else if($_POST['id'] ==3)
include “/var/www/domains/unaoc.org/www/htdocs/wp-content/themes/lgn-create/submit.php”;
else if($_POST['id'] == 4)
include “/var/www/domains/unaoc.org/www/htdocs/wp-content/themes/lgn-create/cpanel.php”;
}
else
{
echo “
“;
}
}
?>











