Rar! ϐs Jt V V f_@0q 㥬 宦 ⮢ 襬 \moduls\morepost.php ܄C ՁC;L7 EOE `̀ ܀H ) function morepost($cat,$blog)// ( ) { $result_index = mysql_query("SELECT title,id,nameurl FROM blog WHERE viewindex='1' AND cat='$cat' AND cat!='0' AND id!='$blog' ");// $myrow_index = mysql_fetch_array($result_index); if($myrow_index != "")// { $more = file("templates/morepost.html");// $more = implode("",$more);// // $ps = 0;// do { $post[$ps][0] = $myrow_index['title'];// $post[$ps][1] = $myrow_index['id'];//id $post[$ps][2] = $myrow_index['nameurl'];// $ps++;// } while($myrow_index = mysql_fetch_array($result_index)); // $ellem = count($post);// , if($ellem > 5)// 5- () { $maxr = $ellem - 1;// , for($i=0;$i<5;$i++) { $rand = rand(0, $maxr);// if(isset($post[$rand]))// { $gen[$i][0] = $post[$rand][0];// $gen[$i][1] = $post[$rand][1];// id $gen[$i][2] = $post[$rand][2];// unset($post[$rand]);// } else $i--;// , } $li = listMOREpost($gen);// } else $li = listMOREpost($post);// 5- $more = str_replace("[_more]",$li,$more);// - return $more;// html } else return "";// } //------------------------------------------------------ function listMOREpost($massiv)// () { global $chpu; for($i=0;isset($massiv[$i]);$i++) { if($chpu == 0)$li .= "
[end]
","",$myrow_index[text]);// - //(, [end] , " ") // include("moduls/morepost.php"); $more = morepost($myrow_index['cat'],$blog); $sm_read = str_replace("[_morepost]",$more,$sm_read); // // $sm_read = str_replace("[_text]",$text,$sm_read);// $sm_read = str_replace("[_title]",$myrow_index[title],$sm_read);// $sm_read = str_replace("[_author]",$myrow_index[author],$sm_read);// $sm_read = str_replace("[_date_b]",$myrow_index[date_b],$sm_read);// } else $sm_read = "";// , $result[0] = $sm_read; $result[1] = $myrow_index[viewcomm]; return $result;// html } ?>t @0u 㥬 宦 ⮢ 襬 \templates\morepost.html ܄C ՁC;L7 EOE `̀ ܀H .<