39 lines
1.4 KiB
PHP
Executable File
39 lines
1.4 KiB
PHP
Executable File
<?php
|
|
#####################################################
|
|
# #
|
|
# written by benjamin ramey #
|
|
# ben.ramey@gmail.com #
|
|
# #
|
|
# best viewed with: #
|
|
# resolution = 1280x960 #
|
|
# tab = 4 spaces #
|
|
# indent = 8 spaces #
|
|
# #
|
|
# This file contains: #
|
|
# index page of bobsleighphotos.com #
|
|
# #
|
|
#####################################################################################################################
|
|
# CODE # COMMENTS #
|
|
#####################################################################################################################
|
|
|
|
##################################################################### FILES TO INCLUDE
|
|
require 'php/func_ops.php'; # site operation functions
|
|
require 'php/func_html.php'; # functions to do HTML printing tasks
|
|
require 'php/func_xml.php'; # functions to handle xml
|
|
|
|
require 'php/inc_constants.php'; # php constants
|
|
require 'php/inc_globals.php'; # global variables
|
|
|
|
##################################################################### SWITCHING STATION
|
|
$page = array_pop($_CMDS); # the first element in the _CMDS array is always
|
|
# the page to display
|
|
if(empty($page)) { $page = 'home'; }
|
|
|
|
switch($page) {
|
|
default:
|
|
include $page.'.php';
|
|
break;
|
|
}
|
|
|
|
exit;
|
|
?>
|