session_start();
$now = date("l, F j, Y");
$confirmationMessage = "
Today is $now
";
date_default_timezone_set('America/Los_Angeles');
include("../meta/mysql/mysqli_connect_solyz2024.php");
if (isset($_POST))
{
// bear value means there is a password. route the user.
if(isset($_POST['bear']))
{
// a password has been submitted
$thisURL = mysqli_real_escape_string($mysqli,$_POST['url']);
$thisLion = mysqli_real_escape_string($mysqli,$_POST['lion']);
$thisTiger = mysqli_real_escape_string($mysqli,$_POST['tiger']);
$thisBear = mysqli_real_escape_string($mysqli,$_POST['bear']);
/*
if ($uname != "" && $password != "")
{
$sql_query = "
select count(*) as cntUser
from user_attribute ua1, user_attribute ua2, user u, user_attribute ua3
where ua1.type='School Email' and ua1.value='$uname'
and ua1.id=ua2.id
and ua2.type='Password' and ua2.value='$password'
and ua2.id = u.id
and u.type='System User'
AND u.id = ua3.id
AND ua3.type='Role'
AND ua3.name='Codex Administrator'
AND ua3.value = 'Yes'
";
$result = mysqli_query($mysqli,$sql_query);
$row = mysqli_fetch_array($result);
$count = $row['cntUser'];
echo $count;
if($count == 1){
$_SESSION['uname'] = $uname;
header('Location: home.php');
}else
if ($thisURL == "https://www.annevanyoga.com" && $thisLion=="annevan" && $thisBear == "2024potatoes!")
{
$_SESSION['website'] = "annevanyoga.com";
$_SESSION['uname'] = $thisLion;
header('Location: janus/');
}
else
{
$confirmationMessage = "You've entered a combination of information that is not recognized.";
}
}
*/
if ($thisURL == "https://www.annevanyoga.com" && $thisLion=="annevan" && $thisBear == "2024potatoes!")
{
$_SESSION['website'] = "annevanyoga.com";
$_SESSION['uname'] = $thisLion;
header('Location: janus/');
}
elseif ($thisURL == "https://www.jerksatwork.com" && $thisLion=="askken" && $thisBear == "2024snowfall!")
{
$_SESSION['website'] = "jerksatwork.com";
$_SESSION['uname'] = $thisLion;
header('Location: ponos/');
}
elseif ($thisURL == "https://www.unknownsubject.com" && $thisLion=="eugene" && $thisBear == "theia=vision")
{
$_SESSION['website'] = "unknownsubject.com";
$_SESSION['uname'] = $thisLion;
header('Location: theia/');
}
elseif ($thisURL == "https://www.artistmeta.com" && $thisLion=="eugene" && $thisBear == "hephaestus=artists")
{
$_SESSION['website'] = "artistmeta.com";
$_SESSION['uname'] = $thisLion;
header('Location: hephaestus/');
}
else
{
$confirmationMessage = "
You've entered a combination of information that is not recognized.";
}
}
}
$thisContent = "
$confirmationMessage
";
?>
change the website!