|
@@ -11,16 +11,16 @@ if (isset($_REQUEST['logout'])) {
|
|
|
logout();
|
|
logout();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-# Process login
|
|
|
|
|
-if (isset($_POST['username']) && isset($_POST['password'])) {
|
|
|
|
|
- login($_POST['username'], $_POST['password']);
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
# Redirect if we're already authenticated
|
|
# Redirect if we're already authenticated
|
|
|
if (authenticated()) {
|
|
if (authenticated()) {
|
|
|
login_redirect();
|
|
login_redirect();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+# Process login
|
|
|
|
|
+if (isset($_POST['username']) && isset($_POST['password'])) {
|
|
|
|
|
+ login($_POST['username'], $_POST['password']);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
#=========================================================================================
|
|
#=========================================================================================
|
|
|
|
|
|
|
|
printHeader('UberZach TV - Login');
|
|
printHeader('UberZach TV - Login');
|