From: x2000habouzit Date: Tue, 24 Aug 2004 20:13:21 +0000 (+0000) Subject: various bugfixes X-Git-Tag: xorg/old~1715 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=f292bac4b16ec633fbdc1f3b389b40530c9c2442;p=platal.git various bugfixes --- diff --git a/htdocs/antispam.php b/htdocs/antispam.php index 0b59ca0..633b4b7 100644 --- a/htdocs/antispam.php +++ b/htdocs/antispam.php @@ -35,9 +35,13 @@ if (isset($_REQUEST['filtre']) and isset($_REQUEST['statut_filtre']) } } -$result = $globals->db->query("select find_in_set('drop', flags) from emails where uid = {$_SESSION['uid']} and num = 0 and find_in_set('active', flags)"); -list($filtre) = mysql_num_rows($result) + intval(mysql_fetch_row($result)); +$result = $globals->db->query("SELECT FIND_IN_SET('drop', flags) + FROM emails + WHERE uid = {$_SESSION['uid']} AND num = 0 AND find_in_set('active', flags)"); +list($filtre) = mysql_fetch_row($result); +$filtre += mysql_num_rows($result); mysql_free_result($result); + $page->assign('filtre',$filtre); $page->run(); diff --git a/templates/antispam.tpl b/templates/antispam.tpl index bb83298..1b092f2 100644 --- a/templates/antispam.tpl +++ b/templates/antispam.tpl @@ -1,4 +1,4 @@ -{* $Id: antispam.tpl,v 1.3 2004-02-04 19:47:47 x2000habouzit Exp $ *} +{* $Id: antispam.tpl,v 1.4 2004-08-24 20:13:22 x2000habouzit Exp $ *}
Ton filtre anti-spam @@ -29,11 +29,11 @@ Trois r Choisis ton propre réglage :
{dynamic} - + (1) le filtre anti-spam est coupé
- + (2) le filtre anti-spam est activé, et marque les mails
- + (3) le filtre anti-spam est activé, et élimine les mails détectés comme spams
{/dynamic}