prepare(); $content->assignGlobal("THEME_URL",$theme_url); $content->assignGlobal("IMG_URL",$imgurl); $content->assignGlobal("DEFAULT_URL",$config['default_url']); // classes recruitment $select_class = mysql_query("SELECT * FROM LIF_classes WHERE active='1' ORDER BY Name ") or die(mysql_error()); while($class = mysql_fetch_array($select_class)){ $content->newBlock("CLASSLIST"); if($class['recruit_status']==0){ $name = "Closed"; $image = $class['image']."_u.png"; } else{ $name = "Open"; $image = $class['image'].".png"; } $content->assign(array( C_IMAGE => $image, C_NAME => $class['Name'], R_STATUS => $name )); } $content->gotoBlock("_ROOT"); // STATS & WHO IS ONLINE if($users != '0'){ while($userlist = mysql_fetch_array($select_user)){ // query comes from /includes/load.php $content->newBlock("MEMBERS"); $select_username = mysql_query("SELECT user_name FROM LIF_users WHERE user_id = '".$userlist['user_id']."'") or die(mysql_error()); $username = mysql_fetch_array($select_username); $content->assign("USERNAME", getFlag($userlist['user_id'])." ".$username['user_name']); $content->assign("USERID", "&u=".$userlist['user_id']); } } $content->gotoBlock( "_ROOT"); $query_hits = mysql_query("SELECT hits FROM hits WHERE hits_id='1'")or die(mysql_error()); $hits = mysql_fetch_array($query_hits); $content->assign("HITS", $hits['hits']); $content->assign("TOTAL", $total); $content->assign("GUESTS", $guests); require("bottom.php"); ?>