All the pages are made with one file: index.php
The site is divided in sections. At the moment there are the following sections:
Each section has at least a "home page" This page contains the introduction to the section.
The php file has to be called with two parameters, example:
index.php?section=home&page=0
For the construction of the page there are three files needed:
First the section name will be checked to see if the name is valid. Then it is converted to a number. If the section name is not found then the home section is set as default.
The opening of a page is like a three stage rocket; first the section setup is loaded. Now it knows where to find the other stuff. Then it looks for the page setup then finally the contents file is loaded and you can see the page.
Section setup
The file for the home section setup is: sec_setup1.txt
It contains the following:
<?php // home section setup file $stylesht = "home.css"; // the stylesheet for this section $wimbtext = 'www.wimb.net - home pages'; // left top text $contdir = 'sec_home/'; // contents file directory $contents = 'homepage'.$pagenbr.'.txt'; // contents filename $logoalt = 'Look, it\'s me!!'; // ALT text for the main logo $bodyline = 'bgcolor="#000066" '; // inserted in the body tag ?>
It is called with an include statement. The filename is made of the text: sec_setup followed by the number of the section. Then the extension is added: .txt or in some other cases the .php extension is used.
Updated 2007 Oct. 09