- $act = ""; $wht = "";
- if (!empty($GLOBALS['action'])) $act = SQL_ESCAPE($GLOBALS['action']);
- if (!empty($GLOBALS['what'])) $wht = SQL_ESCAPE($GLOBALS['what']);
- $OUT = THEME_SELECTION_BOX("login", $act, $wht, $result_themes);
-}
- elseif (($num_themes == 1) || ((!IS_ADMIN()) && ($num_themes == 0)))
-{
+ $act = ''; $wht = '';
+ if (isActionSet()) $act = getAction();
+ if (isWhatSet()) $wht = getWhat();
+ $OUT = generateThemeSelectionBox('login', $act, $wht, $result_themes);
+} elseif (($num_themes == 1) || ((!IS_ADMIN()) && ($num_themes == 0))) {