- // Reset variables
- $MSG1 = ""; $MSG2 = "";
- } else {
- // Set constants to empty for hiding them
- define('__MSG_LOGIN', "");
- define('__MSG_PASS' , "");
- }
-
- // Load login form
- if (!empty($GLOBALS['what'])) {
- // Restore old what value
- $content = array('target' => "what", 'value' => $GLOBALS['what']);
- } elseif (!empty($GLOBALS['action'])) {
- if ($GLOBALS['action'] != "logout") {
- // Restore old action value
- $content = array('target' => "action", 'value' => $GLOBALS['action']);
- } else {
- // Set default values
- $content = array('target' => "action", 'value' => "login");
- }
- } elseif (!empty($_GET['area'])) {
- // Restore old area value
- $content = array('target' => "area", 'value' => $_GET['area']);
- } else {
- // Set default values
- $content = array('target' => "action", 'value' => "login");
- }