5 require_once(
"/usr/share/alternc/panel/class/local.php");
9 define(
'ALTERNC_MAIL',
"$L_ALTERNC_MAIL");
10 define(
'ALTERNC_HTML',
"$L_ALTERNC_HTML");
12 define(
'ALTERNC_LOGS_ARCHIVE',
"$L_ALTERNC_LOGS_ARCHIVE");
13 define(
'ALTERNC_LOGS',
"$L_ALTERNC_LOGS");
14 define(
'ALTERNC_PANEL',
"/usr/share/alternc/panel");
16 define(
'ALTERNC_LOCK_JOBS',
'/run/alternc/jobs-lock');
17 define(
'ALTERNC_LOCK_PANEL',
'/var/lib/alternc/panel/nologin.lock');
22 require_once(
$root.
"class/db_mysql.php");
23 require_once(
$root.
"class/functions.php");
38 array(PDO::MYSQL_ATTR_INIT_COMMAND =>
"SET NAMES UTF8;")
48 while ($di=readdir(
$c)) {
49 if (preg_match(
"#^m_(.*)\\.php$#",$di,$match)) {
50 $name1=
"m_".$match[1];
53 require_once(
$root.
"class/".$name1.
".php");
66 if (is_file(
$root.
"/class/variables.php")) {
67 require_once(
$root.
"/class/variables.php");
69 $variables=
new m_variables();
80 if (isset($$name2))
continue;
82 $$name2=
new $name1();
if(isset($L_ALTERNC_LOGS_ARCHIVE)) define('ALTERNC_LOGS_ARCHIVE' $L_ALTERNC_LOGS_ARCHIVE
Class for MySQL management in the panel.
Classe de gestion des erreurs apparaissant lors d'appels API.
This class manage hooks that any other class or panel page can call.
This class manage user sessions in the web desktop.
Handle messages (error, warning, info, ok) appearing in API calls.