- // Load URL for login
- LOAD_URL(URL."/modules.php?module=admin&action=login");
- } // END - if
- break;
- }
- }
-
- // Whas that action okay?
- if ($ret != "done") {
- // Fixes another "Notice"
- if (!empty($_POST['login'])) {
- define('__LOGIN_VALUE', $_POST['login']);
- } else {
- define('__LOGIN_VALUE', "");
- }
-
- // Yet-another "Notice" fix
- if ((!empty($_POST['ok'])) && ($_POST['ok'] == "***")) {
- // No login entered?
- if (empty($_POST['login'])) $MSG1 = ADMIN_NO_LOGIN;
-
- // An error comes back from registration?
- if (!empty($ret)) $MSG1 = $ret;
-
- // No password entered?
- if (empty($_POST['pass'])) $MSG2 = ADMIN_NO_PASS;
-
- // Or password too short?
- if (strlen($_POST['pass']) < 4) $MSG2 = ADMIN_SHORT_PASS;
-
- // Output error messages
- define('__MSG_LOGIN', LOAD_TEMPLATE("admin_login_msg", true, $MSG1));
- define('__MSG_PASS', LOAD_TEMPLATE("admin_login_msg", true, $MSG2));
-
- // Reset variables
- $MSG1 = ""; $MSG2 = "";
- } else {
- // Reset values to nothing
- define('__MSG_LOGIN', "");
- define('__MSG_PASS' , "");
- }
-
- // Load register template
- LOAD_TEMPLATE("admin_reg_form");
- }
-} elseif (isset($_GET['reset_pass'])) {