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