read changelog
authorx2000habouzit <x2000habouzit>
Fri, 7 Jan 2005 15:57:11 +0000 (15:57 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 4 Jan 2008 23:34:20 +0000 (00:34 +0100)
25 files changed:
.arch-inventory [new file with mode: 0644]
AUTHORS [new file with mode: 0644]
COPYING [new file with mode: 0644]
Changelog [new file with mode: 0644]
Makefile [new file with mode: 0644]
README [new file with mode: 0644]
TODO [new file with mode: 0644]
banana/.arch-inventory [new file with mode: 0644]
banana/NetNNTP.inc.php [moved from include/NetNNTP.inc.php with 100% similarity]
banana/groups.inc.php [moved from include/groups.inc.php with 96% similarity]
banana/misc.inc.php [moved from include/misc.inc.php with 98% similarity]
banana/post.inc.php [moved from include/post.inc.php with 100% similarity]
banana/spool.inc.php [moved from include/spool.inc.php with 100% similarity]
examples/index.php [moved from index.php with 96% similarity]
examples/spoolgen.php [new file with mode: 0644]
examples/xface.php [moved from xface.php with 100% similarity]
include/.cvsignore [deleted file]
include/banana.inc.php.in [deleted file]
po/Makefile [new file with mode: 0644]
po/banana.pot [new file with mode: 0644]
po/fr.po [new file with mode: 0644]
po/shtool [new file with mode: 0755]
scripts/spoolgen.php [deleted file]
spool/.cvsignore [deleted file]
subscribe.php [deleted file]

diff --git a/.arch-inventory b/.arch-inventory
new file mode 100644 (file)
index 0000000..c21af03
--- /dev/null
@@ -0,0 +1 @@
+precious ^locale
diff --git a/AUTHORS b/AUTHORS
new file mode 100644 (file)
index 0000000..958a271
--- /dev/null
+++ b/AUTHORS
@@ -0,0 +1,7 @@
+Original Author :
+
+    2003-2004 : David Bachelart < david dot bachelart at polytechnique dot org >
+
+Current Authors :
+
+    since 2005 : Pierre Habouzit < pierre dot habouzit at polytechnique dot org >
diff --git a/COPYING b/COPYING
new file mode 100644 (file)
index 0000000..86568a9
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,341 @@
+                   GNU GENERAL PUBLIC LICENSE
+                      Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+                          675 Mass Ave, Cambridge, MA 02139, USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                           Preamble
+
+  The licenses for most software are designed to take away your
+freedom to share and change it.  By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users.  This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it.  (Some other Free Software Foundation software is covered by
+the GNU Library General Public License instead.)  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have.  You must make sure that they, too, receive or can get the
+source code.  And you must show them these terms so they know their
+rights.
+
+  We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+  Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software.  If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+  Finally, any free program is threatened constantly by software
+patents.  We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary.  To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+\f
+                   GNU GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License.  The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language.  (Hereinafter, translation is included without limitation in
+the term "modification".)  Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope.  The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+  1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+  2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+    a) You must cause the modified files to carry prominent notices
+    stating that you changed the files and the date of any change.
+
+    b) You must cause any work that you distribute or publish, that in
+    whole or in part contains or is derived from the Program or any
+    part thereof, to be licensed as a whole at no charge to all third
+    parties under the terms of this License.
+
+    c) If the modified program normally reads commands interactively
+    when run, you must cause it, when started running for such
+    interactive use in the most ordinary way, to print or display an
+    announcement including an appropriate copyright notice and a
+    notice that there is no warranty (or else, saying that you provide
+    a warranty) and that users may redistribute the program under
+    these conditions, and telling the user how to view a copy of this
+    License.  (Exception: if the Program itself is interactive but
+    does not normally print such an announcement, your work based on
+    the Program is not required to print an announcement.)
+\f
+These requirements apply to the modified work as a whole.  If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works.  But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+  3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+    a) Accompany it with the complete corresponding machine-readable
+    source code, which must be distributed under the terms of Sections
+    1 and 2 above on a medium customarily used for software interchange; or,
+
+    b) Accompany it with a written offer, valid for at least three
+    years, to give any third party, for a charge no more than your
+    cost of physically performing source distribution, a complete
+    machine-readable copy of the corresponding source code, to be
+    distributed under the terms of Sections 1 and 2 above on a medium
+    customarily used for software interchange; or,
+
+    c) Accompany it with the information you received as to the offer
+    to distribute corresponding source code.  (This alternative is
+    allowed only for noncommercial distribution and only if you
+    received the program in object code or executable form with such
+    an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it.  For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable.  However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+\f
+  4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License.  Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+  5. You are not required to accept this License, since you have not
+signed it.  However, nothing else grants you permission to modify or
+distribute the Program or its derivative works.  These actions are
+prohibited by law if you do not accept this License.  Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+  6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions.  You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+  7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all.  For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices.  Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+\f
+  8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded.  In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+  9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation.  If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+  10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission.  For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this.  Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+                           NO WARRANTY
+
+  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+                    END OF TERMS AND CONDITIONS
+
+
+           How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) 19yy  <name of author>
+
+    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
+
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+    Gnomovision version 69, Copyright (C) 19yy name of author
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License.  Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary.  Here is a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+  `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+  <signature of Ty Coon>, 1 April 1989
+  Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs.  If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library.  If this is what you want to do, use the GNU Library General
+Public License instead of this License.
diff --git a/Changelog b/Changelog
new file mode 100644 (file)
index 0000000..6eb47e6
--- /dev/null
+++ b/Changelog
@@ -0,0 +1,49 @@
+================================================================================
+VERSION 0.99
+
+Fri, 07 Jan 2005                                       Pierre Habouzit <pierre.habouzit@m4x.org>
+
+       * Banana is now a real standalone class.
+       * Clean hooks.
+       * Update the script spoolgen.php.
+
+Wed, 05 Jan 2005                                       Pierre Habouzit <pierre.habouzit@m4x.org>
+
+       * continue the work with post.php.
+
+Tue, 04 Jan 2005                                       Pierre Habouzit <pierre.habouzit@m4x.org>
+
+       * prepare Banana to be a library :
+               - delete a lot of echo's.
+               - use a lot of string passing.
+               - create more Banana:: functions.
+               => API IS NOT STABLE ATM.
+
+Mon, 03 Jan 2005                                       Pierre Habouzit <pierre.habouzit@m4x.org>
+
+       * no more $news -> class Banana.
+       * continue include rework.
+       * hooks functions enters.
+       * $banana is now the only global variable we need.
+       * exit format.inc.php.
+
+Sun, 02 Jan 2005                               Pierre Habouzit <pierre.habouzit@m4x.org>
+
+       * _(..) -> _b_(..) that performs a dgettext('banana', ...).
+       * use gettext and no more $locales.
+       * rework includes.
+
+Sat, 01 Jan 2005                                       Pierre Habouzit <pierre.habouzit@m4x.org>
+
+       * rework headerDecode function (biggest bottleneck).
+       * rework includes.
+
+================================================================================
+VERSION 0.7.1
+
+Before Jan 2005                                                David Bachelart <david.bachelart@m4x.org>
+
+       * first version.
+
+================================================================================
+vim:set ts=4 sw=4:
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..670dbea
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,45 @@
+# definitions
+
+VERSION=$(shell grep VERSION Changelog | head -1 | sed -e "s/VERSION //;s/\t.*//")
+PKG_DIST = banana-$(VERSION)
+
+PKG_FILES = AUTHORS Changelog COPYING README Makefile TODO
+
+PKG_DIRS = banana po
+
+VCS_FILTER = ! -name .arch-ids ! -name CVS
+
+# global targets
+
+build: pkg-build
+
+dist: clean pkg-dist
+
+clean:
+       rm -rf locale banana/include/banana.inc.php
+
+%: %.in Makefile
+       sed -e 's,@VERSION@,$(VERSION),g' $< > $@
+
+
+# banana package targets
+
+pkg-build: banana/include/banana.inc.php
+       make -C po
+
+pkg-dist: pkg-build
+       rm -rf $(PKG_DIST) $(PKG_DIST).tar.gz
+       mkdir $(PKG_DIST)
+       cp -a $(PKG_FILES) $(PKG_DIST)
+       for dir in `find $(PKG_DIRS) -type d $(VCS_FILTER)`; \
+       do \
+          mkdir -p $(PKG_DIST)/$$dir; \
+         find $$dir -type f -maxdepth 1 -exec cp {} $(PKG_DIST)/$$dir \; ; \
+       done
+       tar czf $(PKG_DIST).tar.gz $(PKG_DIST)
+       rm -rf $(PKG_DIST)
+
+
+
+.PHONY: build dist clean pkg-build pkg-dist lib-build lib-dist
+
diff --git a/README b/README
new file mode 100644 (file)
index 0000000..8c28f1c
--- /dev/null
+++ b/README
@@ -0,0 +1,7 @@
+banana - a web interface for a NNTP server
+
+DISTRIBUTING
+============
+
+banana is distributed under the terms of the GNU General Public
+License (GPL) (see COPYING)
diff --git a/TODO b/TODO
new file mode 100644 (file)
index 0000000..96d173d
--- /dev/null
+++ b/TODO
@@ -0,0 +1,2 @@
+* MIME support
+* strict NNTP support
diff --git a/banana/.arch-inventory b/banana/.arch-inventory
new file mode 100644 (file)
index 0000000..03a4700
--- /dev/null
@@ -0,0 +1 @@
+precious ^banana.inc.php
similarity index 96%
rename from include/groups.inc.php
rename to banana/groups.inc.php
index 5f762da..964682f 100644 (file)
@@ -115,7 +115,7 @@ class BananaGroups {
         $html .= '</table>';
 
         if ($show_form) {
-            return '<form method="post" action="'.$_SERVER['PHP_SELF'].'"><div class="center"><input type="submit" /></div>'
+            return '<form method="post" action="?"><div class="center"><input type="submit" /></div>'
                 .$html.'<div class="center"><input type="submit" /></div></form>';
         }
         
similarity index 98%
rename from include/misc.inc.php
rename to banana/misc.inc.php
index bdac4fa..a72e6cf 100644 (file)
@@ -147,7 +147,7 @@ function displayshortcuts($first = -1) {
     $res  = '<div class="banana_scuts">';
     $res .= '[<a href="?">'._b_('Liste des forums').'</a>] ';
     if (is_null($group)) {
-        return $res.'</div>';
+        return $res.'[<a href="?subscribe=1">'._b_('Abonnements').'</a>]</div>';
     }
    
     $res .= "[<a href=\"?group=$group\">$group</a>] ";
similarity index 100%
rename from include/post.inc.php
rename to banana/post.inc.php
similarity index 100%
rename from include/spool.inc.php
rename to banana/spool.inc.php
similarity index 96%
rename from index.php
rename to examples/index.php
index 536ad30..7893f06 100644 (file)
--- a/index.php
@@ -7,7 +7,7 @@
 * Copyright: See COPYING files that comes with this distribution
 ********************************************************************************/
 
-require_once("include/banana.inc.php");
+require_once("banana/banana.inc.php");
 $res = Banana::run();
 
 ?>
diff --git a/examples/spoolgen.php b/examples/spoolgen.php
new file mode 100644 (file)
index 0000000..b848de2
--- /dev/null
@@ -0,0 +1,54 @@
+#! /usr/bin/php4
+<?php
+/********************************************************************************
+ * spoolgen.php : spool generation
+ * --------------
+ *
+ * This file is part of the banana distribution
+ * Copyright: See COPYING files that comes with this distribution
+ ********************************************************************************/
+
+require_once("banana/banana.inc.php");
+
+$opt = getopt('u:p:h');
+
+if(isset($opt['h'])) {
+    echo <<<EOF
+usage: spoolgen.pgp [ -u user ] [ -p pass ]
+    create all spools, using user user and pass pass
+EOF;
+    exit;
+}
+
+class MyBanana extends Banana
+{
+    function MyBanana()
+    {
+        global $opt;
+        $this->host = "http://{$opt['u']}:{$opt['p']}@localhost:119/";
+        echo $this->host;
+        parent::Banana();
+    }
+
+    function createAllSpool()
+    {
+        $this->_require('groups');
+        $this->_require('spool');
+        $this->_require('misc');
+
+        $groups = new BananaGroups(BANANA_GROUP_ALL);
+
+        foreach (array_keys($groups->overview) as $g) {
+            print "Generating spool for $g : ";
+            $spool = new BananaSpool($g);
+            print "done.\n";
+            unset($spool);
+        }
+        $this->nntp->quit();
+    }
+}
+
+
+$banana = new MyBanana();
+$banana->createAllSpool();
+?>
similarity index 100%
rename from xface.php
rename to examples/xface.php
diff --git a/include/.cvsignore b/include/.cvsignore
deleted file mode 100644 (file)
index 76fc7d1..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-banana.inc.php
-footer.inc.php
-header.inc.php
-profile_form.inc.php
-profile.inc.php
diff --git a/include/banana.inc.php.in b/include/banana.inc.php.in
deleted file mode 100644 (file)
index f98aad3..0000000
+++ /dev/null
@@ -1,296 +0,0 @@
-<?php
-/********************************************************************************
-* install.d/config.inc.php : configuration file
-* --------------------------
-*
-* This file is part of the banana distribution
-* Copyright: See COPYING files that comes with this distribution
-********************************************************************************/
-
-class Banana
-{
-    var $maxspool  = 3000;
-
-    var $hdecode   = array('from','name','organization','subject');
-    var $parse_hdr = array('content-transfer-encoding', 'content-type', 'date', 'followup-to', 'from',
-            'message-id', 'newsgroups', 'organization', 'references', 'subject', 'x-face');
-    var $show_hdr  = array('from', 'subject', 'newsgroups', 'followup', 'date', 'organization', 'references', 'x-face');
-
-
-    var $tbefore   = 5;
-    var $tafter    = 5;
-    var $tmax      = 50;
-
-    var $wrap      = 74;
-
-    var $custom    = "Content-Type: text/plain; charset=iso-8859-15\nMime-Version: 1.0\nContent-Transfer-Encoding: 8bit\nUser-Agent: Banana @VERSION@\n";
-
-    var $host      = 'news://localhost:119/';
-
-    var $profile   = Array( 'name' => 'Anonymous <anonymouse@example.com>', 'sig'  => '', 'org'  => '',
-            'customhdr' =>'', 'display' => 0, 'lastnews' => 0, 'locale'  => 'fr_FR', 'subscribe' => array());
-    
-    var $state = Array('group' => null, 'artid' => null);
-    var $nntp;
-    var $groups;
-    var $newgroups;
-    var $post;
-    var $spool;
-
-    function Banana()
-    {
-        require_once('include/NetNNTP.inc.php');
-        setlocale(LC_ALL,  $this->profile['locale']);
-        $this->nntp = new nntp($this->host);
-    }
-
-    function run($class = 'Banana')
-    {
-        global $banana;
-        require_once("include/misc.inc.php");
-        $banana = new $class();
-
-        if (!$banana->nntp) {
-            return '<p class="error">'._b_('Impossible de contacter le serveur').'</p>';
-        }
-
-        $group  = empty($_GET['group']) ? null : strtolower($_GET['group']);
-        $artid  = empty($_GET['artid']) ? null : strtolower($_GET['artid']);
-        $banana->state = Array ('group' => $group, 'artid' => $artid);
-
-        if (is_null($group)) {
-
-            return $banana->action_listGroups();
-
-        } elseif (is_null($artid)) {
-            
-            if (isset($_POST['action']) && $_POST['action'] == 'new') {
-                return $banana->action_doFup($group, isset($_POST['artid']) ? intval($_POST['artid']) : -1);
-            } elseif (isset($_GET['action']) && $_GET['action'] == 'new') {
-                return $banana->action_newFup($group);
-            } else {
-                return $banana->action_showThread($group, isset($_GET['first']) ? intval($_GET['first']) : 1);
-            }
-
-        } else {
-
-            if (isset($_POST['action']) && $_POST['action']=='cancel') {
-                $res = $banana->action_cancelArticle($group, $artid);
-            } else {
-                $res = '';
-            }
-
-            if (isset($_GET['action'])) {
-                switch ($_GET['action']) {
-                    case 'cancel':
-                        $res .= $banana->action_showArticle($group, $artid);
-                        if ($banana->post->checkcancel()) {
-                            $form = '<p class="error">'._b_('Voulez-vous vraiment annuler ce message ?').'</p>'
-                                  . "<form action=\"?group=$group&amp;artid=$artid\" method='post'><p>"
-                                  . '<input type="hidden" name="action" value="cancel" />'
-                                  . '<input type="submit" value="Annuler !" />'
-                                  . '</p></form>';
-                            return $form.$res;
-                        }
-                        return $res;
-
-                    case 'new':
-                        return $banana->action_newFup($group, $artid);
-                }
-            }
-            return $res . $banana->action_showArticle($group, $artid);
-        }
-    }
-
-    /**************************************************************************/
-    /* actions                                                                */
-    /**************************************************************************/
-
-    function action_listGroups()
-    {
-        $this->_newGroup();
-        
-        $cuts = displayshortcuts();
-        $res  = '<h1>'._b_('Les forums de Banana').'</h1>'.$cuts.$this->groups->to_html();
-        if (count($this->newgroups->overview)) {
-            $res .= '<p>'._b_('Les forums suivants ont Ã©té créés depuis ton dernier passage :').'</p>';
-            $res .= $this->newgroups->to_html();
-        }
-
-        $this->nntp->quit();
-        return $res.$cuts;
-    }
-
-    function action_listSubs()
-    {
-        require_once("include/groups.inc.php");
-        $this->groups = new BananaGroups(BANANA_GROUP_ALL);
-        
-        $cuts = displayshortcuts();
-        $res  = '<h1>'._b_('Abonnements').'</h1>'.$cuts.$this->groups->to_html(true).$cuts;
-
-        $this->nntp->quit();
-        return $res;
-    }
-
-    function action_showThread($group, $first)
-    {
-        $this->_newSpool($group, $this->profile['display'], $this->profile['lastnews']);
-
-        if ($first > count($this->spool->overview)) {
-            $first = count($this->spool->overview);
-        }
-
-        $first = $first - ($first % $this->tmax) + 1;
-
-        $cuts = displayshortcuts($first);
-        
-        $res  = '<h1>'.$group.'</h1>'.$cuts;
-        $res  .= $this->spool->to_html($first, $first+$this->tmax);
-
-        $this->nntp->quit();
-        
-        return $res.$cuts;
-    }
-
-    function action_showArticle($group, $id)
-    {
-        $this->_newSpool($group, $this->profile['display'], $this->profile['lastnews']);
-        $this->_newPost($id);
-        if (!$this->post) {
-            if ($this->nntp->lasterrorcode == "423") {
-                $this->spool->delid($id);
-            }
-            $this->nntp->quit();
-            return displayshortcuts().'<p class="error">'._b_('Impossible d\'accéder au message.   Le message a peut-être Ã©té annulé').'</p>';
-        }
-
-        $cuts = displayshortcuts();
-        $res  = '<h1>'._b_('Message').'</h1>'.$cuts;
-        $res .= $this->post->to_html();
-
-        $this->nntp->quit();
-        
-        return $res.$cuts;
-    }
-
-    function action_cancelArticle($group, $id)
-    {
-        $this->_newSpool($group, $this->profile['display'], $this->profile['lastnews']);
-        $this->_newPost($id);
-        $mid  = array_search($id, $this->spool->ids);
-
-        if (!$this->post->checkcancel()) {
-            return '<p class="error">'._b_('Vous n\'avez pas les permissions pour annuler ce message').'</p>'; 
-        }
-        $msg = 'From: '.$this->profile['name']."\n"
-             . "Newsgroups: $group\n"
-             . "Subject: cmsg $mid\n"
-             . $this->custom
-             . "Control: cancel $mid\n"
-             . "\n"
-             . "Message canceled with Banana";
-        if ($this->nntp->post($msg)) {
-            $this->spool->delid($id);
-            $this->nntp->quit();
-            header("Location: ?group=$group&amp;first=$id");
-        } else {
-            return '<p class="error">'._b_('Impossible d\'annuler le message').'</p>';
-        }
-    }
-
-    function action_newFup($group, $id = -1)
-    {
-        $subject = $body = '';
-        $target  = $group;
-        
-        if ($id > 0) {
-            $this->nntp->group($group);
-            $this->_newPost($id);
-            if ($this->post) {
-                $subject = preg_replace("/^re\s*:\s*/i", 'Re: ', $this->post->headers['subject']);
-                $body    = $this->post->name." "._b_("a Ã©crit")." :\n".wrap($this->post->body, "> ");
-                $target  = isset($this->post->headers['followup-to']) ? $this->post->headers['followup-to'] : $this->post->headers['newsgroups'];
-            }
-        }
-
-        $this->nntp->quit();
-
-        $cuts  = displayshortcuts();
-        $html  = '<h1>'._b_('Nouveau message').'</h1>'.$cuts;
-        $html .= '<form action="?group='.$group.'" method="post">';
-        $html .= '<table class="bicol" cellpadding="0" cellspacing="0">';
-        $html .= '<tr><th colspan="2">'._b_('En-têtes').'</th></tr>';
-        $html .= '<tr><td>'._b_('Nom').'</td><td>'.htmlentities($this->profile['name']).'</td></tr>';
-        $html .= '<tr><td>'._b_('Sujet').'</td><td><input type="text" name="subject" value="'.htmlentities($subject).'" size="60" /></td></tr>';
-        $html .= '<tr><td>'._b_('Forums').'</td><td><input type="text" name="newsgroups" value="'.htmlentities($target).'" size="60" /></td></tr>';
-        $html .= '<tr><td>'._b_('Suivi Ã ').'</td><td><input type="text" name="followup" value="" size="60" /></td></tr>';
-        $html .= '<tr><td>'._b_('Organisation').'</td><td>'.$this->profile['org'].'</td></tr>';
-        $html .= '<tr><th colspan="2">'._b_('Corps').'</th></tr>';
-        $html .= '<tr><td colspan="2"><textarea name="body" cols="74" rows="16">'
-            .htmlentities($body).($this->profile['sig'] ? "\n\n-- \n".htmlentities($this->profile['sig']) : '').'</textarea></td></th>';
-        $html .= '<tr><td colspan="2">';
-        if ($id > 0) {
-            $html .= '<input type="hidden" name="artid" value="'.$id.'" />';
-        }
-        $html .= '<input type="hidden" name="action" value="new" />';
-        $html .= '<input type="submit" /></td></tr>';
-        $html .= '</table></form>';
-
-        return $html.$cuts;
-    }
-
-    function action_doFup($group, $artid = -1)
-    {
-        $this->_newSpool($group, $this->profile['display'], $this->profile['lastnews']);
-        $body = preg_replace("/\n\.[ \t\r]*\n/m", "\n..\n", $_POST['body']);
-        $msg  = 'From: '.$this->profile['name']."\n"
-              . "Newsgroups: ".$_POST['newsgroups']."\n"
-              . "Subject: ".$_POST['subject']."\n"
-              . (empty($this->profile['org']) ? '' : "Organization: {$this->profile['org']}\n")
-              . (empty($_POST['followup'])    ? '' : 'Followup-To: '.$_POST['followup']."\n");
-
-        if ($artid != -1) {
-            require_once("include/post.inc.php");
-            $post = new BananaPost($artid);
-            $refs = ( isset($post->headers['references']) ? $post->headers['references']." " : "" );
-            $msg .= "References: $refs{$post->headers['message-id']}\n";
-        }
-
-        $msg .= $this->custom.$this->profile['customhdr']."\n".wrap($body, "", $this->wrap);
-
-        if ($this->nntp->post($msg)) {
-            header("Location: ?group=$group".($artid==-1 ? '' : "&first=$artid"));
-        } else {
-            return "<p class=\"error\">"._b_('Impossible de poster le message')."</p>".$this->action_showThread($group, $artid);
-        }
-    }
-
-    /**************************************************************************/
-    /* Private functions                                                      */
-    /**************************************************************************/
-
-    function _newSpool($group, $disp=0, $since='') {
-        require_once('include/spool.inc.php');
-        if (!$this->spool || $this->spool->group != $group) {
-            $this->spool = new BananaSpool($group, $disp, $since);
-        }
-    }
-
-    function _newPost($id)
-    {
-        require_once("include/post.inc.php");
-        $this->post = new BananaPost($id);
-    }
-
-    function _newGroup()
-    {
-        require_once("include/groups.inc.php");
-        $this->groups = new BananaGroups(BANANA_GROUP_SUB);
-        if ($this->groups->type == BANANA_GROUP_SUB) {
-            $this->newgroups = new BananaGroups(BANANA_GROUP_NEW);
-        }
-    }
-}
-
-?>
diff --git a/po/Makefile b/po/Makefile
new file mode 100644 (file)
index 0000000..781d409
--- /dev/null
@@ -0,0 +1,54 @@
+# Horde .mo files makefile
+#
+# $Horde: horde/po/Makefile,v 1.2.2.3 2002/05/20 17:36:22 jan Exp $
+#
+
+APPLICATION = banana
+MSGFMT = msgfmt --statistics -c -v -o
+MSGFMTSOL = msgfmt -v -o
+MSGMERGE = msgmerge -U
+XGETTEXT = xgettext --from-code=iso-8859-15 -j -k_b_ -o
+PHPFILES = find banana -name "*.php"
+
+
+all: install
+
+xgettext:
+       cd .. && ${XGETTEXT} po/${APPLICATION}.pot `${PHPFILES}`
+
+%.po: ${APPLICATION}.pot
+       @echo "Updating .po files from .pot:"
+       ${MSGMERGE} $@ $<
+
+install: *.po
+       @echo "Checking for os ... ${OSTYPE}"; \
+       if test "${OSTYPE}" = "solaris"; then \
+               echo "You'll probably get some warnings on Solaris. This is normal."; \
+       fi; \
+       for LOCALE in `ls *.po | sed 's/\.[^.]*$$//g'`; do \
+               if test $${LOCALE}.po = "messages.po"; then \
+                       continue; \
+               fi; \
+               echo "Compiling locale $${LOCALE}:"; \
+               if ./shtool mkdir -p ../locale/$${LOCALE}/LC_MESSAGES; then \
+                       if test "${OSTYPE}" = "solaris"; then \
+                               if ${MSGFMTSOL} ../locale/$${LOCALE}/LC_MESSAGES/${APPLICATION}.mo $${LOCALE}.po; then \
+                                       echo "  ... done"; \
+                                       echo; \
+                               else \
+                                       echo "  ... FAILED"; \
+                                       echo; \
+                               fi \
+                       else \
+                               if ${MSGFMT} ../locale/$${LOCALE}/LC_MESSAGES/${APPLICATION}.mo $${LOCALE}.po; then \
+                                       echo "  ... done"; \
+                                       echo; \
+                               else \
+                                       echo "  ... FAILED"; \
+                                       echo; \
+                               fi \
+                       fi; \
+               else \
+                       echo "Could not create locale directory for $${LOCALE}."; \
+               fi \
+       done;
diff --git a/po/banana.pot b/po/banana.pot
new file mode 100644 (file)
index 0000000..f4afed6
--- /dev/null
@@ -0,0 +1,341 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2005-01-07 19:02+0100\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: banana/article.php:55 banana/article.php:53
+#: banana/include/banana.inc.php:116 banana/include/banana.inc.php:169
+msgid "Message"
+msgstr ""
+
+#: banana/article.php:62 banana/article.php:60 banana/article.php:25
+#: banana/include/banana.inc.php:88
+msgid "Voulez-vous vraiment annuler ce message ?"
+msgstr ""
+
+#: banana/article.php:69 banana/article.php:67 banana/article.php:31
+msgid "OK"
+msgstr ""
+
+#: banana/article.php:78 banana/article.php:76
+msgid "Contenu du message"
+msgstr ""
+
+#: banana/article.php:81 banana/post.php:83 banana/article.php:79
+#: banana/post.php:81
+msgid "En-ttes"
+msgstr ""
+
+#: banana/article.php:94 banana/post.php:130 banana/article.php:92
+#: banana/post.php:128 banana/include/banana.inc.php:151
+#: banana/include/post.inc.php:107 banana/include/banana.inc.php:229
+#: banana/include/post.inc.php:111 banana/post.inc.php:111
+msgid "Corps"
+msgstr ""
+
+#: banana/article.php:104 banana/article.php:102
+msgid "Aperu"
+msgstr ""
+
+#: banana/disconnect.php:23 banana/disconnect.php:21 banana/disconnect.php:22
+msgid "Dconnexion effectue !"
+msgstr ""
+
+#: banana/disconnect.php:26 banana/disconnect.php:24 banana/disconnect.php:25
+msgid "Retour au <a href=\"index.php\">profil</a>"
+msgstr ""
+
+#: banana/index.php:37 banana/index.php:35 banana/index.php:36
+#: banana/include/banana.inc.php:61 banana/include/banana.inc.php:114
+msgid "Les forums de Banana"
+msgstr ""
+
+#: banana/index.php:49 banana/index.php:95 banana/subscribe.php:55
+#: banana/index.php:47 banana/index.php:93 banana/subscribe.php:53
+#: banana/index.php:48 banana/index.php:94 banana/subscribe.php:54
+#: banana/include/groups.inc.php:87 banana/groups.inc.php:87
+msgid "Total"
+msgstr ""
+
+#: banana/index.php:52 banana/index.php:50 banana/index.php:51
+#: banana/include/groups.inc.php:91 banana/groups.inc.php:91
+msgid "Nouveaux"
+msgstr ""
+
+#: banana/index.php:55 banana/index.php:98 banana/post.php:88
+#: banana/subscribe.php:61 banana/index.php:53 banana/index.php:96
+#: banana/post.php:86 banana/subscribe.php:59 banana/index.php:54
+#: banana/index.php:97 banana/subscribe.php:60
+#: banana/include/banana.inc.php:146 banana/include/groups.inc.php:93
+#: banana/include/banana.inc.php:224 banana/groups.inc.php:93
+msgid "Nom"
+msgstr ""
+
+#: banana/index.php:58 banana/index.php:101 banana/subscribe.php:64
+#: banana/index.php:56 banana/index.php:99 banana/subscribe.php:62
+#: banana/index.php:57 banana/index.php:100 banana/subscribe.php:63
+#: banana/include/groups.inc.php:93 banana/groups.inc.php:93
+msgid "Description"
+msgstr ""
+
+#: banana/index.php:90 banana/index.php:88 banana/index.php:89
+msgid "Les forums suivants ont t crs depuis ton dernier passage :"
+msgstr ""
+
+#: banana/post.php:71 banana/install.d/format.inc.php:72 banana/post.php:69
+#: banana/include/banana.inc.php:142 banana/include/misc.inc.php:162
+#: banana/include/banana.inc.php:220 banana/include/misc.inc.php:156
+#: banana/misc.inc.php:156
+msgid "Nouveau message"
+msgstr ""
+
+#: banana/post.php:96 banana/thread.php:153 banana/include/misc.inc.php:24
+#: banana/post.php:94 banana/thread.php:151 banana/include/misc.inc.php:26
+#: banana/include/misc.inc.php:28 banana/include/banana.inc.php:147
+#: banana/include/misc.inc.php:43 banana/include/spool.inc.php:360
+#: banana/include/banana.inc.php:225 banana/include/misc.inc.php:34
+#: banana/misc.inc.php:34 banana/spool.inc.php:360
+msgid "Sujet"
+msgstr ""
+
+#: banana/post.php:105 banana/include/misc.inc.php:25 banana/post.php:103
+#: banana/include/misc.inc.php:27 banana/include/misc.inc.php:29
+#: banana/include/banana.inc.php:148 banana/include/misc.inc.php:44
+#: banana/include/banana.inc.php:226 banana/include/misc.inc.php:35
+#: banana/misc.inc.php:35
+msgid "Forums"
+msgstr ""
+
+#: banana/article.php:79 banana/post.php:81 banana/include/banana.inc.php:145
+#: banana/include/post.inc.php:96 banana/include/banana.inc.php:223
+#: banana/include/post.inc.php:100 banana/post.inc.php:100
+msgid "En-têtes"
+msgstr ""
+
+#: banana/article.php:102
+msgid "Aperçu"
+msgstr ""
+
+#: banana/disconnect.php:22
+msgid "Déconnexion effectuée !"
+msgstr ""
+
+#: banana/index.php:89 banana/include/banana.inc.php:63
+#: banana/include/banana.inc.php:116
+msgid "Les forums suivants ont Ã©té créés depuis ton dernier passage :"
+msgstr ""
+
+#: banana/post.php:112 banana/include/misc.inc.php:30
+#: banana/include/misc.inc.php:45 banana/include/misc.inc.php:36
+#: banana/misc.inc.php:36
+msgid "Suivi-à"
+msgstr ""
+
+#: banana/post.php:120 banana/include/misc.inc.php:32
+#: banana/install.d/profile_form.inc.php:40 banana/include/banana.inc.php:150
+#: banana/include/misc.inc.php:47 banana/include/profile_form.inc.php:40
+#: banana/include/banana.inc.php:228 banana/include/misc.inc.php:38
+#: banana/misc.inc.php:38
+msgid "Organisation"
+msgstr ""
+
+#: banana/subscribe.php:34 banana/include/banana.inc.php:77
+#: banana/include/banana.inc.php:130 banana/misc.inc.php:150
+msgid "Abonnements"
+msgstr ""
+
+#: banana/subscribe.php:57
+msgid "Abonné"
+msgstr ""
+
+#: banana/thread.php:71 banana/thread.php:43
+msgid "Message annulé"
+msgstr ""
+
+#: banana/thread.php:73 banana/thread.php:45 banana/include/banana.inc.php:198
+msgid "Impossible d'annuler le message"
+msgstr ""
+
+#: banana/thread.php:76 banana/thread.php:48 banana/include/banana.inc.php:184
+msgid "Vous n'avez pas les permissions pour annuler ce message"
+msgstr ""
+
+#: banana/thread.php:93 banana/thread.php:120 banana/thread.php:63
+#: banana/thread.php:88
+msgid "Message posté"
+msgstr ""
+
+#: banana/thread.php:95 banana/thread.php:122 banana/thread.php:65
+#: banana/thread.php:90 banana/include/banana.inc.php:265
+msgid "Impossible de poster le message"
+msgstr ""
+
+#: banana/thread.php:148 banana/include/misc.inc.php:31
+#: banana/include/misc.inc.php:46 banana/include/spool.inc.php:359
+#: banana/include/misc.inc.php:37 banana/misc.inc.php:37
+#: banana/spool.inc.php:359
+msgid "Date"
+msgstr ""
+
+#: banana/thread.php:154 banana/include/spool.inc.php:361
+#: banana/spool.inc.php:361
+msgid "Auteur"
+msgstr ""
+
+#: banana/include/misc.inc.php:27 banana/include/misc.inc.php:42
+#: banana/include/misc.inc.php:33 banana/misc.inc.php:33
+msgid "De"
+msgstr ""
+
+#: banana/include/misc.inc.php:33 banana/include/misc.inc.php:48
+#: banana/include/misc.inc.php:39 banana/misc.inc.php:39
+msgid "Références"
+msgstr ""
+
+#: banana/include/misc.inc.php:34 banana/include/misc.inc.php:49
+#: banana/include/misc.inc.php:40 banana/misc.inc.php:40
+msgid "Image"
+msgstr ""
+
+#: banana/include/misc.inc.php:51 banana/include/misc.inc.php:121
+#: banana/include/misc.inc.php:115 banana/misc.inc.php:115
+msgid "hier"
+msgstr ""
+
+#: banana/install.d/error.inc.php:17 banana/include/error.inc.php:17
+msgid "Impossible de se connecter au serveur de forums"
+msgstr ""
+
+#: banana/install.d/error.inc.php:22 banana/include/error.inc.php:22
+msgid "L'authentification sur le serveur de forums a Ã©choué"
+msgstr ""
+
+#: banana/install.d/error.inc.php:28 banana/include/error.inc.php:28
+msgid "Il n'y a pas de forum sur ce serveur"
+msgstr ""
+
+#: banana/install.d/error.inc.php:36 banana/include/error.inc.php:36
+msgid "Impossible d'accéder au forum"
+msgstr ""
+
+#: banana/install.d/error.inc.php:45 banana/include/error.inc.php:45
+msgid "Impossible d'accéder au message.  Le message a peut-être Ã©té annulé"
+msgstr ""
+
+#: banana/install.d/format.inc.php:67
+msgid "Déconnexion"
+msgstr ""
+
+#: banana/install.d/format.inc.php:71 banana/install.d/format.inc.php:86
+#: banana/install.d/format.inc.php:94 banana/include/misc.inc.php:161
+#: banana/include/misc.inc.php:176 banana/include/misc.inc.php:186
+#: banana/include/misc.inc.php:148 banana/misc.inc.php:148
+msgid "Liste des forums"
+msgstr ""
+
+#: banana/install.d/format.inc.php:88 banana/include/misc.inc.php:179
+#: banana/include/misc.inc.php:171 banana/misc.inc.php:171
+msgid "Répondre"
+msgstr ""
+
+#: banana/install.d/format.inc.php:90 banana/include/misc.inc.php:182
+#: banana/include/misc.inc.php:174 banana/misc.inc.php:174
+msgid "Annuler ce message"
+msgstr ""
+
+#: banana/install.d/profile_form.inc.php:11
+#: banana/include/profile_form.inc.php:11
+msgid "Bienvenue sur Banana !"
+msgstr ""
+
+#: banana/install.d/profile_form.inc.php:19
+#: banana/include/profile_form.inc.php:19
+msgid "Définis tes paramètres"
+msgstr ""
+
+#: banana/install.d/profile_form.inc.php:24
+#: banana/include/profile_form.inc.php:24
+msgid "Nom (par exemple Jean Dupont)"
+msgstr ""
+
+#: banana/install.d/profile_form.inc.php:32
+#: banana/include/profile_form.inc.php:32
+msgid "Adresse mail"
+msgstr ""
+
+#: banana/install.d/profile_form.inc.php:48
+#: banana/include/profile_form.inc.php:48
+msgid "Signature"
+msgstr ""
+
+#: banana/install.d/profile_form.inc.php:56
+#: banana/include/profile_form.inc.php:56
+msgid "Affichage"
+msgstr ""
+
+#: banana/install.d/profile_form.inc.php:62
+#: banana/include/profile_form.inc.php:62
+msgid "Tous les messages"
+msgstr ""
+
+#: banana/install.d/profile_form.inc.php:68
+#: banana/include/profile_form.inc.php:68
+msgid "Seulement les fils de discussion comportant des messages non lus"
+msgstr ""
+
+#: banana/install.d/profile_form.inc.php:73
+#: banana/include/profile_form.inc.php:73
+msgid "Authentification sur le serveur NNTP"
+msgstr ""
+
+#: banana/install.d/profile_form.inc.php:78
+#: banana/include/profile_form.inc.php:78
+msgid "Login (laisser anonyme pour un login en anonyme)"
+msgstr ""
+
+#: banana/install.d/profile_form.inc.php:86
+#: banana/include/profile_form.inc.php:86
+msgid "Mot de passe"
+msgstr ""
+
+#: banana/include/banana.inc.php:112 banana/include/banana.inc.php:165
+msgid "Impossible d'accéder au message.   Le message a peut-être Ã©té annulé"
+msgstr ""
+
+#: banana/include/banana.inc.php:134 banana/include/banana.inc.php:212
+msgid "a Ã©crit"
+msgstr ""
+
+#: banana/include/banana.inc.php:149 banana/include/banana.inc.php:227
+msgid "Suivi Ã "
+msgstr ""
+
+#: banana/include/groups.inc.php:89 banana/groups.inc.php:89
+msgid "Abo."
+msgstr ""
+
+#: banana/include/post.inc.php:110 banana/include/post.inc.php:114
+#: banana/post.inc.php:114
+msgid "apercu"
+msgstr ""
+
+#: banana/include/spool.inc.php:372 banana/spool.inc.php:372
+msgid "Aucun message dans ce forum"
+msgstr ""
+
+#: banana/include/banana.inc.php:54
+msgid "Impossible de contacter le serveur"
+msgstr ""
diff --git a/po/fr.po b/po/fr.po
new file mode 100644 (file)
index 0000000..161f800
--- /dev/null
+++ b/po/fr.po
@@ -0,0 +1,341 @@
+# translation of fr.po to 
+# This file is distributed under the same license as the PACKAGE package.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER.
+# Pierre Habouzit <pierre.habouzit@m4x.org>, 2005.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: fr\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2005-01-07 19:02+0100\n"
+"PO-Revision-Date: 2005-01-02 17:13+0100\n"
+"Last-Translator: Pierre Habouzit <pierre.habouzit@m4x.org>\n"
+"Language-Team:  <fr@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.9.1\n"
+
+#: banana/article.php:55 banana/article.php:53
+#: banana/include/banana.inc.php:116 banana/include/banana.inc.php:169
+msgid "Message"
+msgstr "Message"
+
+#: banana/article.php:62 banana/article.php:60 banana/article.php:25
+#: banana/include/banana.inc.php:88
+msgid "Voulez-vous vraiment annuler ce message ?"
+msgstr "Voulez-vous vraiment annuler ce message ?"
+
+#: banana/article.php:69 banana/article.php:67 banana/article.php:31
+msgid "OK"
+msgstr "OK"
+
+#: banana/article.php:78 banana/article.php:76
+msgid "Contenu du message"
+msgstr "Contenu du message"
+
+#: banana/article.php:81 banana/post.php:83 banana/article.php:79
+#: banana/post.php:81
+msgid "En-ttes"
+msgstr "En-ttes"
+
+#: banana/article.php:94 banana/post.php:130 banana/article.php:92
+#: banana/post.php:128 banana/include/banana.inc.php:151
+#: banana/include/post.inc.php:107 banana/include/banana.inc.php:229
+#: banana/include/post.inc.php:111 banana/post.inc.php:111
+msgid "Corps"
+msgstr "Corps"
+
+#: banana/article.php:104 banana/article.php:102
+msgid "Aperu"
+msgstr "Aperu"
+
+#: banana/disconnect.php:23 banana/disconnect.php:21 banana/disconnect.php:22
+msgid "Dconnexion effectue !"
+msgstr "Dconnexion effectue !"
+
+#: banana/disconnect.php:26 banana/disconnect.php:24 banana/disconnect.php:25
+msgid "Retour au <a href=\"index.php\">profil</a>"
+msgstr "Retour au <a href=\"index.php\">profil</a>"
+
+#: banana/index.php:37 banana/index.php:35 banana/index.php:36
+#: banana/include/banana.inc.php:61 banana/include/banana.inc.php:114
+msgid "Les forums de Banana"
+msgstr "Les forums de Banana"
+
+#: banana/index.php:49 banana/index.php:95 banana/subscribe.php:55
+#: banana/index.php:47 banana/index.php:93 banana/subscribe.php:53
+#: banana/index.php:48 banana/index.php:94 banana/subscribe.php:54
+#: banana/include/groups.inc.php:87 banana/groups.inc.php:87
+msgid "Total"
+msgstr "Total"
+
+#: banana/index.php:52 banana/index.php:50 banana/index.php:51
+#: banana/include/groups.inc.php:91 banana/groups.inc.php:91
+msgid "Nouveaux"
+msgstr "Nouveaux"
+
+#: banana/index.php:55 banana/index.php:98 banana/post.php:88
+#: banana/subscribe.php:61 banana/index.php:53 banana/index.php:96
+#: banana/post.php:86 banana/subscribe.php:59 banana/index.php:54
+#: banana/index.php:97 banana/subscribe.php:60
+#: banana/include/banana.inc.php:146 banana/include/groups.inc.php:93
+#: banana/include/banana.inc.php:224 banana/groups.inc.php:93
+msgid "Nom"
+msgstr "Nom"
+
+#: banana/index.php:58 banana/index.php:101 banana/subscribe.php:64
+#: banana/index.php:56 banana/index.php:99 banana/subscribe.php:62
+#: banana/index.php:57 banana/index.php:100 banana/subscribe.php:63
+#: banana/include/groups.inc.php:93 banana/groups.inc.php:93
+msgid "Description"
+msgstr "Description"
+
+#: banana/index.php:90 banana/index.php:88 banana/index.php:89
+msgid "Les forums suivants ont t crs depuis ton dernier passage :"
+msgstr "Les forums suivants ont t crs depuis ton dernier passage :"
+
+#: banana/post.php:71 banana/install.d/format.inc.php:72 banana/post.php:69
+#: banana/include/banana.inc.php:142 banana/include/misc.inc.php:162
+#: banana/include/banana.inc.php:220 banana/include/misc.inc.php:156
+#: banana/misc.inc.php:156
+msgid "Nouveau message"
+msgstr "Nouveau message"
+
+#: banana/post.php:96 banana/thread.php:153 banana/include/misc.inc.php:24
+#: banana/post.php:94 banana/thread.php:151 banana/include/misc.inc.php:26
+#: banana/include/misc.inc.php:28 banana/include/banana.inc.php:147
+#: banana/include/misc.inc.php:43 banana/include/spool.inc.php:360
+#: banana/include/banana.inc.php:225 banana/include/misc.inc.php:34
+#: banana/misc.inc.php:34 banana/spool.inc.php:360
+msgid "Sujet"
+msgstr "Sujet"
+
+#: banana/post.php:105 banana/include/misc.inc.php:25 banana/post.php:103
+#: banana/include/misc.inc.php:27 banana/include/misc.inc.php:29
+#: banana/include/banana.inc.php:148 banana/include/misc.inc.php:44
+#: banana/include/banana.inc.php:226 banana/include/misc.inc.php:35
+#: banana/misc.inc.php:35
+msgid "Forums"
+msgstr "Forums"
+
+#: banana/article.php:79 banana/post.php:81 banana/include/banana.inc.php:145
+#: banana/include/post.inc.php:96 banana/include/banana.inc.php:223
+#: banana/include/post.inc.php:100 banana/post.inc.php:100
+msgid "En-têtes"
+msgstr "En-têtes"
+
+#: banana/article.php:102
+msgid "Aperçu"
+msgstr "Aperçu"
+
+#: banana/disconnect.php:22
+msgid "Déconnexion effectuée !"
+msgstr "Déconnexion effectuée !"
+
+#: banana/index.php:89 banana/include/banana.inc.php:63
+#: banana/include/banana.inc.php:116
+msgid "Les forums suivants ont Ã©té créés depuis ton dernier passage :"
+msgstr "Les forums suivants ont Ã©té créés depuis ton dernier passage :"
+
+#: banana/post.php:112 banana/include/misc.inc.php:30
+#: banana/include/misc.inc.php:45 banana/include/misc.inc.php:36
+#: banana/misc.inc.php:36
+msgid "Suivi-à"
+msgstr "Suivi-à"
+
+#: banana/post.php:120 banana/include/misc.inc.php:32
+#: banana/install.d/profile_form.inc.php:40 banana/include/banana.inc.php:150
+#: banana/include/misc.inc.php:47 banana/include/profile_form.inc.php:40
+#: banana/include/banana.inc.php:228 banana/include/misc.inc.php:38
+#: banana/misc.inc.php:38
+msgid "Organisation"
+msgstr "Organisation"
+
+#: banana/subscribe.php:34 banana/include/banana.inc.php:77
+#: banana/include/banana.inc.php:130 banana/misc.inc.php:150
+msgid "Abonnements"
+msgstr "Abonnements"
+
+#: banana/subscribe.php:57
+msgid "Abonné"
+msgstr "Abonné"
+
+#: banana/thread.php:71 banana/thread.php:43
+msgid "Message annulé"
+msgstr "Message annulé"
+
+#: banana/thread.php:73 banana/thread.php:45 banana/include/banana.inc.php:198
+msgid "Impossible d'annuler le message"
+msgstr "Impossible d'annuler le message"
+
+#: banana/thread.php:76 banana/thread.php:48 banana/include/banana.inc.php:184
+msgid "Vous n'avez pas les permissions pour annuler ce message"
+msgstr "Vous n'avez pas les permissions pour annuler ce message"
+
+#: banana/thread.php:93 banana/thread.php:120 banana/thread.php:63
+#: banana/thread.php:88
+msgid "Message posté"
+msgstr "Message posté"
+
+#: banana/thread.php:95 banana/thread.php:122 banana/thread.php:65
+#: banana/thread.php:90 banana/include/banana.inc.php:265
+msgid "Impossible de poster le message"
+msgstr "Impossible de poster le message"
+
+#: banana/thread.php:148 banana/include/misc.inc.php:31
+#: banana/include/misc.inc.php:46 banana/include/spool.inc.php:359
+#: banana/include/misc.inc.php:37 banana/misc.inc.php:37
+#: banana/spool.inc.php:359
+msgid "Date"
+msgstr "Date"
+
+#: banana/thread.php:154 banana/include/spool.inc.php:361
+#: banana/spool.inc.php:361
+msgid "Auteur"
+msgstr "Auteur"
+
+#: banana/include/misc.inc.php:27 banana/include/misc.inc.php:42
+#: banana/include/misc.inc.php:33 banana/misc.inc.php:33
+msgid "De"
+msgstr "De"
+
+#: banana/include/misc.inc.php:33 banana/include/misc.inc.php:48
+#: banana/include/misc.inc.php:39 banana/misc.inc.php:39
+msgid "Références"
+msgstr "Références"
+
+#: banana/include/misc.inc.php:34 banana/include/misc.inc.php:49
+#: banana/include/misc.inc.php:40 banana/misc.inc.php:40
+msgid "Image"
+msgstr "Image"
+
+#: banana/include/misc.inc.php:51 banana/include/misc.inc.php:121
+#: banana/include/misc.inc.php:115 banana/misc.inc.php:115
+msgid "hier"
+msgstr "hier"
+
+#: banana/install.d/error.inc.php:17 banana/include/error.inc.php:17
+msgid "Impossible de se connecter au serveur de forums"
+msgstr "Impossible de se connecter au serveur de forums"
+
+#: banana/install.d/error.inc.php:22 banana/include/error.inc.php:22
+msgid "L'authentification sur le serveur de forums a Ã©choué"
+msgstr "L'authentification sur le serveur de forums a Ã©choué"
+
+#: banana/install.d/error.inc.php:28 banana/include/error.inc.php:28
+msgid "Il n'y a pas de forum sur ce serveur"
+msgstr "Il n'y a pas de forum sur ce serveur"
+
+#: banana/install.d/error.inc.php:36 banana/include/error.inc.php:36
+msgid "Impossible d'accéder au forum"
+msgstr "Impossible d'accéder au forum"
+
+#: banana/install.d/error.inc.php:45 banana/include/error.inc.php:45
+msgid "Impossible d'accéder au message.  Le message a peut-être Ã©té annulé"
+msgstr "Impossible d'accéder au message.  Le message a peut-être Ã©té annulé"
+
+#: banana/install.d/format.inc.php:67
+msgid "Déconnexion"
+msgstr "Déconnexion"
+
+#: banana/install.d/format.inc.php:71 banana/install.d/format.inc.php:86
+#: banana/install.d/format.inc.php:94 banana/include/misc.inc.php:161
+#: banana/include/misc.inc.php:176 banana/include/misc.inc.php:186
+#: banana/include/misc.inc.php:148 banana/misc.inc.php:148
+msgid "Liste des forums"
+msgstr "Liste des forums"
+
+#: banana/install.d/format.inc.php:88 banana/include/misc.inc.php:179
+#: banana/include/misc.inc.php:171 banana/misc.inc.php:171
+msgid "Répondre"
+msgstr "Répondre"
+
+#: banana/install.d/format.inc.php:90 banana/include/misc.inc.php:182
+#: banana/include/misc.inc.php:174 banana/misc.inc.php:174
+msgid "Annuler ce message"
+msgstr "Annuler ce message"
+
+#: banana/install.d/profile_form.inc.php:11
+#: banana/include/profile_form.inc.php:11
+msgid "Bienvenue sur Banana !"
+msgstr "Bienvenue sur Banana !"
+
+#: banana/install.d/profile_form.inc.php:19
+#: banana/include/profile_form.inc.php:19
+msgid "Définis tes paramètres"
+msgstr "Définis tes paramètres"
+
+#: banana/install.d/profile_form.inc.php:24
+#: banana/include/profile_form.inc.php:24
+msgid "Nom (par exemple Jean Dupont)"
+msgstr "Nom (par exemple Jean Dupont)"
+
+#: banana/install.d/profile_form.inc.php:32
+#: banana/include/profile_form.inc.php:32
+msgid "Adresse mail"
+msgstr "Adresse mail"
+
+#: banana/install.d/profile_form.inc.php:48
+#: banana/include/profile_form.inc.php:48
+msgid "Signature"
+msgstr "Signature"
+
+#: banana/install.d/profile_form.inc.php:56
+#: banana/include/profile_form.inc.php:56
+msgid "Affichage"
+msgstr "Affichage"
+
+#: banana/install.d/profile_form.inc.php:62
+#: banana/include/profile_form.inc.php:62
+msgid "Tous les messages"
+msgstr "Tous les messages"
+
+#: banana/install.d/profile_form.inc.php:68
+#: banana/include/profile_form.inc.php:68
+msgid "Seulement les fils de discussion comportant des messages non lus"
+msgstr "Seulement les fils de discussion comportant des messages non lus"
+
+#: banana/install.d/profile_form.inc.php:73
+#: banana/include/profile_form.inc.php:73
+msgid "Authentification sur le serveur NNTP"
+msgstr "Authentification sur le serveur NNTP"
+
+#: banana/install.d/profile_form.inc.php:78
+#: banana/include/profile_form.inc.php:78
+msgid "Login (laisser anonyme pour un login en anonyme)"
+msgstr "Login (laisser anonyme pour un login en anonyme)"
+
+#: banana/install.d/profile_form.inc.php:86
+#: banana/include/profile_form.inc.php:86
+msgid "Mot de passe"
+msgstr "Mot de passe"
+
+#: banana/include/banana.inc.php:112 banana/include/banana.inc.php:165
+msgid "Impossible d'accéder au message.   Le message a peut-être Ã©té annulé"
+msgstr "Impossible d'accéder au message.   Le message a peut-être Ã©té annulé"
+
+#: banana/include/banana.inc.php:134 banana/include/banana.inc.php:212
+msgid "a Ã©crit"
+msgstr "a Ã©crit"
+
+#: banana/include/banana.inc.php:149 banana/include/banana.inc.php:227
+msgid "Suivi Ã "
+msgstr "Suivi Ã "
+
+#: banana/include/groups.inc.php:89 banana/groups.inc.php:89
+msgid "Abo."
+msgstr "Abo."
+
+#: banana/include/post.inc.php:110 banana/include/post.inc.php:114
+#: banana/post.inc.php:114
+msgid "apercu"
+msgstr "apercu"
+
+#: banana/include/spool.inc.php:372 banana/spool.inc.php:372
+msgid "Aucun message dans ce forum"
+msgstr "Aucun message dans ce forum"
+
+#: banana/include/banana.inc.php:54
+msgid "Impossible de contacter le serveur"
+msgstr "Impossible de contacter le serveur"
diff --git a/po/shtool b/po/shtool
new file mode 100755 (executable)
index 0000000..4c1a739
--- /dev/null
+++ b/po/shtool
@@ -0,0 +1,716 @@
+#!/bin/sh
+##
+##  GNU shtool -- The GNU Portable Shell Tool
+##  Copyright (c) 1994-2000 Ralf S. Engelschall <rse@engelschall.com>
+##
+##  See http://www.gnu.org/software/shtool/ for more information.
+##  See ftp://ftp.gnu.org/gnu/shtool/ for latest version.
+##
+##  Version 1.4.9 (16-Apr-2000)
+##  Ingredients: 3/17 available modules
+##
+
+##
+##  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, or contact Ralf S. Engelschall <rse@engelschall.com>.
+##
+##  Notice: Given that you include this file verbatim into your own
+##  source tree, you are justified in saying that it remains separate
+##  from your package, and that this way you are simply just using GNU
+##  shtool. So, in this situation, there is no requirement that your
+##  package itself is licensed under the GNU General Public License in
+##  order to take advantage of GNU shtool.
+##
+
+##
+##  Usage: shtool [<options>] [<cmd-name> [<cmd-options>] [<cmd-args>]]
+##
+##  Available commands:
+##    echo       Print string with optional construct expansion
+##    install    Install a program, script or datafile
+##    mkdir      Make one or more directories
+##
+##  Not available commands (because module was not built-in):
+##    mdate      Pretty-print modification time of a file or dir
+##    table      Pretty-print a field-separated list as a table
+##    prop       Display progress with a running propeller
+##    move       Move files with simultaneous substitution
+##    mkln       Make link with calculation of relative paths
+##    mkshadow   Make a shadow tree through symbolic links
+##    fixperm    Fix file permissions inside a source tree
+##    tarball    Roll distribution tarballs
+##    guessos    Simple operating system guesser
+##    arx        Extended archive command
+##    slo        Separate linker options by library class
+##    scpp       Sharing C Pre-Processor
+##    version    Generate and maintain a version information file
+##    path       Deal with program paths
+##
+
+if [ $# -eq 0 ]; then
+    echo "$0:Error: invalid command line" 1>&2
+    echo "$0:Hint:  run \`$0 -h' for usage" 1>&2
+    exit 1
+fi
+if [ ".$1" = ".-h" -o ".$1" = ".--help" ]; then
+    echo "This is GNU shtool, version 1.4.9 (16-Apr-2000)"
+    echo "Copyright (c) 1994-2000 Ralf S. Engelschall <rse@engelschall.com>"
+    echo "Report bugs to <bug-shtool@gnu.org>"
+    echo ''
+    echo "Usage: shtool [<options>] [<cmd-name> [<cmd-options>] [<cmd-args>]]" 
+    echo ''
+    echo 'Available global <options>:'
+    echo '  -v, --version   display shtool version information'
+    echo '  -h, --help      display shtool usage help page (this one)'
+    echo '  -d, --debug     display shell trace information'
+    echo ''
+    echo 'Available <cmd-name> [<cmd-options>] [<cmd-args>]:'
+    echo '  echo     [-n] [-e] [<str> ...]'
+    echo '  install  [-v] [-t] [-c] [-C] [-s] [-m<mode>] [-o<owner>] [-g<group>]'
+    echo '           [-e<ext>] <file> <path>'
+    echo '  mkdir    [-t] [-f] [-p] [-m<mode>] <dir> [<dir> ...]'
+    echo ''
+    echo 'Not available <cmd-name> (because module was not built-in):'
+    echo '  mdate    [-n] [-z] [-s] [-d] [-f<str>] [-o<spec>] <path>'
+    echo '  table    [-F<sep>] [-w<width>] [-c<cols>] [-s<strip>] <str><sep><str>...'
+    echo '  prop     [-p<str>]'
+    echo '  move     [-v] [-t] [-e] [-p] <src-file> <dst-file>'
+    echo '  mkln     [-t] [-f] [-s] <src-path> [<src-path> ...] <dst-path>'
+    echo '  mkshadow [-v] [-t] [-a] <src-dir> <dst-dir>'
+    echo '  fixperm  [-v] [-t] <path> [<path> ...]'
+    echo '  tarball  [-t] [-v] [-o <tarball>] [-c <prog>] [-d <dir>] [-u'
+    echo '           <user>] [-g <group>] [-e <pattern>] <path> [<path> ...]'
+    echo '  guessos  '
+    echo '  arx      [-t] [-C<cmd>] <op> <archive> [<file> ...]'
+    echo '  slo      [-p<str>] -- -L<dir> -l<lib> [-L<dir> -l<lib> ...]'
+    echo '  scpp     [-v] [-p] [-f<filter>] [-o<ofile>] [-t<tfile>] [-M<mark>]'
+    echo '           [-D<dname>] [-C<cname>] <file> [<file> ...]'
+    echo '  version  [-l<lang>] [-n<name>] [-p<prefix>] [-s<version>] [-i<knob>]'
+    echo '           [-d<type>] <file>'
+    echo '  path     [-s] [-r] [-d] [-b] [-m] [-p<path>] <str> [<str> ...]'
+    echo ''
+    exit 0
+fi
+if [ ".$1" = ".-v" -o ".$1" = ."--version" ]; then
+    echo "GNU shtool 1.4.9 (16-Apr-2000)"
+    exit 0
+fi
+if [ ".$1" = ".-d" -o ".$1" = ."--debug" ]; then
+    shift
+    set -x
+fi
+name=`echo "$0" | sed -e 's;.*/\([^/]*\)$;\1;' -e 's;-sh$;;' -e 's;\.sh$;;'`
+case "$name" in
+    echo|install|mkdir )
+        #   implicit tool command selection
+        tool="$name"
+        ;;
+    * )
+        #   explicit tool command selection
+        tool="$1"
+        shift
+        ;;
+esac
+arg_spec=""
+opt_spec=""
+gen_tmpfile=no
+
+##
+##  DISPATCH INTO SCRIPT PROLOG
+##
+
+case $tool in
+    echo )
+        str_tool="echo"
+        str_usage="[-n] [-e] [<str> ...]"
+        arg_spec="0+"
+        opt_spec="n.e."
+        opt_n=no
+        opt_e=no
+        ;;
+    install )
+        str_tool="install"
+        str_usage="[-v] [-t] [-c] [-C] [-s] [-m<mode>] [-o<owner>] [-g<group>] [-e<ext>] <file> <path>"
+        arg_spec="2="
+        opt_spec="v.t.c.C.s.m:o:g:e:"
+        opt_v=no
+        opt_t=no
+        opt_c=no
+        opt_C=no
+        opt_s=no
+        opt_m=""
+        opt_o=""
+        opt_g=""
+        opt_e=""
+        ;;
+    mkdir )
+        str_tool="mkdir"
+        str_usage="[-t] [-f] [-p] [-m<mode>] <dir> [<dir> ...]"
+        arg_spec="1+"
+        opt_spec="t.f.p.m:"
+        opt_t=no
+        opt_f=no
+        opt_p=no
+        opt_m=""
+        ;;
+    -* )
+        echo "$0:Error: unknown option \`$tool'" 2>&1
+        echo "$0:Hint:  run \`$0 -h' for usage" 2>&1
+        exit 1
+        ;;
+    * )
+        echo "$0:Error: unknown command \`$tool'" 2>&1
+        echo "$0:Hint:  run \`$0 -h' for usage" 2>&1
+        exit 1
+        ;;
+esac
+
+##
+##  COMMON UTILITY CODE
+##
+
+#   determine name of tool
+if [ ".$tool" != . ]; then
+    #   used inside shtool script
+    toolcmd="$0 $tool"
+    toolcmdhelp="shtool $tool"
+    msgprefix="shtool:$tool"
+else
+    #   used as standalone script
+    toolcmd="$0"
+    toolcmdhelp="sh $0"
+    msgprefix="$str_tool"
+fi
+
+#   parse argument specification string
+eval `echo $arg_spec |\
+      sed -e 's/^\([0-9]*\)\([+=]\)/arg_NUMS=\1; arg_MODE=\2/'`
+
+#   parse option specification string
+eval `echo h.$opt_spec |\
+      sed -e 's/\([a-zA-Z0-9]\)\([.:+]\)/opt_MODE_\1=\2;/g'`
+
+#   interate over argument line
+opt_PREV=''
+while [ $# -gt 0 ]; do
+    #   special option stops processing
+    if [ ".$1" = ".--" ]; then
+        shift
+        break
+    fi
+
+    #   determine option and argument
+    opt_ARG_OK=no
+    if [ ".$opt_PREV" != . ]; then
+        #   merge previous seen option with argument
+        opt_OPT="$opt_PREV"
+        opt_ARG="$1"
+        opt_ARG_OK=yes
+        opt_PREV=''
+    else
+        #   split argument into option and argument
+        case "$1" in
+            -[a-zA-Z0-9]*)
+                eval `echo "x$1" |\
+                      sed -e 's/^x-\([a-zA-Z0-9]\)/opt_OPT="\1";/' \
+                          -e 's/";\(.*\)$/"; opt_ARG="\1"/'`
+                ;;
+            -[a-zA-Z0-9])
+                opt_OPT=`echo "x$1" | cut -c3-`
+                opt_ARG=''
+                ;;
+            *)
+                break
+                ;;
+        esac
+    fi
+
+    #   eat up option
+    shift
+
+    #   determine whether option needs an argument
+    eval "opt_MODE=\$opt_MODE_${opt_OPT}"
+    if [ ".$opt_ARG" = . -a ".$opt_ARG_OK" != .yes ]; then
+        if [ ".$opt_MODE" = ".:" -o ".$opt_MODE" = ".+" ]; then
+            opt_PREV="$opt_OPT"
+            continue
+        fi
+    fi
+
+    #   process option
+    case $opt_MODE in
+        '.' )
+            #   boolean option
+            eval "opt_${opt_OPT}=yes"
+            ;;
+        ':' )
+            #   option with argument (multiple occurances override)
+            eval "opt_${opt_OPT}=\"\$opt_ARG\""
+            ;;
+        '+' )
+            #   option with argument (multiple occurances append)
+            eval "opt_${opt_OPT}=\"\$opt_${opt_OPT} \$opt_ARG\""
+            ;;
+        * )
+            echo "$msgprefix:Error: unknown option: \`-$opt_OPT'" 1>&2
+            echo "$msgprefix:Hint:  run \`$toolcmdhelp -h' or \`man shtool' for details" 1>&2
+            exit 1
+            ;;
+    esac
+done
+if [ ".$opt_PREV" != . ]; then
+    echo "$msgprefix:Error: missing argument to option \`-$opt_PREV'" 1>&2
+    echo "$msgprefix:Hint:  run \`$toolcmdhelp -h' or \`man shtool' for details" 1>&2
+    exit 1
+fi
+
+#   process help option
+if [ ".$opt_h" = .yes ]; then
+    echo "Usage: $toolcmdhelp $str_usage"
+    exit 0
+fi
+
+#   complain about incorrect number of arguments
+case $arg_MODE in
+    '=' )
+        if [ $# -ne $arg_NUMS ]; then
+            echo "$msgprefix:Error: invalid number of arguments (exactly $arg_NUMS expected)" 1>&2
+            echo "$msgprefix:Hint:  run \`$toolcmd -h' or \`man shtool' for details" 1>&2
+            exit 1
+        fi
+        ;;
+    '+' )
+        if [ $# -lt $arg_NUMS ]; then
+            echo "$msgprefix:Error: invalid number of arguments (at least $arg_NUMS expected)" 1>&2
+            echo "$msgprefix:Hint:  run \`$toolcmd -h' or \`man shtool' for details" 1>&2
+            exit 1
+        fi
+        ;;
+esac
+
+#   establish a temporary file on request
+if [ ".$gen_tmpfile" = .yes ]; then
+    if [ ".$TMPDIR" != . ]; then
+        tmpdir="$TMPDIR"
+    elif [ ".$TEMPDIR" != . ]; then
+        tmpdir="$TEMPDIR"
+    else
+        tmpdir="/tmp"
+    fi
+    tmpfile="$tmpdir/.shtool.$$"
+    rm -f $tmpfile >/dev/null 2>&1
+    touch $tmpfile
+fi
+
+##
+##  DISPATCH INTO SCRIPT BODY
+##
+
+case $tool in
+
+echo )
+    ##
+    ##  echo -- Print string with optional construct expansion
+    ##  Copyright (c) 1998-2000 Ralf S. Engelschall <rse@engelschall.com>
+    ##  Originally written for WML as buildinfo
+    ##
+    
+    text="$*"
+    
+    #   check for broken escape sequence expansion
+    seo=''
+    bytes=`echo '\1' | wc -c | awk '{ printf("%s", $1); }'`
+    if [ ".$bytes" != .3 ]; then
+        bytes=`echo -E '\1' | wc -c | awk '{ printf("%s", $1); }'`
+        if [ ".$bytes" = .3 ]; then
+            seo='-E'
+        fi
+    fi
+    
+    #   check for existing -n option (to suppress newline)
+    minusn=''
+    bytes=`echo -n 123 2>/dev/null | wc -c | awk '{ printf("%s", $1); }'`
+    if [ ".$bytes" = .3 ]; then
+        minusn='-n'
+    fi
+    
+    #   determine terminal bold sequence
+    term_bold='' 
+    term_norm=''
+    if [ ".$opt_e" = .yes -a ".`echo $text | egrep '%[Bb]'`" != . ]; then
+        case $TERM in
+            #   for the most important terminal types we directly know the sequences
+            xterm|xterm*|vt220|vt220*)
+                term_bold=`awk 'BEGIN { printf("%c%c%c%c", 27, 91, 49, 109); }' </dev/null 2>/dev/null`
+                term_norm=`awk 'BEGIN { printf("%c%c%c", 27, 91, 109); }' </dev/null 2>/dev/null`
+                ;;
+            vt100|vt100*)
+                term_bold=`awk 'BEGIN { printf("%c%c%c%c%c%c", 27, 91, 49, 109, 0, 0); }' </dev/null 2>/dev/null`
+                term_norm=`awk 'BEGIN { printf("%c%c%c%c%c", 27, 91, 109, 0, 0); }' </dev/null 2>/dev/null`
+                ;;
+            #   for all others, we try to use a possibly existing `tput' or `tcout' utility
+            * )
+                paths=`echo $PATH | sed -e 's/:/ /g'`
+                for tool in tput tcout; do
+                    for dir in $paths; do
+                        if [ -r "$dir/$tool" ]; then
+                            for seq in bold md smso; do # 'smso' is last
+                                bold="`$dir/$tool $seq 2>/dev/null`"
+                                if [ ".$bold" != . ]; then
+                                    term_bold="$bold"
+                                    break
+                                fi
+                            done
+                            if [ ".$term_bold" != . ]; then
+                                for seq in sgr0 me rmso reset; do # 'reset' is last
+                                    norm="`$dir/$tool $seq 2>/dev/null`"
+                                    if [ ".$norm" != . ]; then
+                                        term_norm="$norm"
+                                        break
+                                    fi
+                                done
+                            fi
+                            break
+                        fi
+                    done
+                    if [ ".$term_bold" != . -a ".$term_norm" != . ]; then
+                        break;
+                    fi
+                done
+                ;;
+        esac
+        if [ ".$term_bold" = . -o ".$term_norm" = . ]; then
+            echo "$msgprefix:Warning: unable to determine terminal sequence for bold mode" 1>&2
+        fi
+    fi
+    
+    #   determine user name
+    username=''
+    if [ ".$opt_e" = .yes -a ".`echo $text | egrep '%[uU]'`" != . ]; then
+        username="$LOGNAME"
+        if [ ".$username" = . ]; then
+            username="$USER"
+            if [ ".$username" = . ]; then
+                username="`(whoami) 2>/dev/null |\
+                           awk '{ printf("%s", $1); }'`"
+                if [ ".$username" = . ]; then
+                    username="`(who am i) 2>/dev/null |\
+                               awk '{ printf("%s", $1); }'`"
+                    if [ ".$username" = . ]; then
+                        username='unknown'
+                    fi
+                fi
+            fi
+        fi
+    fi
+    
+    #   determine user id
+    userid=''
+    if [ ".$opt_e" = .yes -a ".`echo $text | egrep '%U'`" != . ]; then
+        userid="`(id -u) 2>/dev/null`"
+        if [ ".$userid" = . ]; then
+            str="`(id) 2>/dev/null`"
+            if [ ".`echo $str | grep '^uid[    ]*=[    ]*[0-9]*('`" != . ]; then
+                userid=`echo $str | sed -e 's/^uid[    ]*=[    ]*//' -e 's/(.*//'`
+            fi
+            if [ ".$userid" = . ]; then
+                userid=`egrep "^${username}:" /etc/passwd 2>/dev/null | \
+                        sed -e 's/[^:]*:[^:]*://' -e 's/:.*$//'`
+                if [ ".$userid" = . ]; then
+                    userid=`(ypcat passwd) 2>/dev/null |
+                            egrep "^${username}:" | \
+                            sed -e 's/[^:]*:[^:]*://' -e 's/:.*$//'`
+                    if [ ".$userid" = . ]; then
+                        userid='?'
+                    fi
+                fi
+            fi
+        fi
+    fi
+    
+    #   determine host name
+    hostname=''
+    if [ ".$opt_e" = .yes -a ".`echo $text | egrep '%h'`" != . ]; then
+        hostname="`(uname -n) 2>/dev/null |\
+                   awk '{ printf("%s", $1); }'`"
+        if [ ".$hostname" = . ]; then
+            hostname="`(hostname) 2>/dev/null |\
+                       awk '{ printf("%s", $1); }'`"
+            if [ ".$hostname" = . ]; then
+                hostname='unknown'
+            fi
+        fi
+        case $hostname in
+            *.* )
+                domainname=".`echo $hostname | cut -d. -f2-`"
+                hostname="`echo $hostname | cut -d. -f1`"
+                ;;
+        esac
+    fi
+    
+    #   determine domain name
+    domainname=''
+    if [ ".$opt_e" = .yes -a ".`echo $text | egrep '%d'`" != . ]; then
+        if [ ".$domainname" = . ]; then
+            if [ -f /etc/resolv.conf ]; then
+                domainname="`egrep '^[         ]*domain' /etc/resolv.conf | head -1 |\
+                             sed -e 's/.*domain//' \
+                                 -e 's/^[      ]*//' -e 's/^ *//' -e 's/^      *//' \
+                                 -e 's/^\.//' -e 's/^/./' |\
+                             awk '{ printf("%s", $1); }'`"
+                if [ ".$domainname" = . ]; then
+                    domainname="`egrep '^[     ]*search' /etc/resolv.conf | head -1 |\
+                                 sed -e 's/.*search//' \
+                                     -e 's/^[  ]*//' -e 's/^ *//' -e 's/^      *//' \
+                                     -e 's/ .*//' -e 's/       .*//' \
+                                     -e 's/^\.//' -e 's/^/./' |\
+                                 awk '{ printf("%s", $1); }'`"
+                fi
+            fi
+        fi
+    fi
+    
+    #   determine current time
+    time_day=''
+    time_month=''
+    time_year=''
+    time_monthname=''
+    if [ ".$opt_e" = .yes -a ".`echo $text | egrep '%[DMYm]'`" != . ]; then
+        time_day=`date '+%d'`
+        time_month=`date '+%m'`
+        time_year=`date '+%Y' 2>/dev/null`
+        if [ ".$time_year" = . ]; then
+            time_year=`date '+%y'`
+            case $time_year in
+                [5-9][0-9]) time_year="19$time_year" ;;
+                [0-4][0-9]) time_year="20$time_year" ;;
+            esac
+        fi
+        case $time_month in
+            1|01) time_monthname='Jan' ;;
+            2|02) time_monthname='Feb' ;;
+            3|03) time_monthname='Mar' ;;
+            4|04) time_monthname='Apr' ;;
+            5|05) time_monthname='May' ;;
+            6|06) time_monthname='Jun' ;;
+            7|07) time_monthname='Jul' ;;
+            8|08) time_monthname='Aug' ;;
+            9|09) time_monthname='Sep' ;;
+              10) time_monthname='Oct' ;;
+              11) time_monthname='Nov' ;;
+              12) time_monthname='Dec' ;;
+        esac
+    fi
+    
+    #   expand special ``%x'' constructs
+    if [ ".$opt_e" = .yes ]; then
+        text=`echo $seo "$text" |\
+              sed -e "s/%B/${term_bold}/g" \
+                  -e "s/%b/${term_norm}/g" \
+                  -e "s/%u/${username}/g" \
+                  -e "s/%U/${userid}/g" \
+                  -e "s/%h/${hostname}/g" \
+                  -e "s/%d/${domainname}/g" \
+                  -e "s/%D/${time_day}/g" \
+                  -e "s/%M/${time_month}/g" \
+                  -e "s/%Y/${time_year}/g" \
+                  -e "s/%m/${time_monthname}/g" 2>/dev/null`
+    fi
+    
+    #   create output
+    if [ .$opt_n = .no ]; then
+        echo $seo "$text"
+    else
+        #   the harder part: echo -n is best, because
+        #   awk may complain about some \xx sequences.
+        if [ ".$minusn" != . ]; then
+            echo $seo $minusn "$text"
+        else
+            echo dummy | awk '{ printf("%s", TEXT); }' TEXT="$text"
+        fi
+    fi
+    ;;
+
+install )
+    ##
+    ##  install -- Install a program, script or datafile
+    ##  Copyright (c) 1997-2000 Ralf S. Engelschall <rse@engelschall.com>
+    ##  Originally written for shtool
+    ##
+    
+    src="$1"
+    dst="$2"
+    
+    #  If destination is a directory, append the input filename
+    if [ -d $dst ]; then
+        dst=`echo "$dst" | sed -e 's:/$::'`
+        dstfile=`echo "$src" | sed -e 's;.*/\([^/]*\)$;\1;'`
+        dst="$dst/$dstfile"
+    fi
+    
+    #  Add a possible extension to src and dst
+    if [ ".$opt_e" != . ]; then
+        src="$src$opt_e"
+        dst="$dst$opt_e"
+    fi
+    
+    #  Check for correct arguments
+    if [ ".$src" = ".$dst" ]; then
+        echo "$msgprefix:Error: source and destination are the same" 1>&2
+        exit 1
+    fi
+    
+    #  Make a temp file name in the destination directory
+    dstdir=`echo $dst | sed -e 's;[^/]*$;;' -e 's;\(.\)/$;\1;' -e 's;^$;.;'`
+    dsttmp="$dstdir/#INST@$$#"
+    
+    #  Verbosity
+    if [ ".$opt_v" = .yes ]; then
+        echo "$src -> $dst" 1>&2
+    fi
+    
+    #  Copy or move the file name to the temp name
+    #  (because we might be not allowed to change the source)
+    if [ ".$opt_C" = .yes ]; then
+        opt_c=yes
+    fi
+    if [ ".$opt_c" = .yes ]; then
+        if [ ".$opt_t" = .yes ]; then
+            echo "cp $src $dsttmp" 1>&2
+        fi
+        cp $src $dsttmp || exit $?
+    else
+        if [ ".$opt_t" = .yes ]; then
+            echo "mv $src $dsttmp" 1>&2
+        fi
+        mv $src $dsttmp || exit $?
+    fi
+    
+    #  Adjust the target file
+    #  (we do chmod last to preserve setuid bits)
+    if [ ".$opt_s" = .yes ]; then
+        if [ ".$opt_t" = .yes ]; then
+            echo "strip $dsttmp" 1>&2
+        fi
+        strip $dsttmp || exit $?
+    fi
+    if [ ".$opt_o" != . ]; then
+        if [ ".$opt_t" = .yes ]; then
+            echo "chown $opt_o $dsttmp" 1>&2
+        fi
+        chown $opt_o $dsttmp || exit $?
+    fi
+    if [ ".$opt_g" != . ]; then
+        if [ ".$opt_t" = .yes ]; then
+            echo "chgrp $opt_g $dsttmp" 1>&2
+        fi
+        chgrp $opt_g $dsttmp || exit $?
+    fi
+    if [ ".$opt_m" != . ]; then
+        if [ ".$opt_t" = .yes ]; then
+            echo "chmod $opt_m $dsttmp" 1>&2
+        fi
+        chmod $opt_m $dsttmp || exit $?
+    fi
+    
+    #   Determine whether to do a quick install
+    #   (has to be done _after_ the strip was already done)
+    quick=no
+    if [ ".$opt_C" = .yes ]; then
+        if [ -r $dst ]; then
+            if cmp -s $src $dst; then
+                quick=yes
+            fi
+        fi
+    fi
+    
+    #   Finally install the file to the real destination
+    if [ $quick = yes ]; then
+        if [ ".$opt_t" = .yes ]; then
+            echo "rm -f $dsttmp" 1>&2
+        fi
+        rm -f $dsttmp
+    else
+        if [ ".$opt_t" = .yes ]; then
+            echo "rm -f $dst && mv $dsttmp $dst" 1>&2
+        fi
+        rm -f $dst && mv $dsttmp $dst
+    fi
+    ;;
+
+mkdir )
+    ##
+    ##  mkdir -- Make one or more directories
+    ##  Copyright (c) 1996-2000 Ralf S. Engelschall <rse@engelschall.com>
+    ##  Originally written for public domain by Noah Friedman <friedman@prep.ai.mit.edu>
+    ##  Cleaned up and enhanced for shtool
+    ##
+    
+    errstatus=0
+    for p in ${1+"$@"}; do
+        #   if the directory already exists...
+        if [ -d "$p" ]; then
+            if [ ".$opt_f" = .no ] && [ ".$opt_p" = .no ]; then
+                echo "$msgprefix:Error: directory already exists: $p" 1>&2
+                errstatus=1
+                break
+            else
+                continue
+            fi
+        fi
+        #   if the directory has to be created...
+        if [ ".$opt_p" = .no ]; then
+            if [ ".$opt_t" = .yes ]; then
+                echo "mkdir $p" 1>&2
+            fi
+            mkdir $p || errstatus=$?
+        else
+            #   the smart situation
+            set fnord `echo ":$p" |\
+                       sed -e 's/^:\//%/' \
+                           -e 's/^://' \
+                           -e 's/\// /g' \
+                           -e 's/^%/\//'`
+            shift
+            pathcomp=''
+            for d in ${1+"$@"}; do
+                pathcomp="$pathcomp$d"
+                case "$pathcomp" in
+                    -* ) pathcomp="./$pathcomp" ;;
+                esac
+                if [ ! -d "$pathcomp" ]; then
+                    if [ ".$opt_t" = .yes ]; then
+                        echo "mkdir $pathcomp" 1>&2
+                    fi
+                    mkdir $pathcomp || errstatus=$?
+                    if [ ".$opt_m" != . ]; then
+                        if [ ".$opt_t" = .yes ]; then
+                            echo "chmod $opt_m $pathcomp" 1>&2
+                        fi
+                        chmod $opt_m $pathcomp || errstatus=$?
+                    fi
+                fi
+                pathcomp="$pathcomp/"
+            done
+        fi
+    done
+    exit $errstatus
+    ;;
+
+esac
+
+exit 0
+
+##EOF##
diff --git a/scripts/spoolgen.php b/scripts/spoolgen.php
deleted file mode 100644 (file)
index 5a11304..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php
-/********************************************************************************
- * spoolgen.php : spool generation
- * --------------
- *
- * This file is part of the banana distribution
- * Copyright: See COPYING files that comes with this distribution
- ********************************************************************************/
-
-ini_set('max_execution_time','300');
-ini_set('include_path','.:..:../platal/include:../../platal/include');
-
-require_once("include/encoding.inc.php");
-require_once("include/config.inc.php");
-require_once("include/NetNNTP.inc.php");
-require_once("include/post.inc.php");
-require_once("include/groups.inc.php");
-require_once("include/spool.inc.php");
-require_once("include/password.inc.php");
-
-
-$groups = new BananaGroups(2);
-$list = array_keys($groups->overview);
-unset($groups);
-foreach ($list as $g) {
-    print "Generating spool for $g : ";
-    $spool = new BananaSpool($g);
-    print "done.\n";
-    unset($spool);
-}
-$banana->nntp->quit();
-?>
diff --git a/spool/.cvsignore b/spool/.cvsignore
deleted file mode 100644 (file)
index 72e8ffc..0000000
+++ /dev/null
@@ -1 +0,0 @@
-*
diff --git a/subscribe.php b/subscribe.php
deleted file mode 100644 (file)
index 4483a71..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-/********************************************************************************
-* subscribe.php : subscriptions page
-* ---------------
-*
-* This file is part of the banana distribution
-* Copyright: See COPYING files that comes with this distribution
-********************************************************************************/
-
-require_once("include/banana.inc.php");
-require_once("include/header.inc.php");
-
-echo $banana->action_listSubs();
-
-require_once("include/footer.inc.php");
-?>