Newer
Older
KmSchedule / index.php
<?php
/*
 KmSchedule
 This file loads all functions that are globaly needed
 As well as any initialization / configuration files
*/

 session_start();
 define('KmSchedule','KmSchedule');
// for testing purposes.
// The following 2 lines should be commented out
// in a production environment

 error_reporting(E_ALL);
 ini_set("display_errors", 1);

 // If there is no config file, run setup.php
  if (!file_exists('config.php')) {
    include 'setup.php';
  }else {
    // load configuration file
    require_once "config.php";
    // load main template
    include 'templates/main/main.php';
  }
?>