$maxsavings && $ccdate==$cdate) { $stl="style=\"filter:alpha(opacity=30);\""; $stll="javascript:alert('You can submit a VML art lower than ".$maxsavings." topics per day');"; } else $stll="editor.php"; ?> ÇáÑÓÇã
ÔÚÇÑ ãßÊÈÉ ÇáÑÓæãÇÊ

ÇáÑÌæÚ Çáì ÇáãßÊÈÉ ÇÖÝ ÑÓãÊß Çáì ÇáãßÊÈÉ ÈÍË Úä ÑÓãÊß ÇáÑÌæÚ Çáì ÇáÕÝÍÉ ÇáÑÆíÓíÉ áæÍÉ ÇáÊÍßã

ÌÏíÏ ÇáãßÊÈÉ


0) { $xaucu="$fid|$fname|$fdes|$fpass|$fauthor|$femail|$furl|$fvote|$fclick|$fhide|$fdate|$frealdate|\n"; $xaumoi=""; $fp = fopen($dbfile, "r"); $data = fread($fp, filesize($dbfile)); fclose($fp); $newdata = str_replace($xaucu, $xaumoi, $data); $fp = fopen($dbfile,"w"); fwrite($fp,$newdata) or die ("error writing"); fclose($fp); $succ = "1"; //Delete VML file $pdb=$db_dir .$pid .".htm"; unlink($pdb); $cdb=$comments_dir .$pid .".htm"; unlink($cdb); } } } //END FUNCTIONS //Cleaning $file=file($dbfile); $hieu=sizeof($file)-2-$maxtopic; if($hieu>0){ for($i=2;$i<$hieu+2;$i++){ $ma=explode("|",$file[$i]); $cid=$ma[0]; delwpb($cid); } } //Cleaning expired topics //Get date $today = getdate(); $month = $today['mon']; $mday = $today['mday']; $year = $today['year']; $cdate = $mday + 30*$month + 365*$year; $file=file($dbfile); for($i=2;$i=$maxday) { delwpb($ma[0]); } } //Get max avaiable topics $file=file($dbfile); $maxtopic=0; while(list(,$value)=each($file)){ list($fid,$fname,$fdes,$fpass,$fauthor,$femail,$furl,$fvote,$fclick,$fhide,$fdate,$frealdate,$blank)=split( "\|", $value); if ($fid>=1 && $fhide==0) $maxtopic++; } if(!$action && $id){ $timthay=0; //Update click variable $file=file($dbfile); while(list(,$value)=each($file)){ list($fid,$fname,$fdes,$fpass,$fauthor,$femail,$furl,$fvote,$fclick,$fhide,$fdate,$frealdate,$blank)=split( "\|", $value); if ($id==$fid) { $xaucu="$fid|$fname|$fdes|$fpass|$fauthor|$femail|$furl|$fvote|$fclick|$fhide|$fdate|$frealdate|\n"; $fclick++; $xaumoi="$fid|$fname|$fdes|$fpass|$fauthor|$femail|$furl|$fvote|$fclick|$fhide|$fdate|$frealdate|\n"; $fp = fopen($dbfile, "r"); $data = fread($fp, filesize($dbfile)); fclose($fp); $newdata = str_replace($xaucu, $xaumoi, $data); $fp = fopen($dbfile,"w"); fwrite($fp,$newdata) or die ("

ÎØà Ýí ÇáßÊÇÈÉ Ýí ÞÇÚÏÉ ÇáÈíÇäÇÊ

"); fclose($fp); $succ = "1"; } } //Get vars $file=file($dbfile);$j=0; while(list(,$value)=each($file)){ list($fid,$fname,$fdes,$fpass,$fauthor,$femail,$furl,$fvote,$fclick,$fhide,$fdate,$frealdate,$blank)=split( "\|", $value); $j++; if ($id==$fid){ $timthay=1; $myj=$j; $myid=$fid;$myname=$fname;$mydes=$fdes;$mypass=$fpass;$myauthor=$fauthor;$myemail=$femail;$myurl=$furl;$myvote=$fvote;$myclick=$fclick;$myhide=$fhide;$mydate=$frealdate;} if($myurl=="http://" || $myurl=="") $myurl="N/a"; } //Get MAX id $file=file($dbfile); $maxid=0; for($i=0;$i<=sizeof($file);$i++){ $ma=explode("|",$file[$i]); if($ma[0]>$maxid) $maxid=$ma[0]; } //Shows one ID if($timthay==1){ if( $myhide==0 || ($myhide==1 && $viewpass==$mypass)){ ?>

ãßÊÈÉ ÇáÑÓæãÇÊ: ( äÞØÉ)
ÇáÑÓÇã : :: target=_blank>
ÚÏÏ ÇáÒíÇÑÇÊ: ãÑÉ\ãÑÇÊ . ÊãÊ ÇáÇÖÇÝÉ Ýí

"); ?>

1) $ma1=explode("|",$file[$myj-2]); if($id<$maxid) $ma2=explode("|",$file[$myj]); if($ma1[9]==1) $hidetip1="Hidden on Public"; else if($ma1[9]==0) $hidetip1="Active"; if($ma2[9]==1) $hidetip2="Hidden on Public"; else if($ma2[9]==0) $hidetip2="Active"; if($id>1) print("[ $ma1[1] by $ma1[4]
".substr($ma1[2],0,25)."..

Status: $hidetip1');\" onmouseout=\"tatmota();\">ÇáÑÓãÉ ÇáÓÇÈÞÉ
]"); else print("[ ÇáÑÓãÉ ÇáÓÇÈÞÉ ]"); print(" :: "); if($id<$maxid) print(" [ $ma2[1] by $ma2[4]
".substr($ma2[2],0,25)."..

Status: $hidetip2');\" onmouseout=\"tatmota();\">ÇáÑÓãÉ ÇáÊÇáíÉ
]"); else print("[ ÇáÑÓãÉ ÇáÊÇáíÉ ]"); ?>

ÇáÊÕæíÊ :: 0 äÞØÉ 10 äÞÇØ 20 äÞØÉ 30 äÞØÉ 40 äÞØÉ 50 äÞØÉ 100 äÞØÉ

ÇáÊÚáíÞÇÊ
ÇÖíÝí ÊÚáíÞßö :: ÇáÇÓã ÇáÈÑíÏ ÇáÊÚáíÞÇÊ

åÐå ÇáÑÓãÉ æÖÚÊ Ýí ÎÇÕíÉ ÇáÇÎÝÇÁ


ÇÓã ÇáÑÓãÉ :: ÇáÑÓÇã :: ÑÞã ÇáÑÓãÉ

ßáãÉ ÇáãÑæÑ

"); //Get info of ID + - 1 $file=file($dbfile); if($id>1) $ma1=explode("|",$file[$myj-2]); if($id<$maxid) $ma2=explode("|",$file[$myj]); if($ma1[9]==1) $hidetip1="ÇÎÝÇÁ Úä ÇáÒæÇÑ"; else if($ma1[9]==0) $hidetip1="äÔíØ"; if($ma2[9]==1) $hidetip2="ÇÎÝÇÁ Úä ÇáÒæÇÑ"; else if($ma2[9]==0) $hidetip2="äÔíØ"; if($id>1) print("[ $ma1[1] by $ma1[4]
".substr($ma1[2],0,25)."..

Status: $hidetip1');\" onmouseout=\"tatmota();\">PREV ART
]"); else print("[ ÇáÑÓãÉ ÇáÓÇÈÞÉ ]"); print(" :: "); if($id<$maxid) print(" [ $ma2[1] by $ma2[4]
".substr($ma2[2],0,25)."..

Status: $hidetip2');\" onmouseout=\"tatmota();\">NEXT ART
]"); else print("[ ÇáÑÓãÉ ÇáÊÇáíÉ ]"); print("

"); } } else print("

áã íÊã ÇáÚËæÑ Úáì ÑÞã ÇáÑÓãÉ $id

"); //End show one ID------------------------------------------------------------ } else { if(!$page || $page<=0) $page=1; //Get MAX id $file=file($dbfile); $maxid=0; for($i=0;$i<=sizeof($file);$i++){ $ma=explode("|",$file[$i]); if($ma[0]>$maxid) $maxid=$ma[0]; } //Prints ARTs $dd=obiemod($maxtopic,$inline); $sotrang=obiediv($maxtopic,$maxinpage)+1; print("
"); $l=0;$j=0; $file=file($dbfile); $file=array_reverse($file); while(list(,$value)=each($file)){ list($fid,$fname,$fdes,$fpass,$fauthor,$femail,$furl,$fvote,$fclick,$fhide,$fdate,$frealdate,$blank)=split( "\|", $value); if ($fid>=1 && $fhide==0){ $j++; if( $j>(($page-1)*$maxinpage) && $j<=($page*$maxinpage)){ print(""); $l++; if($l==$inline){ print(""); $l=0; } } } } for($i=0;$i<$inline-$dd;$i++){ print(""); } print("
$fname
".substr($fdes, 0, 30)."..

ÇáÒíÇÑÇÊ: $fclick ãÑÉ
ÊãÊ ÇáÇÖÇÝÉ Ýí $frealdate');\" onmouseout=tatmota()>"); if($fvote>$excelent) print(""); else if($fvote>$good) print(""); else print(""); $fname=substr($fname, 0, 15) .".."; print("
$fname
龂 " .substr($fauthor,0,5) ."..

ÚÏÏ ÇáäÞÇØ: " .($fvote+$fclick) ."
ÇáÊÚáíÞÇÊ: "); $cfile=file("comments/$fid.htm"); $socomm=sizeof($cfile)-1; print("$socomm
"); //Print Page BAR print("

ÇáÚÏÏ ".($maxtopic)." ÑÓãÉ\ÑÓãÇÊ ( ".(sizeof(file($dbfile))-2-$maxtopic)." ÚÏÏ ÇáÑÓæãÇÊ ÇáãÎÝíÉ ). ÇáÕÝÍÉ " .($page) ."/" .$sotrang .". ÇßËÑ ..

"); //SHOUTBOX ?>

ÕäÏæÞ ÇáÊÚáíÞÇÊ

ÇáÇÓã ÇáÈÑíÏ ÇáÊÚáíÞÇÊ

"); ?>
ÇÝÖá ÑÓæãÇÊ

0){ $s=$file3[$j];$file3[$j]=$file3[$i];$file3[$i]=$s; } } } for($i=2;$i<2+$topnum;$i++){ $t=explode("|",$file3[$i]); print("" .substr($t[1],0,10) .".. (".($t[7]+$t[8]) .") 龂 ".substr($t[4],0,5) ."..

"); } ?>


ÇÝÖá ÒíÇÑÇÊ

0){ $s=$file3[$j];$file3[$j]=$file3[$i];$file3[$i]=$s; } } } for($i=2;$i<2+$topnum;$i++){ $t=explode("|",$file3[$i]); print("" .substr($t[1],0,10) .".. ($t[8]) 龂 " .substr($t[4],0,5) ."..

"); } ?>


ÑÓãÉ ÚÔæÇÆíÉ
0){ print("
" .substr($tname[1],0,10) ."..
".($tname[7]+$tname[8]) ." pts by " .substr($tname[4],0,5) ."..
"); }else print("N/A"); ?>


ÈÍË ÈÇááÛÉ ÇáÅäÌáíÒíÉ

ÈÃÓã ÇáÑÓÇã


龂

V1.2003


WWW Paint Board copyrights 2003 by Jacco IJzerman and Obie. Based on VML editor.
All Right Reserved. (C) (R) Obie Website. Get more PHP and Javascripts for FREE.

[ ÍÞæÞ ÇáÊÚÑíÈ ãÍÝæÙÉ ©2003\2004 Çáì Al7zen ]