From a53c96746e907aa21435a84dffe899fa475d51c6 Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Sun, 26 Sep 2004 15:02:32 +0000 Subject: [PATCH] it's more than ugly, but banana works ... please don't look at the code, it's an insanity. but we will go on with this until we can make better --- htdocs/banana/article.php | 18 +++ htdocs/banana/banana.css | 93 +++++++++++++ htdocs/banana/disconnect.php | 18 +++ htdocs/banana/include/config.inc.php | 92 +++++++++++++ htdocs/banana/include/error.inc.php | 34 +++++ htdocs/banana/include/footer.inc.php | 2 + htdocs/banana/include/format.inc.php | 232 ++++++++++++++++++++++++++++++++ htdocs/banana/include/hack.inc.php | 14 ++ htdocs/banana/include/header.inc.php | 2 + htdocs/banana/include/password.inc.php | 17 +++ htdocs/banana/include/profile.inc.php | 64 +++++++++ htdocs/banana/include/session.inc.php | 29 ++++ htdocs/banana/include/subscribe.inc.php | 37 +++++ htdocs/banana/index.php | 18 +++ htdocs/banana/install.sh | 8 ++ htdocs/banana/post.php | 18 +++ htdocs/banana/scripts/spoolgen.php | 47 +++++++ htdocs/banana/spool/.cvsignore | 1 + htdocs/banana/subscribe.php | 18 +++ htdocs/banana/thread.php | 18 +++ htdocs/banana/xface.php | 18 +++ htdocs/confbanana.php | 59 ++++++++ templates/banana.head.tpl | 25 ++++ templates/banana.tpl | 25 ++++ templates/confbanana.tpl | 122 +++++++++++++++++ 25 files changed, 1029 insertions(+) create mode 100644 htdocs/banana/article.php create mode 100644 htdocs/banana/banana.css create mode 100644 htdocs/banana/disconnect.php create mode 100644 htdocs/banana/include/config.inc.php create mode 100644 htdocs/banana/include/error.inc.php create mode 100644 htdocs/banana/include/footer.inc.php create mode 100644 htdocs/banana/include/format.inc.php create mode 100644 htdocs/banana/include/hack.inc.php create mode 100644 htdocs/banana/include/header.inc.php create mode 100644 htdocs/banana/include/password.inc.php create mode 100644 htdocs/banana/include/profile.inc.php create mode 100644 htdocs/banana/include/session.inc.php create mode 100644 htdocs/banana/include/subscribe.inc.php create mode 100644 htdocs/banana/index.php create mode 100755 htdocs/banana/install.sh create mode 100644 htdocs/banana/post.php create mode 100755 htdocs/banana/scripts/spoolgen.php create mode 100644 htdocs/banana/spool/.cvsignore create mode 100644 htdocs/banana/subscribe.php create mode 100644 htdocs/banana/thread.php create mode 100644 htdocs/banana/xface.php create mode 100644 htdocs/confbanana.php create mode 100644 templates/banana.head.tpl create mode 100644 templates/banana.tpl create mode 100644 templates/confbanana.tpl diff --git a/htdocs/banana/article.php b/htdocs/banana/article.php new file mode 100644 index 0000000..cff7f97 --- /dev/null +++ b/htdocs/banana/article.php @@ -0,0 +1,18 @@ +caching = false; +require('hack.inc.php'); + +$page->register_function('banana', 'banana', false); + +$page->run(); +?> diff --git a/htdocs/banana/banana.css b/htdocs/banana/banana.css new file mode 100644 index 0000000..57e1294 --- /dev/null +++ b/htdocs/banana/banana.css @@ -0,0 +1,93 @@ +img { border: 0px; margin: 0; } + +table.bicol div, table.bananaoverview div { height: 21px; } + + +table.bicol { width: 100%; } + +table.bicol td { + padding-left: 0.5em; + padding-right: 0.5em; + white-space: nowrap; + overflow: hidden; +} +table.bicol td.bicolvpadd, td.bouton { + padding-top: 0.5em; + padding-bottom: 0.5em; +} +table.bicol td.bouton { + text-align: center; +} + +/******************************************* +* FORUMS * +*******************************************/ + +div.bananashortcuts { + text-align: left; + padding-bottom: 1em; + padding-top: 1em; +} + +div.bananatree { + float: left; + padding-right: 0.3em; +} + +span.bananaisref { + font-style: italic; +} + +table.bicol td.banananopadd { + padding-left: 0em; + padding-right: 0em; +} + +table.bicol td.bananatotal,td.bananaunread,td.bananadate { + text-align: center; + padding-left: 0.1em; + padding-right: 0.1em; +} + +table.bicol td.bananasubject,td.bananagroup,td.bananafrom,td.bananadescription { + text-align: left; +} + +table.bananaoverview { + /* background-color: #eeeeee;*/ + background-color: inherit; + color: inherit; + width: 100%; + font-size: 95%; +} + +table.bananaoverview tr.impair {} + +table.bananaoverview tr.pair { + background-color: #eeeed0; + color: inherit; +} + +table.bananaoverview th { + /* background-color: #336699;*/ + background-color: inherit; + color: #FFFFFF; + font-weight: bold; + text-align: center; + vertical-align: middle; +} + +table.bananaoverview td { + color: #000000; + background-color: inherit; + padding: 0px 0.4em 0px 0.4em; +} + +table.bananaoverview td.bananasubject,td.bananagroup,td.bananafrom,td.bananadescription { + text-align: left; +} + +table.bananaoverview span.isref { + font-style: italic; +} + diff --git a/htdocs/banana/disconnect.php b/htdocs/banana/disconnect.php new file mode 100644 index 0000000..cff7f97 --- /dev/null +++ b/htdocs/banana/disconnect.php @@ -0,0 +1,18 @@ +caching = false; +require('hack.inc.php'); + +$page->register_function('banana', 'banana', false); + +$page->run(); +?> diff --git a/htdocs/banana/include/config.inc.php b/htdocs/banana/include/config.inc.php new file mode 100644 index 0000000..1e27879 --- /dev/null +++ b/htdocs/banana/include/config.inc.php @@ -0,0 +1,92 @@ +date>=$a->date); +} + +// spool config in spool.inc.php +$news['maxspool'] = 2000; + +// encoded headers +$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-Transfer-Encoding' => 'contentencoding' + ); + +// headers in article.php +$news['headdisp']=array( + 'from', + 'subject', + 'newsgroups', + 'followup', + 'date', + 'organization', + 'references', + 'xorgid', + 'xface', +); +$locale['headers']['xorgid']='Identité'; + +// overview configuration in article.php +$news['threadtop'] = 5; +$news['threadbottom'] = 5; + +// wordwrap configuration +$news['wrap'] = 80; + +// overview configuration in thread.php +$news['max'] = 50; + +// custom headers in post.php +$news['customhdr'] = + "Date: ".date("r")."\n" + ."Content-Type: text/plain; charset=iso-8859-15\n" + ."Mime-Version: 1.0\n" + ."Content-Transfer-Encoding: 8bit\n" + ."HTTP-Posting-Host: ".gethostbyname($_SERVER['REMOTE_ADDR'])."\n" + ."User-Agent: Banana 0.7.1\n"; + +$css = array( + 'bananashortcuts' => 'bananashortcuts', + 'title' => 'rubrique', + 'bicol' => 'bicol', + 'bicoltitre' => 'bicoltitre', + 'bicolvpadd' => 'bicolvpadd', + 'pair' => 'pair', + 'impair' => 'impair', + 'bouton' => 'bouton', + 'error' => 'erreur', + 'normal' => 'normal', + 'total' => 'bananatotal', + 'unread' => 'bananaunread', + 'group' => 'bananagroup', + 'description' => 'bananadescription', + 'date' => 'bananadate', + 'subject' => 'bananasubject', + 'from' => 'bananafrom', + 'author' => 'author', + 'nopadd' => 'banananopadd', + 'overview' => 'bananaoverview', + 'tree' => 'bananatree' +); + +?> diff --git a/htdocs/banana/include/error.inc.php b/htdocs/banana/include/error.inc.php new file mode 100644 index 0000000..b42781a --- /dev/null +++ b/htdocs/banana/include/error.inc.php @@ -0,0 +1,34 @@ +\n\t".$locale['error']['connect']."\n

"; + break; + case "nntpauth": + echo "

\n\t".$locale['error']['credentials'] + ."\n

"; + break; + case "nntpgroups": + echo "

"; + echo "\n".$locale['error']['nogroup']."\n"; + echo "

\n"; + break; + case "nntpspool": + echo "
\n"; + echo "[Liste des forums]\n"; + echo "
\n"; + echo "

\n\t".$locale['error']['group']."\n

"; + break; + case "nntpart": + echo "
\n"; + echo "[Liste des forums] \n"; + echo "[$group] \n"; + echo "
\n"; + echo "

\n\t".$locale['error']['post']."\n

"; + break; + } +} + +?> diff --git a/htdocs/banana/include/footer.inc.php b/htdocs/banana/include/footer.inc.php new file mode 100644 index 0000000..acb6c35 --- /dev/null +++ b/htdocs/banana/include/footer.inc.php @@ -0,0 +1,2 @@ + diff --git a/htdocs/banana/include/format.inc.php b/htdocs/banana/include/format.inc.php new file mode 100644 index 0000000..dcd0059 --- /dev/null +++ b/htdocs/banana/include/format.inc.php @@ -0,0 +1,232 @@ + + $result = htmlentities($_text); + if (preg_match("/^([^ ]+)@([^ ]+)$/",$_text,$regs)) + $result="".htmlentities($regs[1]. + "@".$regs[2]).""; + if (preg_match("/^([^ ]+)@([^ ]+) \((.*)\)$/",$_text,$regs)) + $result="".htmlentities($regs[3]).""; + if (preg_match("/^\"?([^<>\"]+)\"? +<(.+)@(.+)>$/",$_text,$regs)) + $result="".htmlentities($regs[1]).""; + return preg_replace("/\\\(\(|\))/","\\1",$result); + case "subject": + if ($_isref) { + return ''.htmlentities($_text).''; + } else { + if ($_isread) { + return "" + .htmlentities($_text).""; + }else { + return "" + .htmlentities($_text).""; + } + } + default: + return htmlentities($_text); + } +} + +/** produces HTML ouput for header section in post.php + * @param $_header STRING name of the header + * @param $_text STRING value of the header + * @param $_spool OBJECT spool object for building references + * @return STRING HTML output + */ + +function formatDisplayHeader($_header,$_text,$_spool) { + global $locale; + switch ($_header) { + case "date": + return locale_date($_text); + case "followup": + case "newsgroups": + $res = ""; + $groups = preg_split("/(\t| )*,(\t| )*/",$_text); + foreach ($groups as $g) { + $res.=''.$g.', '; + } + return substr($res,0, -2); + case "from": +# From: mark@cbosgd.ATT.COM +# From: mark@cbosgd.ATT.COM (Mark Horton) +# From: Mark Horton +# From: Anonymous + $result = htmlentities($_text); + if (preg_match("/^([^ ]+)@([^ ]+)$/",$_text,$regs)) + $result="".htmlentities($regs[1]) + ."@{$regs[2]}"; + if (preg_match("/^([^ ]+)@([^ ]+) \((.*)\)$/",$_text,$regs)) + $result="".htmlentities($regs[3]) + .""; + if (preg_match("/^\"?([^<>\"]+)\"? +<(.+)@(.+)>$/",$_text,$regs)) + $result="".htmlentities($regs[1]) + .""; + return preg_replace("/\\\(\(|\))/","\\1",$result); + case "references": + $rsl = ""; + $ndx = 1; + $text=str_replace("><","> <",$_text); + $text=preg_split("/( |\t)/",strtr($text,$_spool->ids)); + $parents=preg_grep("/^\d+$/",$text); + $p=array_pop($parents); + while ($p) { + $valid_parents[]=$p; + $p = $_spool->overview[$p]->parent; + } + foreach (array_reverse($valid_parents) as $p) { + $rsl .= "group}" + ."&id=$p\">$ndx "; + $ndx++; + } + return $rsl; + case "xface": + return 'x-face'; + case "xorgid": + return "$_text".(preg_match("/[\w]+\.[\w\d]+/",$_text)? + " [fiche]":""); + default: + return htmlentities($_text); + } +} + +/** produces HTML output for message body + * @param $_text STRING message body + * @return STRING HTML output + */ +function formatbody($_text) { + global $news; + $res ="\n\n"; + $res .= htmlentities(wrap($_text,"",$news['wrap']))."\n"; + $res = preg_replace("/(<|>|")/"," \\1 ",$res); + $res = preg_replace('/(["\[])?((https?|ftp|news):\/\/[a-z@0-9.~%$£µ&i#\-+=_\/\?]*)(["\]])?/i', + "\\1\\2\\4", $res); + $res = preg_replace("/ (<|>|") /","\\1",$res); + return $res."\n"; +} + +/** contextual links + * @return STRING HTML output + */ +function displayshortcuts() { + global $news,$locale,$first,$spool,$group,$post,$id,$profile,$css; + $sname = $_SERVER['SCRIPT_NAME']; + $array = explode('/',$sname); + $sname = array_pop($array); + + echo "
"; + + switch ($sname) { + case 'subscribe.php' : + echo '[Liste des forums] '; + echo '[Profil] '; + break; + case 'index.php' : + if (!$profile['autoup']) { + echo '[Mettre à jour] '; + } + echo '[Profil] '; + echo '[Abonnements] '; + break; + case 'thread.php' : + if (!$profile['autoup']) { + echo '[Mettre à jour] '; + } + echo '[Profil] '; + echo '['.$locale['format']['grouplist'] + .'] '; + echo "[" + .$locale['format']['newpost']."] "; + if (sizeof($spool->overview)>$news['max']) { + for ($ndx=1; $ndx<=sizeof($spool->overview); $ndx += $news['max']) { + if ($first==$ndx) { + echo "[$ndx-".min($ndx+$news['max']-1,sizeof($spool->overview))."] "; + } else { + echo "[$ndx-".min($ndx+$news['max']-1,sizeof($spool->overview)) + ."] "; + } + } + } + break; + case 'article.php' : + if (!$profile['autoup']) { + echo '[Mettre à jour] '; + } + echo '[Profil] '; + echo '['.$locale['format']['grouplist'] + .'] '; + echo "[" + .$locale['format']['group_b'].$group + .$locale['format']['group_a']."] "; + echo "[" + .$locale['format']['followup']."] "; + if (checkcancel($post->headers)) { + echo "[" + .$locale['format']['cancel']."] "; + } + break; + case 'post.php' : + if (!$profile['autoup']) { + echo '[Mettre à jour] '; + } + echo '[Profil] '; + echo '['.$locale['format']['grouplist'] + .'] '; + echo "[" + .$locale['format']['group_b'].$group + .$locale['format']['group_a']."] "; + break; + } + echo '
'; +} + +?> + diff --git a/htdocs/banana/include/hack.inc.php b/htdocs/banana/include/hack.inc.php new file mode 100644 index 0000000..f0bebaa --- /dev/null +++ b/htdocs/banana/include/hack.inc.php @@ -0,0 +1,14 @@ + diff --git a/htdocs/banana/include/header.inc.php b/htdocs/banana/include/header.inc.php new file mode 100644 index 0000000..acb6c35 --- /dev/null +++ b/htdocs/banana/include/header.inc.php @@ -0,0 +1,2 @@ + diff --git a/htdocs/banana/include/password.inc.php b/htdocs/banana/include/password.inc.php new file mode 100644 index 0000000..0a8ec3c --- /dev/null +++ b/htdocs/banana/include/password.inc.php @@ -0,0 +1,17 @@ + diff --git a/htdocs/banana/include/profile.inc.php b/htdocs/banana/include/profile.inc.php new file mode 100644 index 0000000..c1878fa --- /dev/null +++ b/htdocs/banana/include/profile.inc.php @@ -0,0 +1,64 @@ +xorgid == $_SESSION['forlife'] or has_perms()); +} + +/** getprofile : sets profile variables + * @return ARRAY associative array. Keys are 'name' (name), 'sig' (signature), 'org' + * (organization), 'display' (display threads with new posts only or all threads), + * 'lastnews' (timestamp for empasizing new posts) + */ + +function getprofile() { + if (logged()) { + $req = mysql_query("SELECT nom,mail,sig,if(FIND_IN_SET('threads',flags),'1','0'), + IF(FIND_IN_SET('automaj',flags),'1','0') + FROM forums.profils + WHERE uid='{$_SESSION['uid']}'"); + if (!(list($nom,$mail,$sig,$disp,$maj)=mysql_fetch_row($req))) { + $nom = $_SESSION['prenom']." ".$_SESSION['nom']; + $mail = $_SESSION['forlife']."@polytechnique.org"; + $sig = $nom." (".$_SESSION['promo'].")"; + $disp = 0; + $maj = 1; + } + $array['name'] = "$nom <$mail>"; + $array['sig'] = $sig; + $array['org'] = "Utilisateur de Polytechnique.org"; + $array['customhdr'] = ""; + $array['display'] = $disp; + $array['autoup'] = $maj; + $array['lastnews'] = $_SESSION['lastnewslogin']; + $array['dropsig'] = true; + if ($maj) { + mysql_query("UPDATE auth_user_md5 SET lastnewslogin='" + .gmdate("YmdHis")."' WHERE user_id='{$_SESSION['uid']}'"); + } + $req=mysql_query("SELECT nom + FROM forums.abos + LEFT JOIN forums.list ON list.fid=abos.fid + WHERE uid={$_SESSION['uid']};"); + $array['subscribe']=array(); + while (list($fnom)=mysql_fetch_array($req)) { + array_push($array['subscribe'],$fnom); + } + } else { + $array = array(); + } + $array['locale'] = "locales/fr.inc.php"; + return $array; +} +?> diff --git a/htdocs/banana/include/session.inc.php b/htdocs/banana/include/session.inc.php new file mode 100644 index 0000000..a845aaf --- /dev/null +++ b/htdocs/banana/include/session.inc.php @@ -0,0 +1,29 @@ + diff --git a/htdocs/banana/include/subscribe.inc.php b/htdocs/banana/include/subscribe.inc.php new file mode 100644 index 0000000..649265c --- /dev/null +++ b/htdocs/banana/include/subscribe.inc.php @@ -0,0 +1,37 @@ + diff --git a/htdocs/banana/index.php b/htdocs/banana/index.php new file mode 100644 index 0000000..cff7f97 --- /dev/null +++ b/htdocs/banana/index.php @@ -0,0 +1,18 @@ +caching = false; +require('hack.inc.php'); + +$page->register_function('banana', 'banana', false); + +$page->run(); +?> diff --git a/htdocs/banana/install.sh b/htdocs/banana/install.sh new file mode 100755 index 0000000..ce25a36 --- /dev/null +++ b/htdocs/banana/install.sh @@ -0,0 +1,8 @@ +#!/bin/bash +ln -sf ../../../banana/{img,locales,scripts} . + +pushd include &> /dev/null +ln -sf ../../../../banana/include/*.php . +popd &> /dev/null + +chmod a+w spool diff --git a/htdocs/banana/post.php b/htdocs/banana/post.php new file mode 100644 index 0000000..cff7f97 --- /dev/null +++ b/htdocs/banana/post.php @@ -0,0 +1,18 @@ +caching = false; +require('hack.inc.php'); + +$page->register_function('banana', 'banana', false); + +$page->run(); +?> diff --git a/htdocs/banana/scripts/spoolgen.php b/htdocs/banana/scripts/spoolgen.php new file mode 100755 index 0000000..996aee0 --- /dev/null +++ b/htdocs/banana/scripts/spoolgen.php @@ -0,0 +1,47 @@ +authinfo($news["user"],$news["pass"]); + if (!$result) { + print "authentication error\n"; + exit; + } +} +unset($result); + +$groups = new groups($nntp,2); +$list = array_keys($groups->overview); +unset($groups); +foreach ($list as $g) { + print "Generating spool for $g : "; + $spool = new spool($nntp,$g); + print "done.\n"; + unset($spool); +} +$nntp->quit(); +?> diff --git a/htdocs/banana/spool/.cvsignore b/htdocs/banana/spool/.cvsignore new file mode 100644 index 0000000..72e8ffc --- /dev/null +++ b/htdocs/banana/spool/.cvsignore @@ -0,0 +1 @@ +* diff --git a/htdocs/banana/subscribe.php b/htdocs/banana/subscribe.php new file mode 100644 index 0000000..cff7f97 --- /dev/null +++ b/htdocs/banana/subscribe.php @@ -0,0 +1,18 @@ +caching = false; +require('hack.inc.php'); + +$page->register_function('banana', 'banana', false); + +$page->run(); +?> diff --git a/htdocs/banana/thread.php b/htdocs/banana/thread.php new file mode 100644 index 0000000..cff7f97 --- /dev/null +++ b/htdocs/banana/thread.php @@ -0,0 +1,18 @@ +caching = false; +require('hack.inc.php'); + +$page->register_function('banana', 'banana', false); + +$page->run(); +?> diff --git a/htdocs/banana/xface.php b/htdocs/banana/xface.php new file mode 100644 index 0000000..cff7f97 --- /dev/null +++ b/htdocs/banana/xface.php @@ -0,0 +1,18 @@ +caching = false; +require('hack.inc.php'); + +$page->register_function('banana', 'banana', false); + +$page->run(); +?> diff --git a/htdocs/confbanana.php b/htdocs/confbanana.php new file mode 100644 index 0000000..9dacf9e --- /dev/null +++ b/htdocs/confbanana.php @@ -0,0 +1,59 @@ +db->query(" + SELECT nom,mail,sig,if(FIND_IN_SET('threads',flags),'1','0'), + IF(FIND_IN_SET('automaj',flags),'1','0') + FROM forums.profils + WHERE uid='{$_SESSION['uid']}'"); + if (!(list($nom,$mail,$sig,$disp,$maj)=mysql_fetch_row($req))) { + $nom = $_SESSION["prenom"]." ".$_SESSION["nom"]; + $mail = $_SESSION["forlife"]."@polytechnique.org"; + $sig = $nom." ({$_SESSION['promo']})"; + $disp=0; + $maj=0; + } + $page->assign('nom', $nom); + $page->assign('mail', $mail); + $page->assign('sig', $sig); + $page->assign('disp', $disp); + $page->assign('maj', $maj); +} else { + mysql_query("REPLACE INTO forums.profils (uid,sig,mail,nom,flags) + VALUES ('{$_SESSION['uid']}','{$_POST['bananasig']}', + '{$_POST['bananamail']}','{$_POST['banananame']}', + '".($_POST['bananadisplay']?"threads":"")."," + .($_POST['bananaupdate']?"automaj":"")."')"); +} + +$page->run(); +?> diff --git a/templates/banana.head.tpl b/templates/banana.head.tpl new file mode 100644 index 0000000..5cf1d3f --- /dev/null +++ b/templates/banana.head.tpl @@ -0,0 +1,25 @@ +{*************************************************************************** + * Copyright (C) 2003-2004 Polytechnique.org * + * http://opensource.polytechnique.org/ * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the Free Software * + * Foundation, Inc., * + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * + *************************************************************************** + $Id: banana.head.tpl,v 1.1 2004-09-26 15:02:34 x2000habouzit Exp $ + ***************************************************************************} + + + +{* vim:set et sw=2 sts=2 sws=2: *} diff --git a/templates/banana.tpl b/templates/banana.tpl new file mode 100644 index 0000000..1eb7535 --- /dev/null +++ b/templates/banana.tpl @@ -0,0 +1,25 @@ +{*************************************************************************** + * Copyright (C) 2003-2004 Polytechnique.org * + * http://opensource.polytechnique.org/ * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the Free Software * + * Foundation, Inc., * + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * + *************************************************************************** + $Id: banana.tpl,v 1.1 2004-09-26 15:02:34 x2000habouzit Exp $ + ***************************************************************************} + +{banana} + +{* vim:set et sw=2 sts=2 sws=2: *} diff --git a/templates/confbanana.tpl b/templates/confbanana.tpl new file mode 100644 index 0000000..f804a12 --- /dev/null +++ b/templates/confbanana.tpl @@ -0,0 +1,122 @@ +{*************************************************************************** + * Copyright (C) 2003-2004 Polytechnique.org * + * http://opensource.polytechnique.org/ * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the Free Software * + * Foundation, Inc., * + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * + *************************************************************************** + $Id: confbanana.tpl,v 1.1 2004-09-26 15:02:34 x2000habouzit Exp $ + ***************************************************************************} + +
+ Configuration de Banana +
+ +{dynamic} +{if !$smarty.post} + +

+ Tu peux régler quelques paramètres qui apparaîtront sur les messages lorsque + tu posteras sur les forums. Cela ne te permettra pas d'être anonyme, puisque + tout le monde pourra remonter à ton identité en regardant ta fiche. L'objectif + est simplement de permettre plus de convivialité. +

+

+ Tu pourras voir dans les forums les nouveaux messages mis en valeur (en + général en gras). Si tu consultes les forums régulièrement, tu peux en avoir + assez de voir tout le contenu du forum : la dernière option te permet de + n'afficher que les fils de discussion contenant des messages lus. +

+

+ Retour aux forums +

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Profil Banana +
+ Nom + + +
+ Adresse électronique + + +
+ Signature + + +
+ Affichage des fils de discussion + + Afficher tous + les messages +
+ Afficher + seulement les fils de discussion contenant des messages non lus +
+ Mise à jour des messages non lus + + Automatique +
+ Manuelle +
+ +
+
+ +{else} +

+ Ton profil est enregistré !!! +

+

+ Retour aux forums +

+{/if} + +{/dynamic} + +{* vim:set et sw=2 sts=2 sws=2: *} -- 2.1.4