From 945491ab4f14d2b55064568143d23119c674b1ae Mon Sep 17 00:00:00 2001 From: "Pierre Habouzit (MadCoder" Date: Sun, 2 Jan 2005 19:50:52 +0000 Subject: [PATCH] banana evolves git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-208 --- htdocs/banana/include/config.inc.php | 35 ++++++----------------------------- htdocs/banana/include/format.inc.php | 6 +++--- htdocs/banana/include/profile.inc.php | 2 +- 3 files changed, 10 insertions(+), 33 deletions(-) diff --git a/htdocs/banana/include/config.inc.php b/htdocs/banana/include/config.inc.php index 32e4c29..61b5b24 100644 --- a/htdocs/banana/include/config.inc.php +++ b/htdocs/banana/include/config.inc.php @@ -1,16 +1,5 @@ date>=$a->date); -} - // spool config in spool.inc.php $news['maxspool'] = 2000; @@ -18,32 +7,20 @@ $news['maxspool'] = 2000; $news['hdecode'] = array('from','name','organization','subject'); // headers in post -$news['head'] = array( - 'From' => 'from', - 'Subject' => 'subject', - 'Newsgroups' => 'newsgroups', - 'Message-ID' => 'msgid', - 'Followup-To' => 'followup', - 'Date' => 'date', - 'X-Org-Id' => 'xorgid', - 'Organization' => 'organization', - 'References' => 'references', - 'X-Face' => 'xface', - 'Content-Type' => 'contenttype', - 'Content-Transfer-Encoding' => 'contentencoding' - ); +$news['head'] = array('from', 'subject', 'newsgroups', 'message-id', 'followup-to', 'date', + 'x-org-id', 'organization', 'references', 'x-face', 'content-type', 'content-transfer-encoding'); // headers in article.php -$news['headdisp']=array( +$news['headdisp'] = array( 'from', 'subject', 'newsgroups', - 'followup', + 'followup-id', 'date', 'organization', 'references', - 'xorgid', - 'xface', + 'x-org-id', + 'x-face', ); $locale['headers']['xorgid']='Identité'; diff --git a/htdocs/banana/include/format.inc.php b/htdocs/banana/include/format.inc.php index d31f200..b491fba 100644 --- a/htdocs/banana/include/format.inc.php +++ b/htdocs/banana/include/format.inc.php @@ -32,7 +32,7 @@ function formatDisplayHeader($_header,$_text,$_spool) { case "date": return formatDate($_text); - case "followup": + case "followup-to": case "newsgroups": $res = ""; $groups = preg_split("/(\t| )*,(\t| )*/",$_text); @@ -63,10 +63,10 @@ function formatDisplayHeader($_header,$_text,$_spool) { } return $rsl; - case "xface": + case "x-face": return 'x-face'; - case "xorgid": + case "x-org-id": return "$_text".(preg_match("/[\w]+\.[\w\d]+/",$_text)?" [fiche]":""); default: diff --git a/htdocs/banana/include/profile.inc.php b/htdocs/banana/include/profile.inc.php index 95212ff..26239c8 100644 --- a/htdocs/banana/include/profile.inc.php +++ b/htdocs/banana/include/profile.inc.php @@ -13,7 +13,7 @@ */ function checkcancel($_headers) { - return ($_headers->xorgid == Session::get('forlife') or has_perms()); + return ($_headers['x-org-id'] == Session::get('forlife') or has_perms()); } /** getprofile : sets profile variables -- 2.1.4