From: x2000habouzit
Date: Mon, 30 Aug 2004 08:32:19 +0000 (+0000)
Subject: xhtml+errors
X-Git-Tag: xorg/old~1679
X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=724613415988b96099ed49602c14214e45a0394d;p=platal.git
xhtml+errors
---
diff --git a/htdocs/admin/postfix_blacklist.php b/htdocs/admin/postfix_blacklist.php
index 940f8fe..cbe70a5 100644
--- a/htdocs/admin/postfix_blacklist.php
+++ b/htdocs/admin/postfix_blacklist.php
@@ -15,14 +15,14 @@ if(isset($_REQUEST['nomligne'])) {
}
$blacklist = Array();
-$fd = fopen ("/etc/postfix/spamaccess", "r");
+$fd = @fopen ("/etc/postfix/spamaccess", "r");
while ($fd && !feof ($fd)) {
$buffer = fgets($fd, 4096);
if ($buffer[0]!='#' && (strlen($buffer)>1)) { # FIXME $string[i] is deprecated
$blacklist[] = $buffer;
}
}
-fclose($fd);
+@fclose($fd);
$page->assign_by_ref('list',$blacklist);
$page->assign('title','Bannis de polytechnique.org');
diff --git a/htdocs/admin/postfix_perm.php b/htdocs/admin/postfix_perm.php
index 311ac2c..2f22c33 100644
--- a/htdocs/admin/postfix_perm.php
+++ b/htdocs/admin/postfix_perm.php
@@ -15,14 +15,14 @@ if(isset($_REQUEST['nomligne'])) {
}
$permis = Array();
-$fd = fopen ("/etc/postfix/spampermis", "r");
+$fd = @fopen ("/etc/postfix/spampermis", "r");
while ($fd && !feof ($fd)) {
$buffer = fgets($fd, 4096);
if ($buffer[0]!='#' && (strlen($buffer)>1)) { # FIXME $string[i] is deprecated
$permis[] = $buffer;
}
}
-fclose($fd);
+@fclose($fd);
$page->assign_by_ref('list',$blacklist);
$page->assign('title','Permissions de polytechnique.org');
diff --git a/htdocs/admin/postfix_retardes.php b/htdocs/admin/postfix_retardes.php
index 8dd6a64..f90bc58 100644
--- a/htdocs/admin/postfix_retardes.php
+++ b/htdocs/admin/postfix_retardes.php
@@ -8,7 +8,7 @@ if (isset($_REQUEST["del"]) && !empty($_REQUEST["del"])) {
}
$retard = Array();
-$fd = fopen ("/etc/postfix/spamdefer", "r");
+$fd = @fopen ("/etc/postfix/spamdefer", "r");
while ($fd && !feof ($fd)) {
$buffer = fgets($fd, 4096);
@@ -16,7 +16,7 @@ while ($fd && !feof ($fd)) {
$retard[] = $buffer;
}
}
-fclose($fd);
+@fclose($fd);
$page->assign_by_ref('list',$blacklist);
$page->assign('title','Mails retardés de polytechnique.org');
diff --git a/templates/admin/postfix.common.tpl b/templates/admin/postfix.common.tpl
index 399ed5b..062dfdc 100644
--- a/templates/admin/postfix.common.tpl
+++ b/templates/admin/postfix.common.tpl
@@ -1,4 +1,4 @@
-{* $Id: postfix.common.tpl,v 1.4 2004-08-26 14:44:43 x2000habouzit Exp $ *}
+{* $Id: postfix.common.tpl,v 1.5 2004-08-30 08:32:19 x2000habouzit Exp $ *}
{dynamic}
{$erreur}
@@ -17,8 +17,10 @@
{foreach item=line from=$list}