get_row("select * from category where category_id = '1'"); $page_desc = stripslashes($page_rs['long_desc']); $page_posted_date = date("F j, Y", $page_rs['posted_date']); //latest articles $news_rs = $db->get_matrix("select * from article where status = '1' order by posted_date desc limit 5"); preg_match("/<{latesta_s}>(.*?)<{latesta_e}>/s",$returncontent,$out); $str = ""; $myvar = $out[0]; for($i=0; $i/e","$$1",$myvar); } $returncontent = preg_replace("/<{latesta_s}>(.*?)<{latesta_e}>/s",$str,$returncontent); //latest news $news_rs = $db->get_matrix("select * from news where status = '1' order by posted_date desc limit 5"); preg_match("/<{latestn_s}>(.*?)<{latestn_e}>/s",$returncontent,$out); $str = ""; $myvar = $out[0]; for($i=0; $i/e","$$1",$myvar); } $returncontent = preg_replace("/<{latestn_s}>(.*?)<{latestn_e}>/s",$str,$returncontent); $max_cnt_tags_rs = $db->get_row("select max(hits) from search_tag"); $maxSize = $max_cnt_tags_rs[0]; $multiplier = 300 / $maxSize; $minFontSize = 30; $search_tags_rs = $db->get_matrix("select * from search_tag where hits > 3 order by rand() limit 35"); $search_tags = ''; for($i=0;$i'.$search_tags_rs[$i]['search_item'].' '; } $returncontent=preg_replace("/{{(.*?)}}/e","$$1",$returncontent); echo $returncontent; include "footer.php"; ?>