[geeklog-cvs] Geeklog-1.x/public_html/admin moderation.php, 1.116, 1.117

Dirk Haun dhaun at qs1489.pair.com
Sun Feb 17 05:29:38 EST 2008


Update of /cvsroot/geeklog/Geeklog-1.x/public_html/admin
In directory qs1489.pair.com:/tmp/cvs-serv48196/public_html/admin

Modified Files:
	moderation.php 
Log Message:
Quick'n'dirty workaround: Limit submission queue listings to 50 entries at a time to prevent timeouts (in case of submission queues full of spam). For a proper solution, we would need to use ADMIN_list instead of ADMIN_simpleList.


Index: moderation.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/moderation.php,v
retrieving revision 1.116
retrieving revision 1.117
diff -C2 -d -r1.116 -r1.117
*** moderation.php	16 Feb 2008 16:57:51 -0000	1.116
--- moderation.php	17 Feb 2008 10:29:36 -0000	1.117
***************
*** 269,272 ****
--- 269,273 ----
      // run SQL but this time ignore any errors
      if (!empty ($sql)) {
+         $sql .= ' LIMIT 50'; // quick'n'dirty workaround to prevent timeouts
          $result = DB_query($sql, 1);
      }




More information about the geeklog-cvs mailing list