[geeklog-cvs] geeklog-1.3/plugins/spamx MassDelete.Admin.class.php,1.2,1.3
dhaun at iowaoutdoors.org
dhaun at iowaoutdoors.org
Tue Feb 15 14:35:02 EST 2005
Update of /var/cvs/geeklog-1.3/plugins/spamx
In directory www:/tmp/cvs-serv32597
Modified Files:
MassDelete.Admin.class.php
Log Message:
Updated MassDelete module for the SpamX plugin, provided by Tom Willet
Index: MassDelete.Admin.class.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/plugins/spamx/MassDelete.Admin.class.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** MassDelete.Admin.class.php 14 Dec 2004 13:15:20 -0000 1.2
--- MassDelete.Admin.class.php 15 Feb 2005 19:34:59 -0000 1.3
***************
*** 30,39 ****
if (($act == $LANG_SX00['deletespam']) && ($lmt>0)) {
$numc = 0;
! $result=DB_query("SELECT * FROM {$_TABLES['spamx']} WHERE name='Examine'");
! $nrows = DB_numRows($result);
! for ($i=1;$i<=$nrows;$i++) {
! $A=DB_fetchArray($result);
! $Spamx_Examine[]=$A['value'];
! }
$result = DB_query("SELECT * from {$_TABLES['comments']} ORDER by Date DESC LIMIT $lmt");
$nrows = DB_numRows($result);
--- 30,45 ----
if (($act == $LANG_SX00['deletespam']) && ($lmt>0)) {
$numc = 0;
! if ($dir = @opendir($_CONF['path'] . 'plugins/spamx/')) {
! while(($file = readdir($dir)) !== false) {
! if (is_file($_CONF['path'] . 'plugins/spamx/' . $file))
! {
! if (substr($file,-18) == '.Examine.class.php') {
! $tmp = str_replace(".Examine.class.php","",$file);
! $Spamx_Examine[]=$tmp;
! }
! }
! }
! closedir($dir);
! }
$result = DB_query("SELECT * from {$_TABLES['comments']} ORDER by Date DESC LIMIT $lmt");
$nrows = DB_numRows($result);
More information about the geeklog-cvs
mailing list