mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-09-19 05:49:07 +00:00
First commit
This commit is contained in:
34
corePage/initPage.php
Normal file
34
corePage/initPage.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* Page initiator
|
||||
*
|
||||
* @author Pierre HUBERT
|
||||
*/
|
||||
|
||||
/**
|
||||
* Define system path
|
||||
*/
|
||||
define("SYSTEM_PATH", __DIR__."/");
|
||||
|
||||
/**
|
||||
* Include main config
|
||||
*/
|
||||
require(SYSTEM_PATH."config/global.config.php");
|
||||
|
||||
/**
|
||||
* Include site mode config
|
||||
*/
|
||||
require(SYSTEM_PATH."config/".$config['siteMode'].".config.php");
|
||||
|
||||
/**
|
||||
* Include helpers
|
||||
*/
|
||||
foreach (glob(SYSTEM_PATH . "helpers/*.php") as $file) {
|
||||
//Including helpers file
|
||||
include($file);
|
||||
}
|
||||
|
||||
/**
|
||||
* Make config constant
|
||||
*/
|
||||
define("config", $config);
|
Reference in New Issue
Block a user