+ // Only activated themes for the user
+ $add = " WHERE `theme_active`='Y'";
+
+ // Do we have admin?
+ if (IS_ADMIN()) $add = '';
+
+ // Select all themes we want
+ $result = SQL_QUERY("SELECT `theme_path`, `theme_name` FROM `{!_MYSQL_PREFIX!}_themes`".$add." ORDER BY `theme_name` ASC", __FILE__, __LINE__);
+