|
Functions
High function Message Board
- Upgreaded version of Message board 3
- Image file upload (can be disabled)
- All message logs are saved
- Optoin to delete before 200 messages automatically
- Reply functoin
- Unread only display
- Search function
- Title list function
- Image list function
- Light mode for Mobile browser
- Posted message statistics
- Archive and download messages as a zip file
- Delete function
- Modify function
- Auto link from http://
- Auto link to another message by (#1234) or Message#1234
- URL link extraction
- Perticular message display
- Style sheet setting
- Insert sentences into <HEAD>
- Easy setup by admin setup page
- SSI preview mode
- Display messages, lines can be defined in SSI preview mode
- Image can be displayed in the preview mode
- Invoked as SSI mode if script name is mbssi.cgi
- Invoked as mobile mode if script name is mbiread.cgi
- Member only mode
- Tag can be used
- User can change colors of name, subject or contents
- Dead link clean up functoin
- Automatic a gif file generation to be used in the statistics mode
- Easy installation due to a single file
Update from nerimb3.cgi
The looks and functions are almost same as nerimb3.cgi. The code was dramatically optimized to be Perl5.
mbutil.pl which was separated script in nerimb3.cgi was incorporated. A link clean up, a generation of bar.gif have been added in nerimb4.cgi. Removed all external commands. A zip for the archive mode also uses a perl package.
And other minor changes.
Further upgreade or modification could happen in nerimb4.cgi.
Installation
- Perl package, GD, Archive::Zip, LWP::UserAgent, need to be installed.
- Put nerimb4.cgi into a CGI executable and writable directory
- If necessary, create a writable directory to store data files. The data files can be stored in the same directory as where the CGI is located.
- Modify the Perl path of the first line of the nerimb4.cgi to match your server environment.
- Modify permission of nerimb4.cgi properly.
- Open nerimb4.cgi in your browser. Then it will ask admin password. Please set it here.
- Once set the password, Click the "setup" link and set the CGI environement.
- Now you can use it as a Message Board.
SSI Preview mode
nerimb4.cgi display first *lt;line> line by putting it as a SSI in a shtml file as follows.
<!--#include virtual="nerimb4x.cgi?mode=ssi&line=10" -->
In this example, it displays first 10 lines.
This can be used as a preview in your top page.
SSI mode sample
If you use this script as mbssi.cgi(either copy or symbolic link), it is automatically invokeed as the SSI mode.
If your server does not support include, you may be able to use exec.
Example : <!--#exec cgi="mbssi.cgi" -->
Light mode for mobile device
Next URL allows to display minimum message for mobile mode.
Example : nerimb4.cgi?mode=iread
Mobile mode sample
If you invoke it as mbiread.cgi(either copy or symbolic link), it is automatically invoked as a mobile mode.
It is easy to enter in a mobile device due to a short script name.
Example : mbiread.cgi
Special usage
Particular messages can be displayed by a directo link with <a href> as follows.
- nerimb4.cgi?mode=print&message=<number>
displays Message# <number>
<number> can be specified multiple numbers by separating with hyphen or comma.
Hyphen indicates a range, comma is a separator.
Example : nerimb4.cgi?mode=print&message=12,15,24,20-22,8-5
displays Message#5,6,7,8,12,15,20,21,22,24
- nerimb4.cgi?mode=print&message=<number>&title=on
displays the titles of Message# <number>
<number> can be specified multiple numbers by separating with hyphen or comma.
Hyphen indicates a range, comma is a separator.
Example : nerimb4.cgi?mode=print&message=12,15,24,20-22,8-5&title=on
displays the titles of Message#5,6,7,8,12,15,20,21,22,24.
Auto link
- http:// in the message will be linked automatically.
- (#1234) will be automatically linked to the Message number 1234.
- Message#1234 will be automatically linked to the Message number 1234.
Security
The permission of the updated image files are automatically modified to 0666. However, any files can be uploaded by anyone. To have tight security, it is recommended to have an image upload directory which is different than cgi execution directory and the directory where the files will be stored should not be a CGI executable by server setting.
Sample and Source
Revision history
- 4.009 : 1/23/06 : Fixed attachment icon path in SSI mode.
- 4.008 : 1/22/06 :Added handling when non-image file is uploaded.
- 4.007 : 1/20/06 : Fixed name and email field of edit screen
- 4.006 : 1/11/06 : Fixed a bug that a message is deleted when modified.
- 4.005 : 12/11/05 : Modified so that not link message# if it is listed in rejestlink.dat.
- 4.004 : 11/26/06 : Fixed time computatoin.
- 4.003 : 11/26/05 : Added auto delete of old archive files. Modified to not specify archive file name.
- 4.002 : 11/19/05 : Modified to display unsupported image files.
- 4.001 : 11/13/05 : Modified to archive images in the archive mode.
- 4.0 : 11/6/05 : Optimized the code. Integrated utilities.
|