sql_query("SELECT tid FROM ".$prefix."_nsnts_themes"); $id_cache = array(); while($row = $db->sql_fetchrow($result)) { $id_cache[] = $row['tid']; } mt_srand((double) microtime() * 1000000); $random = $id_cache[rand(0,count($id_cache))]; unset($id_cache); $random = intval($random); @include_once("includes/nsnts_func.php"); $ts_config = tsget_configs(); $rantheme = $db->sql_fetchrow($db->sql_query("SELECT * from $prefix"._nsnts_themes." WHERE tid=$random")); $new_size = tssize_image($rantheme['thumb'], $ts_config['thumbwidth'], $ts_config['thumbheight']); $content .= "
".$rantheme['title']."

\n"; $content .= "
".$theme[

\n"; $content .= "
"._TS_MORETHEMES."
\n"; ?>