-if ($num_themes > 1)
-{
- // If more than 1 is installed output selection box
- $act = "";
- if (!empty($GLOBALS['action'])) $act = SQL_ESCAPE($GLOBALS['action']);
- $OUT = THEME_SELECTION_BOX("index", $act, $GLOBALS['what'], $result_themes);
+// Get total num
+if (isAdmin()) {
+ // Load all themes for admin
+ $num_themes = countSumTotalData('', 'themes', 'id', '', true);
+} else {
+ // Load only active designs for user
+ $num_themes = countSumTotalData('Y', 'themes', 'id', 'theme_active', true);