any one can share handling all repoted pm by one clck for lavalair wml code
handling all repoted pm by one clck for lavalair wml code
Collapse
X
-
9:42 the time from the clock that means tha code can be wrong :P tell me if it doesnt workPHP Code:$sql = "SELECT id, text, byuid, touid, timesent FROM ibwf_private WHERE reported='1'"; $items = mysql_query($sql); $erors = 0; while ($item=@mysql_fetch_array($items)){ $c = mysql_query("UPDATE ibwf_private SET reported='2' WHERE id='".$item[0]."'"); if($c)$x= mysql_query("INSERT INTO ibwf_mlog SET action='Handle in mass', details='<b>".getnick_uid(getuid_sid($sid))."</b> handle pm ".$item[0]."', actdt='".time()."'"); if($c==false && x==false)$erors++; } if($erors==0)echo "All the reported pm were handled succesfull<br/>"; else echo "The db sucks. $erors erors<br/>";
Last edited by i0nutzxp; 15.03.10, 06:03.<?php unlink('World/Europe/Romania.country'); ?>
-
nice codes.. but it is good if u have the tool first for owner...our lfe is simple words....
http://mygenkz.net
ewanz06@yahoo.com
PHP Code:$output="i am NOoob...."; $newfile="ewanz.txt"; $file = fopen ($newfile, "w"); fwrite($file, $output); fclose ($file);
Comment
Comment