mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-04-15 14:41:05 +00:00
first commit
This commit is contained in:
28
core/init/main.php
Executable file
28
core/init/main.php
Executable file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
new Php(); // Настройка php и включение слежки за ошибками
|
||||
header('Content-type: text/html; charset=' . $g_config['charset']);
|
||||
|
||||
GetQuery(); // Что бы определился язык сайта
|
||||
|
||||
// Подключаем все языковые файлы из автозагруки
|
||||
$dirs = array_unique(
|
||||
array(
|
||||
BASEPATH . 'lang/' . DEF_LANG . '/autoload/',
|
||||
BASEPATH . 'lang/' . LANG . '/autoload/'
|
||||
)
|
||||
);
|
||||
$g_lang = array();
|
||||
foreach ($dirs as $dir)
|
||||
{
|
||||
$files = array_merge(array($dir . 'main.php'), glob($dir . "*.php"));
|
||||
foreach ($files as $f)
|
||||
{
|
||||
if (is_readable($f))
|
||||
{
|
||||
require_once $f;
|
||||
}
|
||||
}
|
||||
}
|
||||
$g_lang['m_defTitle'] = L('m_title');
|
||||
?>
|
||||
Reference in New Issue
Block a user