"; $catsmktba = filler(intval($_GET['catsmktba'])); $catid = filler(intval($_GET['catid'])); if(!$catid){}else{$catsmktba=$catid;} $awaa=mysql_query("select * from cat where catid='$catsmktba'"); while($row=mysql_fetch_row($awaa)) { $catid=$row[0]; if($row[2]==16 || $row[4]==16) { $catsmktba=16; } elseif($row[2]==1) { $catsmktba=$row[0]; } else { $catsmktba=$row[4]; } } if($_GET['page']) { $page = filler(intval($_GET['page'])); } $quranyy =qurany (); if($quranyy) { islamy($quranyy); } if($_GET['pagec']) { $pagec = filler(intval($_GET['pagec'])); } function block_cat($catsmktba,$ratteb) { $w=mysql_query("select * from block where rtl=4 and showcat='$catsmktba' and ratteb='$ratteb' order by ratteb asc"); while($rowr=mysql_fetch_row($w)) { $rowr[4]=stripslashes($rowr[4]); $titleblock="$rowr[1]"; block1("$titleblock","$rowr[4]","left",$catsmktba); } } $w=mysql_query("select * from cat where catid='$catsmktba' "); while($row=mysql_fetch_row($w)) { $row22222= explode ("||" ,$row[7]); $cat_url=basename("$row22222[0]",".php"); $cat_id="$row[0]"; $parentcatid=$row[2]; $numplay=$row[8]; $numtable=$row[10]; $numcat=$row[9]; $showcat=$row[4]; $catby=substr($row[5],0,1); $playby=substr($row[5],1,2); $cat_name=$cat_name[$cat_url]; $cats_name=$cats_name[$cat_url]; if(!$catid) { $catid=$cat_id; } if(!$cat_name) { $cat_name=$lag_cat_name; } if(!$cats_name) { $cats_name=$lag_cats_name; } if(!$play_name) { $play_name=$lag_play_name; } if(!$plays_name) { $plays_name=$lag_plays_name; } } if($showcat==3 && !$_SESSION['iduser'] ) { a3lan_def_up(); ads("||$catsmktba"); do_html_1("$lag_cat_name $lag_orrer",$catsmktba); $ssrrt=" « $lag_require $lag_login $lag_for_seecat » "; do_html_2("$lag_cat_only_users","$ssrrt",$catsmktba,$catsmktba); ?> > $row[1]"; } } if($row11=='5') { $cat_url=$row77; $playby=substr($row55,1,2); $play_name="play_name_".$cat_url; $play_name=$$play_name; $plays_name="plays_name_".$cat_url; $plays_name=$$plays_name; } else { $play_name="play_name_".$cat_url; $play_name=$$play_name; $plays_name="plays_name_".$cat_url; $plays_name=$$plays_name; } if($_GET['hgkudsifadv']) { fadvshgl(md5($_GET['hgkudsifadv']),$_GET['fadvhgkudsi']); } if($_GET['hgkudsifadv']) { fadvshg2(md5($_GET['hgkudsifadv']),$_GET['fadvhgkudsi']); } if(!$cat_id|| $parentcatid!=1 ||$catid==1 ||$catby==4||$catby==3||$parentcat==1||$showcat==2) { a3lan_def_up(); ads("||$catsmktba"); do_html_1("$lag_cat_name $lag_orrer",$catsmktba); do_html_2("$lag_cat_name $lag_orrer","$lag_orrer_cat",$catsmktba,$catsmktba); ?> \n"; block_cat($catsmktba,"1"); if($cat_id!=$catid) { $s=("select * from cat WHERE parentcatid='$catid' "); } else { $s=("select * from cat WHERE showcat='$cat_id' "); } $w=mysql_query("select * from play where catid='$catid' and ctid2!='10000000' order by counter desc limit 5"); $w=mysql_query($s); $tit=count_num($catid,"cat"); $sql1a = mysql_query("select * from play where catid='$catid' and ctid2!='10000000' order by id desc limit 1"); while($rowte=mysql_fetch_row($sql1a)) { $datath=$rowte[8]; } $teet=count_num($catid,"play"); Eval("\$test1= \"".get("blocks/statcatplay")."\";"); $sis= $test1; $lblockstat=explode('|' , $leftblock); foreach ($lblockstat as $lblockstat){ if($lblockstat=='stat') { block1("$lag_sis $lag_cat_name",$sis,"left",$catsmktba); block_cat($catsmktba,"2"); } } $lblocksrch=explode('|' , $leftblock); foreach ($lblocksrch as $lblocksrch){ if($lblocksrch=='search') { $block_se="
$lag_name $play_name
"; if($cat_url ==articles) { $block_se.= "
$lag_articles $play_name
";} elseif($cat_url ==ftwa) { $block_se.= "
$lag_name $lag_ftwa
"; $block_se.= "
رقم $play_name
";} elseif($cat_url ==books) { $block_se.= "
$lag_name $lag_books
";} else { $block_se.= "
$lag_name $cat_name
"; } if($cat_url ==anasheed) { $block_se.= "
$lag_name $lag_anashed
";} $block_se.= "
\n"; block1("$lag_searsh_q",$block_se,"left",$catsmktba); block_cat($catsmktba,"3"); } } if($cat_url ==flash || $cat_url ==backgrounds) { $limit=5; } else { $limit=7; } if($cat_id!=$catid) { $new_cat3 = array(); $new_cat4 = array(); $new_cat5 = array(); $new_cat3_cat =""; $new_cat3_play = ""; $new_cat4_cat =""; $new_cat4_play = ""; $new_cat5_cat =""; $new_cat5_play = ""; $new_cat3sql = "select * from cat where parentcatid = {$catid}"; $new_cat3query = mysql_query($new_cat3sql); while ($new_cat3row = mysql_fetch_array($new_cat3query)){ $new_cat3[] = $new_cat3row[0]; $new_cat4sql = "select * from cat where parentcatid = {$new_cat3row[0]}"; $new_cat4query = mysql_query($new_cat4sql); while ($new_cat4row = mysql_fetch_array($new_cat4query)){ $new_cat4[] = $new_cat4row[0]; $new_cat5sql = "select * from cat where parentcatid = {$new_cat4row[0]}"; $new_cat5query = mysql_query($new_cat5sql); while ($new_cat5row = mysql_fetch_array($new_cat5query)){ $new_cat5[] = $new_cat5row[0]; } } } if(count($new_cat5)>0){ $new_cat5 = array_unique($new_cat5); $new_cat5_cat .= " or parentcatid ="; $new_cat5_cat .= implode(" or parentcatid = ",$new_cat5); $new_cat5_play .= " or catid ="; $new_cat5_play .= implode(" or catid = ",$new_cat5); }else{ $new_cat5_cat = NULL; $new_cat5_play = NULL ; } if(count($new_cat4)>0){ $new_cat4 = array_unique($new_cat4); $new_cat4_cat .= " or parentcatid ="; $new_cat4_cat .= implode(" or parentcatid = ",$new_cat4); $new_cat4_play .= " or catid ="; $new_cat4_play .= implode(" or catid = ",$new_cat4); }else{ $new_cat4_cat = NULL; $new_cat4_play = NULL ; } if(count($new_cat3)>0){ $new_cat3 = array_unique($new_cat3); $new_cat3_cat .= " or parentcatid ="; $new_cat3_cat .= implode(" or parentcatid = ",$new_cat3); $new_cat3_play .= " or catid ="; $new_cat3_play .= implode(" or catid = ",$new_cat3); }else{ $new_cat3_cat = NULL; $new_cat3_play = NULL ; } } if($cat_id==$catid) { $w=mysql_query("select * from play where ctid='$catid' and ctid2!='10000000' order by id desc limit $limit"); }else { $w=mysql_query("select * from play where ctid2='$catid' or catid='$catid' $new_cat3_play $new_cat4_play $new_cat5_play and ctid2!='10000000' order by id desc limit $limit"); } while($row=mysql_fetch_row($w)) { if($cat_id==$catid) { $wsw=mysql_query("select * from cat where catid='$row[1]' "); while($rsw=mysql_fetch_row($wsw)) { $namecat=$rsw[1]; } } if($cat_url=="quran" ||$cat_url=="lectures"||$cat_url=="articles") { $imagecat="images/cat/$cat_url.gif"; } else { if(!$row[4]) { $imagecat="images/cat/$cat_url.gif"; } else { $imagecat=$row[4]; } } $name=$row[2]; if($htmlorphp==1) { $com="play-$row[0].html"; } else { $com="play.php?catsmktba=$row[0]"; } Eval("\$test1= \"".get("$cat_url/block")."\";"); $newplay.= $test1; } $lblocknew=explode('|' , $leftblock); foreach ($lblocknew as $lblocknew){ if($lblocknew=='newcat') { block1("$lag_new $lag_cat_name",$newplay,"left",$catsmktba); block_cat($catsmktba,"4"); } } if($cat_id==$catid) { $w=mysql_query("select * from play where ctid='$catid' and ctid2!='10000000' order by counter desc limit $limit"); }else { $w=mysql_query("select * from play where ctid2='$catid' or catid='$catid' $new_cat3_play $new_cat4_play $new_cat5_play and ctid2!='10000000' order by counter desc limit $limit"); } while($row=mysql_fetch_row($w)) { if($cat_id==$catid) { $wsw=mysql_query("select * from cat where catid='$row[1]' "); while($rsw=mysql_fetch_row($wsw)) { $namecat=$rsw[1]; } } if($cat_url=="quran" ||$cat_url=="lectures"||$cat_url=="articles") { $imagecat="images/cat/$cat_url.gif"; } else { if(!$row[4]) { $imagecat="images/cat/$cat_url.gif"; } else { $imagecat=$row[4]; } } $name=$row[2]; if($htmlorphp==1) { $com="play-$row[0].html"; } else { $com="play.php?catsmktba=$row[0]"; } Eval("\$test1= \"".get("$cat_url/block")."\";"); $conplay.= $test1; } $lblockindex=explode('|' , $leftblock); foreach ($lblockindex as $lblockindex){ if($lblockindex=='indexblock') { block_l(); } } $lblockvisit=explode('|' , $leftblock); foreach ($lblockvisit as $lblockvisit){ if($lblockvisit=='mostvisit') { block1("$lag_more $lag_visit",$conplay,"left",$catsmktba); block_cat($catsmktba,"5"); } } echo "

"; } a3lan_def_up(); ads("||$catsmktba"); $w=mysql_query("select * from cat where catid='$catid' "); while($row=mysql_fetch_row($w)) { $titl=$row[1]; $idcat=$row[0]; $cattidd=$row[2]; $imgcat=$row[7]; } if($no3) { $nooo3="$no3.php"; $w=mysql_query("select * from cat where comment='$nooo3' "); while($row=mysql_fetch_row($w)) { $numplay=$row[8]; $numtable=$row[10]; $numcat=$row[9]; $catby=substr($row[5],0,1); $playby=substr($row[5],1,2); } } $wc=mysql_query("select * from cat where catid='$catid' "); while($rc=mysql_fetch_row($wc)) { if($rc[2]==1||$rc[0]==1) { } else { $namecat= ">> $rc[1]"; if($htmlorphp==1) { $namec1=" >> $rc[1] "; } else { $namec1=" >> $rc[1] "; } } $wc1=mysql_query("select * from cat where catid='$rc[2]' "); while($rc1=mysql_fetch_row($wc1)) { if($rc1[2]==1||$rc1[0]==1) { }else { if($htmlorphp==1) { $namec2=" >> $rc1[1] "; } else { $namec2=" >> $rc1[1] "; } } $wc2=mysql_query("select * from cat where catid='$rc1[2]' "); while($rc2=mysql_fetch_row($wc2)) { if($rc2[2]==1||$rc2[0]==1) { }else { if($htmlorphp==1) { $namec3=" >> $rc2[1] "; } else { $namec3=" >> $rc2[1] "; } } $wc3=mysql_query("select * from cat where catid='$rc2[2]' "); while($rc3=mysql_fetch_row($wc3)) { if($rc3[2]==1||$rc3[0]==1) { }else { if($htmlorphp==1) { $namec4=" >> $rc3[1] "; } else { $namec4=" >> $rc3[1] "; } } } } } } $wss=mysql_query("select * from cat where catid='$catsmktba' "); while($rowss=mysql_fetch_row($wss)) { $sahm=$rowss[11]; } $w=mysql_query("select * from cat where catid='$catsmktba'"); while($row=mysql_fetch_row($w)) { $name=$row[1]; } $sqlcla=mysql_query("select * from satting where catid='$catsmktba' limit 1"); while($rowcla=mysql_fetch_row($sqlcla)) { $classify=$rowcla[16]; } if($classify=='1' || $classify=='2') { $namec0= " >> $name"; } else { if($htmlorphp==1) { $namec0= " >> $name "; } else { $namec0= " >> $name "; } } if($htmlorphp==1) { $indexx= " $lag_index "; } else { $indexx= " $lag_index "; } $namec=" $indexx $namec0 $namec4 $namec3 $namec2 $namec1 "; echo "

$namec
"; if($dir=="rtl"){$alignrr="right";}else{$alignrr="left";} echo "
   "; if( ( $sahm==1 || $sahm==3 ) && $catid!=16) { if($catsmktba==16) { $adjwa="&cat_id=$catid"; $play_name=$lag_play_name; } echo "    $lag_add2 $play_name
"; } $wosetextra12 =mysql_query("SELECT * FROM `setextra` where id=12 limit 1"); while($rowsetextra12 =mysql_fetch_row($wosetextra12)) { $sharecat = $rowsetextra12[2] ; } if($sharecat != 2) { include_once("sharecat.php"); echo $share; } if($action==classify) { do_html_1($titl,$catsmktba); include("classify.php"); exit; } elseif($action==edit) { $sqledi=mysql_query("select * from cat where catid='$catid'"); while($rowedi=mysql_fetch_row($sqledi)) { $cattname=$rowedi[1]; $cattimage=$rowedi[7]; } $playedit.="
"; $playedit.=""; $playedit.=""; if($cat_url=="lectures" || $cat_url=="quran") { $playedit.=""; } else { $playedit.=""; } $playedit.=""; $playedit.="
اسم $cat_name
تعليق على $cat_name
صورة $cat_name
إذا لا يوجد صورة يرجى تركها فارغة
"; } elseif($action==doedit && $_SESSION['admin'] && isset($_REQUEST['ecattname']) ) { $ecattname=$_REQUEST['ecattname']; $ecattimage=$_REQUEST['ecattimage']; mysql_query("update cat set catname='$ecattname' , comment='$ecattimage' where catid='$catid'"); $playedit.="تم تعديل البيانات بنجاح"; echo""; } $w=mysql_query("select * from block where rtl=4 and showcat='$catsmktba' and ratteb='7' order by ratteb asc"); while($rowr=mysql_fetch_row($w)) { $rowr[4]=stripslashes($rowr[4]); do_html_2(" $rowr[1]","$rowr[4]",$catsmktba,$catsmktba); } $ww1=mysql_query("select * from cat where parentcatid='$catid' "); $cat21=mysql_num_rows($ww1); $ww=mysql_query("select * from play where catid='$catid' "); $cat2=mysql_num_rows($ww); do_html_1($titl,$catsmktba); if($cat21==0) { } else { $queryabc = mysql_query("select * from satting where catid = $catsmktba limit 1"); while ($row_autoabc1 = mysql_fetch_row($queryabc)) { $showabc = $row_autoabc1[11]; $visitoraligncat = $row_autoabc1[12]; $visitorshowcat = $row_autoabc1[13]; $visitoralignplay = $row_autoabc1[14]; $visitorshowplay= $row_autoabc1[15]; } if($showabc == 2 && $catsmktba==$catid) { $cat.= "

الكل    إ  ا  أ  آ  ب  ت  ث  ج  ح  خ  د  ذ  ر  ز  س  ش  ص  ض  ط  ظ  ع  غ  ف  ق  ك  ل  م  ن  ه  و  ي 

"; } if (isset($_COOKIE["user_cat".$catsmktba])) { $newcatbyy_ar=explode("_",$_COOKIE["user_cat".$catsmktba]); if(($newcatbyy_ar[1]==$catsmktba)) { $newcatbyy =$newcatbyy_ar[0]; $newcatby = $newcatbyy_ar[0]; } else { $newcatby = $catby;} } else { $newcatby = $catby;} if($newcatbyy == 1){ $selectcaty1="selected"; } elseif($newcatbyy == 2) { $selectcaty2="selected"; } elseif($newcatbyy == 7) { $selectcaty7="selected"; } elseif($newcatbyy == 6) { $selectcaty6="selected"; } elseif($newcatbyy == 5) { $selectcaty5="selected"; } if(!$visitoraligncat) { $visitoraligncat ="left"; } if($visitorshowcat !=2 ) { $cat.= "
"; } if($visitorshowcat ==2 ) { $newcatby = $catby; } if(!file_exists("cat/$cat_url/catup.html")) { $cat.= "\n"; } else { $cat.= "
\n"; Eval("\$cat.= \"".get("$cat_url/catup")."\";"); } $i=1; if($cat_url==jwal) { $doo=" and showcat='1' "; } if($newcatby=="1"){$ordercat=" ratteb asc ";} elseif($newcatby=="2"){$ordercat=" BINARY catname ";} elseif($newcatby=="6"){$ordercat=" catid asc ";} elseif($newcatby=="5"){$ordercat=" counter desc ";} elseif($newcatby=="7"){$ordercat=" catid desc ";}else{$ordercat=" ratteb asc "; } if(!(isset($pagec)) and!(isset($page))) { // stop increase by refresh if (isset($_COOKIE["visitingcat".$cat_id])) { $visit_cook_val = $_COOKIE["visitingcat".$cat_id]; } if($visit_cook_val == 1) { $visit_cook_val = 1; $expire=time()+60*10; $visit_cook= "visitingcat".$cat_id; setcookie($visit_cook, $visit_cook_val , $expire); } else { mysql_query("UPDATE cat SET counter=counter+1 where catid='$cat_id'"); $visit_cook_val = 1; $expire=time()+60*10; $visit_cook= "visitingcat".$cat_id; setcookie($visit_cook, $visit_cook_val , $expire); } //end stop increase by refresh } if(!(isset($pagec)||$pagec==1)) { $pagec=1; } else { $pagec=$pagec; } $i=1; $groupnumsql = mysql_query(" select * from satting where catid=$cat_id limit 1"); while($sumgrouprow = mysql_fetch_array($groupnumsql)){ $sumgroupno = $sumgrouprow[8]; } if(!$sumgroupno || $sumgroupno==""){ $sumgroupno = 30; } $max=$sumgroupno; //if($cat_url ==anasheed) //{ //$max=12; //} //else //{ //$max=50; //} $from=($max*$pagec)-$max; if(isset($_GET['hrf'])){ if($_GET['hrf']==1){ $href= "إ"; } elseif($_GET['hrf']==2){$href= "ا";} elseif($_GET['hrf']==3){$href= "أ";} elseif($_GET['hrf']==31){$href= "آ";} elseif($_GET['hrf']==4){$href= "ب";} elseif($_GET['hrf']==5){$href= "ت";} elseif($_GET['hrf']==6){$href= "ث";} elseif($_GET['hrf']==7){$href= "ج";} elseif($_GET['hrf']==8){$href= "ح";} elseif($_GET['hrf']==9){$href= "خ";} elseif($_GET['hrf']==10){$href= "د";} elseif($_GET['hrf']==11){$href= "ذ";} elseif($_GET['hrf']==12){$href= "ر";} elseif($_GET['hrf']==13){$href= "ز";} elseif($_GET['hrf']==14){$href= "س";} elseif($_GET['hrf']==15){$href= "ش";} elseif($_GET['hrf']==16){$href= "ص";} elseif($_GET['hrf']==17){$href= "ض";} elseif($_GET['hrf']==18){$href= "ط";} elseif($_GET['hrf']==19){$href= "ظ";} elseif($_GET['hrf']==20){$href= "ع";} elseif($_GET['hrf']==21){$href= "غ";} elseif($_GET['hrf']==22){$href= "ف";} elseif($_GET['hrf']==23){$href= "ق";} elseif($_GET['hrf']==24){$href= "ك";} elseif($_GET['hrf']==25){$href= "ل";} elseif($_GET['hrf']==26){$href= "م";} elseif($_GET['hrf']==27){$href= "ن";} elseif($_GET['hrf']==28){$href= "ه";} elseif($_GET['hrf']==29){$href= "و";} elseif($_GET['hrf']==30){$href= "ي";} $letter = " `catname` LIKE BINARY'{$href}%' and "; } if($cat_id==$catid) { $sql1 = mysql_query("select * from cat where $letter parentcatid='$cat_id' $doo order by $ordercat limit $from,$max"); $sql = mysql_query("select * from cat where $letter parentcatid='$cat_id' $doo"); } else { $sql1 = mysql_query("select * from cat where $letter parentcatid='$catid' order by $ordercat limit $from,$max"); $sql = mysql_query("select * from cat where $letter parentcatid='$catid' "); } $num_sql = mysql_num_rows($sql); $num_sql1 = mysql_num_rows($sql1); $pagesc=ceil($num_sql/$max); while($row1=mysql_fetch_row($sql1)) { $cat.= ""; if($i%$numcat==0) $cat.= ""; $i++; } $cat.= "
"; if($htmlorphp==1) { $urlcat="catsmktba-$row1[0].html"; } else { $urlcat="catplay.php?catsmktba=$row1[0]"; } $teet=count_num($row1[0],"play"); if(!$teet || empty($teet)){ $teet = null; $plays_name_hiddend = null; }else{ $plays_name_hiddend = $plays_name ." : "; $teet; } if($row1[2]==16) { $row1ddd=basename("$row1[7]",".php"); $plays_name="plays_name_".$row1ddd; $plays_name=$$plays_name; $imagecat="images/cat/$row1ddd.gif"; } elseif($row1[11]==5) { $row1d=basename("$row1[7]",".php"); $plays_name="plays_name_".$row1d; $plays_name=$$plays_name; $imagecat="images/cat/$row1d.gif"; } else { if($no3) { if(!$row1[7]) { $imagecat="images/cat/$no3.gif"; }else { $imagecat=$row1[7]; } $plays_name="plays_name_".$no3; $plays_name=$$plays_name; }else { $plays_name="plays_name_".$cat_url; $plays_name=$$plays_name; if(!$row1[7]) { $imagecat="images/cat/$cat_url.gif"; $noimg1=''; $noimg3=""; }else { $imagecat=$row1[7]; } } } $sql1a = mysql_query("select * from play where catid='$row1[0]' and ctid2!='10000000' order by id desc limit 1"); while($rowte=mysql_fetch_row($sql1a)) { $datath=$rowte[8]; } if($_SESSION['admin']) { if( $_SESSION['group']==1 || edit_error($_SESSION['iduser'],"$cat_id","allow")!="no" ) { $editcat=" "; } } if(!$row1d) { Eval("\$test1= \"".get("$cat_url/cat")."\";"); } else { Eval("\$test1= \"".get("$row1d/cat")."\";"); } $cat.="$test1"; $cat.= "
"; if(file_exists("cat/$cat_url/catdown.html")) { $cat.= ""; Eval("\$cat.= \"".get("$cat_url/catdown")."\";"); } $cat.="
"; if($pagec>1) { $prev=$pagec-1; $cat.=" [ $lag_previous ] "; } for($i=1;$i<=$pagesc;$i++) { if($pagec==$i) $cat.=" [ $i ] "; else { $cat.=" [ $i ] "; } } if($pagec<$pagesc) { $next=$pagec+1; $cat.=" [ $lag_next ] "; } $cat.="
"; if($action!=edit && $action!=doedit) { do_html_2(" $titl",$cat,$catsmktba,$catsmktba); } } if($cat2==0 && $action!=edit && $action!=doedit) { if($num_sql==0) { $catplay= " $lag_noplay $plays_name "; do_html_2("$titl",$catplay,$catsmktba,$catsmktba); } else { if($cat_id!=$catid) { } } } else { $i=1; if (isset($_COOKIE["user_play".$catsmktba])) { $newplaybyy_ar=explode("_",$_COOKIE["user_play".$catsmktba]); if(($newplaybyy_ar[1]==$catsmktba) && ($newplaybyy_ar[0]==1 || $newplaybyy_ar[0]==2 || $newplaybyy_ar[0]==3 || $newplaybyy_ar[0]==4 || $newplaybyy_ar[0]==5 )) { $newplaybyy =$newplaybyy_ar[0]; $newplayby= $newplaybyy_ar[0]; } else { $newplayby = $playby;} } else { $newplayby = $playby;} if($newplaybyy == 1){ $selectplayy1="selected"; } elseif($newplaybyy == 2) { $selectplayy2="selected"; } elseif($newplaybyy == 3) { $selectplayy3="selected"; } elseif($newplaybyy == 4) { $selectplayy4="selected"; } elseif($newplaybyy == 5) { $selectplayy5="selected"; } $queryabc = mysql_query("select * from satting where catid = $catsmktba limit 1"); while ($row_autoabc1 = mysql_fetch_row($queryabc)) { $showabc = $row_autoabc1[11]; $visitoraligncat = $row_autoabc1[12]; $visitorshowcat = $row_autoabc1[13]; $visitoralignplay = $row_autoabc1[14]; $visitorshowplay= $row_autoabc1[15]; } if(!$visitoralignplay ) { $visitoralignplay = "left"; } if($visitorshowplay ==2 ) { $newplayby = $playby; } if($visitorshowplay !=2 ) { $play .= "
"; } if($_SESSION['admin']) { if( $_SESSION['group']==1 || edit_error($_SESSION['iduser'],"$cat_id","allow")!="no" ) { $play.="
"; } } Eval("\$test1= \"".get("$cat_url/playup")."\";"); $play.= $test1; if(!(isset($page)||$page==1)) { // stop increase by refresh if (isset($_COOKIE["visitingcat".$catid])) { $visit_cook_val = $_COOKIE["visitingcat".$catid]; } if($visit_cook_val == 1) { $visit_cook_val = 1; $expire=time()+60*10; $visit_cook= "visitingcat".$catid; setcookie($visit_cook, $visit_cook_val , $expire); } else { mysql_query("UPDATE cat SET counter=counter+1 where catid='$catid'"); $visit_cook_val = 1; $expire=time()+60*10; $visit_cook= "visitingcat".$catid; setcookie($visit_cook, $visit_cook_val , $expire); } //end stop increase by refresh $page=1; } else { $page=$page; } $i=1; $max=$numplay; if( $newplayby=="1"){$orderplay=" ratteb asc ";} elseif( $newplayby=="2"){$orderplay=" BINARY name ";} elseif( $newplayby=="3"){$orderplay=" id asc ";} elseif( $newplayby=="5"){$orderplay=" counter desc";} elseif( $newplayby=="4"){$orderplay=" id desc ";}else{$orderplay=" id asc ";} $from=($max*$page)-$max; $sql = mysql_query("select * from play where image!='1' and catid='$catid' order by $orderplay "); $num_sql = mysql_num_rows($sql); $sql1 = mysql_query("select * from play where image!='1' and catid='$catid' and ctid2!='10000000' order by $orderplay limit $from,$max"); $num_sql1 = mysql_num_rows($sql1); $pages=ceil($num_sql/$max); while($row=mysql_fetch_row($sql1)) { $qlink=mysql_query("select * from linkat where catsmktba='{$row[0]}' and visible != 2 ORDER BY `order` ASC "); if(mysql_num_rows($qlink)>0) { while($linkrow=mysql_fetch_array($qlink)) { $target_link_ext = target_link($linkrow[4]); $indirlink = convert_urlp6($linkrow[0],$linkrow[4]); $linkrow4 =trim( strtolower($linkrow[4])); $extension = substr(strrchr($linkrow4, '.'), 1); if((($extension == "rm" || $extension=="rpm") &&$linkrow[8]=="" )||$linkrow[8]=="rmplayer") { $viewlink .="    "; } elseif((( $extension == "mp3" || $extension == "wma" ) &&$linkrow[8]=="" ) ||$linkrow[8]=="mp3player") { $viewlink .="    "; } elseif( (($extension == "png"|| $extension == "gif"|| $extension == "jpg"|| $extension == "jpeg"|| $extension == "bmp"|| $extension == "tif"|| $extension == "tiff" ) &&$linkrow[8]=="" ) ||$linkrow[8]=="image") { $viewlink .="    "; } elseif((($extension == "ram" || $extension == "rmvb" || $extension == "ra" || $extension == "3gp" ||strstr($linkrow4,'www.way2allah.com') ) &&$linkrow[8]=="" ) ||$linkrow[8]=="rlplayer") { $viewlink .="    "; } elseif( (( $extension == "avi" || $extension == "wmv" || $extension == "mp2" || $extension == "mp4"|| $extension == "asf" || $extension == "ogv" || $extension == "asf" || $extension == "aac" || $extension == "mpg"|| $extension == "mpeg" ) &&$linkrow[8]=="" )||$linkrow[8]=="mdplayer") { $viewlink .="    "; } elseif(((strstr($linkrow4,'video.google.com')) && $linkrow[8]=="" ) ||$linkrow[8]=="glplayer" ) { $viewlink .="    "; } elseif(((strstr($linkrow4,'www.youtube.com')) && $linkrow[8]=="" ) ||$linkrow[8]=="ytplayer" ) { $viewlink .="    "; } elseif( (($extension == "flv" ) && $linkrow[8]=="" )||$linkrow[8]=="flvplayer" ) { $viewlink .="    "; } elseif(( $extension == "swf" && $linkrow[8]=="") || $linkrow[8]=="swfplayer" ) { $viewlink .="    "; } elseif($linkrow[8]=="word") { $viewlink .="    "; } else { $viewlink .=""; } $newlink =" ". $viewlink ." " ; } } else { $newlink = NULL ; } $viewlink =null; if($row[3]==''){$row[110]='-';} if($row[6]=='' || $row[3]==$row[6] ){$row[112]='-';} $urlcom=$row[6]; if($row[9]==4 || $row[9]==23){$nomb=$row[3];}else{$nomb=$row[4];} if($nomb=='') { $row[100]=''; $sima=mysql_query("select * from setting where id='3'"); while($rrma=mysql_fetch_row($sima)) {$defimage=$rrma[1];} if($cat_url=='flash' || $cat_url=='video' || $defimage=='no-pic') { $row[99]='1'; $row[102]=''; } else{$row[99]='0';} } else{$row[99]='1';} $wss=mysql_query("select * from setting where id='1'"); while($rowss=mysql_fetch_row($wss)) { $hrof=$rowss[9]; } $comment=substr($row[6],0,$hrof)."..."; $target_link = target_link($row[3]); $row[3]= convert_urlp($row[0],$row[3]); $urlp = $row[3]; if($row[2]=='$play_name_msg') { $playmsg="admin"; } else { $playmsg=$row[2]; } if($htmlorphp==1) { $urlplay="play-$row[0].html"; } else { $urlplay="play.php?catsmktba=$row[0]"; } if($cat_url==quran||$cat_url==lectures||$cat_url==articles) { $imagecat="images/cat/$cat_url.gif"; } else { if(!$row[4]) { if(!$idcat) { $imagecat="images/cat/$cat_url.gif"; } else { $imagecat="images/cat/$cat_url.gif"; } } else { $imagecat="$row[4]"; } } if($catsmktba==16) { $wcc=mysql_query("select * from cat where catid='$catid' "); while($rowcc=mysql_fetch_row($wcc)) { if($rowcc[2]==16) { $cttid2=$rowcc[0]; } else { $wcc1=mysql_query("select * from cat where catid='$rowcc[2]' "); while($rowcc1=mysql_fetch_row($wcc1)) { if($rowcc1[2]==16) { $cttid2=$rowcc1[0]; } else { $wcc2=mysql_query("select * from cat where catid='$rowcc1[2]' "); while($rowcc2=mysql_fetch_row($wcc2)) { if($rowcc2[2]==16) { $cttid2=$rowcc2[0]; } else { $wcc3=mysql_query("select * from cat where catid='$rowcc2[2]' "); while($rowcc3=mysql_fetch_row($wcc3)) { if($rowcc3[2]==16) { $cttid2=$rowcc3[0]; } } } } } } } } $wss=mysql_query("select * from cat where catid='$cttid2'"); while($rowss=mysql_fetch_row($wss)) { $no3=basename("$rowss[7]",".php"); if (!$row[4]) { $row[4]="images/cat/$no3.gif"; } } } if($row[6]!='') { $imag1=" "; } if($row[3]!='') { $imag=" "; } $target_link = target_link($row[3]); $row[3]= convert_urlp($row[0],$row[3]); $urlp = $row[3]; if($_SESSION['admin']) { if( $_SESSION['group']==1 || edit_error($_SESSION['iduser'],"$cat_id","allow")!="no" ) { $edit=" "; } } if(!$no3) { Eval("\$test1= \"".get("$cat_url/catplay")."\";"); }else{ Eval("\$test1= \"".get("$cat_url/$no3")."\";"); } $play.= $test1; if($i%$numtable==0) $play.= ""; $i++; } $play.= "\n"; $play.= ""; $play.="
"; if($page>1) { $prev=$page-1; $play.=" [ $lag_previous ] "; } for($i=1;$i<=$pages;$i++) { if($page==$i) $play.=" [ $i ] "; else { $play.=" [ $i ] "; } } if($page<$pages) { $next=$page+1; $play.=" [ $lag_next ] "; } $play.="
"; if($action==edit || $action==doedit) { if($_SESSION['admin']) { if($_SESSION['group']!=1){edit_error($_SESSION['iduser'],"$catsmktba","out");} do_html_2(" $titl",$playedit,$catsmktba,$catsmktba); } } else { do_html_2(" $titl",$play,$catsmktba,$catsmktba); } } $w=mysql_query("select * from block where rtl=4 and showcat='$catsmktba' and ratteb='6' order by ratteb asc"); while($rowr=mysql_fetch_row($w)) { $rowr[4]=stripslashes($rowr[4]); do_html_2(" $rowr[1]","$rowr[4]",$catsmktba,$catsmktba); } if($cat_url!=twge3 and $cat_url!=shashat and $cat_url!=jwal and $cat_url!=links) { echo " \n"; } ?> Po".$s7."wer".$s7."ed ".$s7."by: ".$s7."mk".$s7."tba 4.6 ".$s7." ".$s7." "; send_output("$catsmktba"); ?>