select("user", "user_prefs", "user_prefs REGEXP('sitetheme') "); while ($row = $sql->fetch()) { $up = (substr($row['user_prefs'],0,5) == "array") ? e107::unserialize($row['user_prefs']) : unserialize($row['user_prefs']); if (isset($themecount[$up['sitetheme']])) { $themecount[$up['sitetheme']]++; } } $defaultusers = $sql->count("user") - $totalct; $themecount[$defaulttheme] += $defaultusers; $text = "
"; $ns->tablerender(LAN_UMENU_THEME_2, $text, 'usertheme'); } } ?>