News portal

Version 0.24pre1

Introduction

News portal is a PHP based newsreader. It is licensed under the GNU Public License (see enclosed LICENSE).

Overview

This script collection enables the access to a newsserver (by NNTP) from a webpage. It allows you to combine web-forums and newsgroups. The script is also suitable for presentation of announce newsgroups on web pages, without having the user notice that he is in fact accessing a newsserver.

The main functionality of the script is located in the file newsportal.php3, which contains the major part of the implemented php3-functions. In addition to that there are four more php3-files, which are directly accessed by the browser.

Since fetching the article overview of the newsserver takes quite some time, newsportal caches this data in the directory spool/. Any file can be put in this directory, they will automatically be regenerated.

Installation:

  1. download the zip or tar.gz archive
  2. unzip it to a directory
  3. The fileconfig.inc must be edited with your settings (the most important variables are: $server, $port, $title and $readonly).
  4. Write the names of all groups newsportal should show into the file groups.txt. Behind the groupname, seperated by a blank, a description of the group can be added. If the description is missing, newsportal will try to request the description from the newsserver.
  5. The spool directory has to be created and configured to grant read an write access to the newsserver ("chmod 777 spool" ).

Configuration

The following adjustments can be made in config.inc

Directories and files:

Newsserver setip

Thread Layout

Article layout

Frame support
Example files for the frame support are located in extras/frames/. In this section the names of the frames can be defined. If you want to use frames you have to set the variable $frame_thread to "thread_frameset.php3".

Safety settings

General setting

Safety notes

A few things must be kept in mind to not allow newsportal to open safety-holes:

This script was originally (and actually still) only meant for access to local newsgroups. If you use it with UseNet newsgroups, following problems could show up:

The author reserves the right not to be responsible for the topicality, correctness, completeness or quality of the program provided. Liability claims regarding damage caused by the program provided, will therefore be rejected.
In other words: Use this program at your own risk !

Compatibility

Newsportal should work with every phpserver with php3 support and every newsserver. Webserver and newsserver do not need to run on the same machine.

Contact

Florian Amrhein
email: florian.amrhein@gmx.de
WWW: http://florian-amrhein.de