////////////////////////////////////////////////////////////// //Instantiate the Classes $oR3DCQuery = new CR3DCQuery($config); $oAdmin = new CAdmin($config); $bCronEnabled = $oR3DCQuery->IsCronManagementEnabled(); ////////////////////////////////////////////////////////////// //////////////////////////////////////////////// //Login Processing //////////////////////////////////////////////// $uName = trim($_POST['txtName']); $pWRD = trim($_POST['txtPassword']); //Check if admin is logged in already if (isset($_SESSION['LOGIN'])) { header('Location: ./admin_main.php'); } else { if ($oAdmin->AdminLogin($uName, $pWRD)) { $_SESSION['UNAME'] = $uName; $_SESSION['LOGIN'] = true; header('Location: ./admin_main.php'); } } //////////////////////////////////////////////// if (!$bCronEnabled) { if ($oR3DCQuery->ELOIsActive()) { $oR3DCQuery->ELOCreateRatings(); } $oR3DCQuery->MangeGameTimeOuts(); } ?> <html>