Temp = $PhpGroup_style['def_style']; $tpl->Cache = "easycache"; //get the can name in the right page $selectc = @mysql_db_query("$dbName", "SELECT * FROM `cat` WHERE `cat_group` = '1' ORDER BY `cat`.`cat_display` ASC ") ; while ($s = @mysql_fetch_assoc($selectc)){ $cat[] = $s ; } @mysql_free_result($selectc); //loginbox loginbox( $login ); //get the last new poem $selectnewdivan = mysql_db_query("$dbName", "SELECT * FROM `divan` WHERE `divan_group` = '1' ORDER BY `divan_id` DESC LIMIT 10") ; while ($ndivan = @mysql_fetch_assoc($selectnewdivan)){ $nd[] = $ndivan ; } @mysql_free_result($selectnewdivan); //statistics $selectcount= mysql_db_query("$dbName", "SELECT * FROM cat;") ; $totalcat = mysql_affected_rows(); @mysql_free_result($selectcount); $selectcount= mysql_db_query("$dbName", "SELECT * FROM divan;") ; $totaldivan = mysql_affected_rows(); @mysql_free_result($selectcount); $selectcount= mysql_db_query("$dbName", "SELECT * FROM users;") ; $totalusers = mysql_affected_rows(); @mysql_free_result($selectcount); //getcat info $username = $_COOKIE[traidusername]; $password = $_COOKIE[traiduserpassword]; $userid = $_COOKIE[traiduserid]; $subtitle = "   -   معلومات الشاعر "; echo $tpl->display("headerinclude.html"); //header echo $tpl->display("header.html"); //endheader echo $tpl->display("bodyinclude.html"); if (($close) == ('yes')){ echo $tpl->display("message.html"); traidntright(); echo $tpl->display("footer.html"); exit(); } //page body $insert = @mysql_db_query("$dbName", "SELECT * FROM `pages` WHERE `page_id` = '1' ") ; while ($v = mysql_fetch_array($insert)){ $cv = $v[page_value]; } $message = stripslashes($cv); echo $tpl->display("message.html"); //page body traidntright(); echo $tpl->display("footer.html"); //page footer ob_end_flush(); ?> ?>