43 lines
677 B
PHP
43 lines
677 B
PHP
<?php
|
|
|
|
session_start(); // $_SESSION init at the very start
|
|
|
|
putenv('LANG=fr');
|
|
setlocale(LC_ALL, "");
|
|
if (\function_exists('bindtextdomain'))
|
|
{
|
|
bindtextdomain('test');
|
|
textdomain('test');
|
|
}
|
|
else
|
|
{
|
|
function _(string $text) : string
|
|
{
|
|
return $text;
|
|
}
|
|
}
|
|
|
|
\chdir('C:\\Users/linarphy/Projets/logbook/');
|
|
|
|
if (\php_sapi_name() === 'cli')
|
|
{
|
|
require_once(\join(\DIRECTORY_SEPARATOR, array(
|
|
'func',
|
|
'core',
|
|
'utils.php',
|
|
)));
|
|
require_once(\join(\DIRECTORY_SEPARATOR, array(
|
|
'func',
|
|
'core',
|
|
'class.php',
|
|
)));
|
|
\spl_autoload_register('\core\load_class');
|
|
\core\log\Logger::log('a', new \core\log\TagsType(array(
|
|
'error',
|
|
)));
|
|
\var_dump('yay');
|
|
}
|
|
|
|
exit(0);
|
|
|
|
?>
|