Bontiv-Sourceer source code viewer
Root | Help
./bontiv-cms/index.php
<?php

/**
 * \file index.php
 * \brief Main file.
 * \author Bontiv
 * \version 0.1
 *
 * Index file. This file start the CMS.
 */

/**
 * \def INDEX
 * \brief Included by an index file.
 * This constant must exist and be true.
 */
define('INDEX', true);

/**
 * \def ROOTDIR
 * \brief Root path.
 * This constant define the root path of the CMS.
*/
define('ROOTDIR', dirname(__FILE__) . DIRECTORY_SEPARATOR);

//Include globals functions
include ROOTDIR . 'core' . DIRECTORY_SEPARATOR . 'core_functions.php';
include
ROOTDIR . 'config.php';

//Try to start the CMS
try {
   
$cms = new core_loader();
   
$cms->start();
}
catch (
Exception $e)
{
   
trigger_error('An error break the CMS execution : ' . $e->getMessage()
        .
' on the file ' . $e->getFile()
        .
' in the line ' . $e->getLine()
        ,
E_USER_ERROR);
}

?>
Presented with Bontiv-Sourceer