mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-02-16 02:30:51 +00:00
first commit
This commit is contained in:
22
core/core.php
Executable file
22
core/core.php
Executable file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Ининциализатор системы
|
||||
*
|
||||
* @author Zmi and GYL
|
||||
*/
|
||||
|
||||
|
||||
// Подключаем все файлы которые есть в папках core/{func|config|init}
|
||||
foreach (array(BASEPATH . 'core/func/', BASEPATH . 'core/config/', BASEPATH . 'core/init/') as $dir)
|
||||
{
|
||||
$files = array_merge(array($dir . 'main.php'), glob($dir . "*.php"));
|
||||
foreach ($files as $f)
|
||||
{
|
||||
if (is_readable($f))
|
||||
{
|
||||
require_once $f;
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user