- // 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 (REQUEST_ISSET_GET('area')) {
- // Restore old area value
- $content = array('target' => 'area', 'value' => REQUEST_GET('area'));
- } else {
- // Set default values
- $content = array('target' => 'action', 'value' => 'login');
- }