File/index.php

Description

/index.php - the main entrypoint for website visitors (frontpage)

This is one of the main entry points for Website@School. Other main entry points are admin.php, cron.php, file.php and also install.php. Main entry points all define the constant WASENTRY. This is used in various include()ed files to detect break-in attempts.

This is a kickstarter for /program/main_index.php, but first we check for 'maintenance mode': if the file 'maintenance.html' exists in the current directory, we bail out and redirect the visitor to that file.

If we're NOT in maintenance mode, we read the essential configuration parameters from the file 'config.php' in the current directory and continue with /program/main_index.php to do the actual work.

Includes
 require_once (dirname(WASENTRY)."/config.php") (line 45)
 require_once ($CFG->progdir."/main_index.php") (line 54)

Documentation generated on Tue, 28 Jun 2016 19:09:52 +0200 by phpDocumentor 1.4.0