Francais     English
Perl Tools
Scripts CGI
       SSI Counter
       Random Img
       Random Text
       Random Link
       Redirect URL
       Text Clock
       Text Counter
       CGI Utils
Scripts PHP
HP 48
TI 92
Mini Messages
The Liste...
 Powered by


Version 1.0.2

    What is it ?

        eNews is advanced management tools for on-line news articles and announcements
    publishing. This scripts support for unlimited number of News themes, for each,
    you can define multiple moderator. Each moderator can add a news or validate,
    edit, remove public submit for his news theme.
        eNews allows 1 or more administrator to administrate all news themes, create,
    modify and delete accounts for different moderators and news themes.
        News can be displayed by CGI or this scripts can generate HTML pages, of course
    the output is 100% customizeable (using template).

    System Requirements:

        - Perl 5.0 or newer; you can get it at http://www.perl.com/
        - A web server, you must have access to add / execute CGI scripts.

    Download current version

        Current version is v1.0.2, created 12/31/98, last modified 01/11/2000.

        Download source code / scripts and documentations :
             Tar/Gzip archive : eNews.tar.gz (0 Ko)
             DOS Zip format   : eNews.zip (0 Ko)

    What this archive contains ?

        This archive comes with 12 differents files:
            1) COPYING:       Copyright informations (GPL).
            2) README:        This file.
            3) LISEZMOI:      French doc...
            4) enews.cgi:     The script.
            5) cgi-lib.pl:    CGI-Lib of Steven E. Brenner used here..
            6) category.txt:  News category informations file.
            7) moderator.txt: Moderator informations file.
            8) template_present.html: Sample General public present file.
            9) template_news.prt: Sample HTML code for public News present.
           10) template_add.prt:  Sample HTML code for public add form present.
           11) *.gif:             Gif used into template_news.prt.

    Installation and Configuration:

        It's a Perl script, so installation is pretty easy. You don't need to
    compile anything.

    Copy *.cgi and *.pl in your /cgi-bin/ directory.
        Copy *.txt          in your data directory
        Copy *.html, *.prt  in your template data directory.
        Copy *.gif          in your web directory if you want use it.

    Make it executable, unix only (chmod a+rx *.cgi)
        Make writable data file, unix only (chmod a+rw *.txt)

    You will have to do some configuration:

    Edit enews.cgi scripts and change #/usr/bin/perl, if it's necessary...

    Edit enews.cgi and change  "Necessary Variables Section"

    my $DATA_DIR            = '/Absolute/path/to/data_dir/enews/';
                # Path of your data dir
            my $TEMPLATE_DIR        = $DATA_DIR;
                # Path of your template dir
            my $WEB_DIR                = '/Absolute/path/to/web_dir/news/';
                # Path of your web dir

    my $NEWS_CATEGORY_FILE  = 'category.txt';
                # Name of category file (should be into data dir)
            my $NEWS_MODERATOR_FILE = 'moderator.txt';
                # Name of moderator file (should be into data dir)

    my $WEBMASTER_EMAIL = 'you@yourdomain.com';
                # Webmaster E-Mail.

    my $DISPLAY_LANG = 'En';
                # 'Fr', if you prefer french administrative text.

    my $UNIV_LOGIN    = '';
            my $UNIV_PASSWORD = '';
                # Define a Universal login and password if you want.

    How to run it ?

        Public Use :
            - '/cgi-bin/enews.cgi', display first news category.

    - '/cgi-bin/enews.cgi?id=ID', display designed news category by 'ID'.

    - '/cgi-bin/enwes.cgi?ac=add&id=ID, display add form for 'ID' category.

    Moderator Use :
            - '/cgi-bin/enews.cgi?ac=moder', query login and password for moderator.
        if correct display autorised moderate category list.
        Default login / password are : 'moderator1' and 'demo' or 'moderator2' and 'demo'
            To moderate 1 select it, and use button to valid, edit, remove news. Use
        'See valid' or 'See Not valid' to change from validate news to newest
        sumited news.
            Use 'Generate these HTML pages' to make web pages.

    Administrator Use :
            - '/cgi-bin/enews.cgi?ac=admin', query login and password for administrator.
        if correct display autorised moderate category list (All), see 'Moderator Use'
        for more information about moderate.
        Default login / password are : 'admin' and 'admin'
            You have to add, edit, remove button to add, edit or remove news category.
        And 'Administer moderator' button to add, edit, or remove moderator profile.

    Nota: if you don't want to enter your password each time, you can call
        Moderator and administrator display with login and password ex:
        or    '/cgi-bin/enews.cgi?ac=admin&login=YOUR_LOGIN&pass=YOUR_PASS'

    How to change template :

            You can edit all templates files to customize it, but eNews use many
        tags (Noted Value_NAME) to insert data, don't forget to add it's.

    Change present file (sample template_present.html):
            In this file eNews replace :
            'Value_CategoryTitle' by category name.
            'Value_News'          by all news events.

    if you want add 'Submit a News' link insert this line :
                <A HREF="/cgi-bin/enews.cgi?ac=add&id=Value_ID">Submit a News</A>

    Change news present file (sample template_news.prt):
            In this file eNews replace :
    Version 1.0.2'   by the news title.
                'Value_text'    by the news text.
                'Value_author'  by author name and E-Mail (if valid).
                'Value_date'    by submitted news date.

    Change template add form (sample template_add.prt):
            In this file eNews's tag was used to keep form value into preview mode :
    Version 1.0.2'        by the news title.
                'Value_author_name'  by author name.
                'Value_author_mail'  by author E-Mail.
                'Value_text'         by news text.
                'Value_ID'           by news ID, don't remove this...
            Don't change input name and  button name, else this don't works...

    Version history:

        Version 1.0.1        01/12/00  - Script Updated.
                                           - Little error date present (%m)

    Version 1.0.1        01/11/00  - Script Updated.
                                          - Correct sample file
                                          - Correct <!-- Value_News -->
                                          - Update doc

    Version 1.0            12/31/99  - Script Created.


        This software is copyright (C) 1999 Frederic TYNDIUK. It is distributed
    under the terms of the GNU General Public License (GPL). Because it is licensed
    free of charge, there is NO WARRANTY, it is provided AS IS. The author can not
    be held liable for any damage that might arise from the use of this software.
    Use it at your own risk.
        See the file COPYING for more details (or http://www.gnu.org/).

    Updates ?

        Latest version and New Scripts can be found at:



        Please feel free to contact me with any comments, suggestions, bug fixes
    criticism, or just a happiness messages.

    If you run into any problems while trying to configure these scripts
    first read this file carefully, if you don't find any solution, send me a Mail.

    E-Mail: tyndiuk@ftls.org
        Web: http://www.ftls.org/

                                                      Frederic TYNDIUK


© Copyright 2000 FTLS (Tyndiuk Frédéric). All rights reserved.
Last Update 08/03/2000 - Send all comments to webmaster@ftls.org