Alternc
latest
Alternc logiel libre pour l'hébergement
|
Go to the source code of this file.
Classes | |
class | DB_system |
Class for MySQL management in the panel. More... | |
Variables | |
const | DO_XHPROF_STATS FALSE |
Main configuration file (BOOSTRAP) of AlternC control panel. More... | |
$help_baseurl = "http://www.aide-alternc.org/" | |
$host = getenv("HTTP_HOST") | |
const | DEFAULT_PASS_SIZE 10 |
Define constants from vars of /etc/alternc/local.sh The you can't choose where is the AlternC Panel. More... | |
const | ALTERNC_MAIL "$L_ALTERNC_MAIL" |
const | ALTERNC_HTML "$L_ALTERNC_HTML" |
const | ALTERNC_LOGS (isset($L_ALTERNC_LOGS_ARCHIVE)) "$L_ALTERNC_LOGS" |
const | ALTERNC_PANEL "/usr/share/alternc/panel" |
const | ALTERNC_LOCALES ALTERNC_PANEL . "/locales" |
const | ALTERNC_LOCK_JOBS '/run/alternc/jobs-lock' |
const | ALTERNC_LOCK_PANEL '/var/lib/alternc/panel/nologin.lock' |
const | ALTERNC_APACHE2_GEN_TMPL_DIR '/etc/alternc/templates/apache2/' |
const | ALTERNC_VHOST_DIR "/var/lib/alternc/apache-vhost/" |
const | ALTERNC_VHOST_FILE ALTERNC_VHOST_DIR . "vhosts_all.conf" |
const | ALTERNC_VHOST_MANUALCONF ALTERNC_VHOST_DIR . "manual/" |
$root = ALTERNC_PANEL . "/" | |
$db = new DB_system() | |
$cuid = 0 | |
$classes = array() | |
foreach(glob($root . "class/m_*.php") as $di | foreach )(glob( $root . "class/class_system_*.php") as $fcs) |
$mem = new m_mem() | |
$authip = new m_authip() | |
$hooks = new m_hooks() | |
$msg = new m_messages() | |
if(isset($_SERVER["HTTP_X_FORWARDED_PROTO"]) && $_SERVER["HTTP_X_FORWARDED_PROTO"]=="https") if((variable_get('force_https', '0', "This variable is set to 0 (default) if users can access the management desktop through HTTP, otherwise we force HTTPS")&&(!isset($_SERVER["HTTPS"])||($_SERVER["HTTPS"] !="on")))) | $fatalcsrf =false |
Check csrf token for all posts: you MUST add csrf_get(); after ALL <form method="post"> in AlternC ! More... | |
if(count($_POST) &&!defined("NOCSRF")) if(!defined('NOCHECK')) for($i=0; $i< count($classes); $i++) | $oldid = intval(isset($_COOKIE['oldid']) ? $_COOKIE['oldid'] : '') |
$isinvited = false | |
if((variable_get('sql_max_username_length', NULL)==NULL)||(variable_get('sql_max_database_length', NULL)==NULL)) | $addhead =array('js'=>array(), 'css'=>array()) |
if ((variable_get( 'sql_max_username_length', NULL)==NULL)||(variable_get( 'sql_max_database_length', NULL)==NULL)) $addhead =array('js'=>array(), 'css'=>array()) |
Definition at line 232 of file config.php.
$authip = new m_authip() |
Definition at line 153 of file config.php.
$classes = array() |
Definition at line 125 of file config.php.
$cuid = 0 |
Definition at line 122 of file config.php.
$db = new DB_system() |
Definition at line 119 of file config.php.
if (isset( $_SERVER["HTTP_X_FORWARDED_PROTO"]) &&$_SERVER["HTTP_X_FORWARDED_PROTO"]=="https") if ((variable_get( 'force_https', '0', "This variable is set to 0 (default) if users can access the management desktop through HTTP, otherwise we force HTTPS")&&(!isset( $_SERVER["HTTPS"])||( $_SERVER["HTTPS"] !="on")))) $fatalcsrf =false |
Check csrf token for all posts: you MUST add csrf_get(); after ALL <form method="post"> in AlternC !
Definition at line 174 of file config.php.
$help_baseurl = "http://www.aide-alternc.org/" |
Definition at line 68 of file config.php.
Referenced by m_menu\system_menu().
$hooks = new m_hooks() |
Definition at line 154 of file config.php.
$host = getenv("HTTP_HOST") |
Definition at line 71 of file config.php.
Referenced by DB_Sql\__construct(), m_aws\alternc_export(), m_roundcube\hook_admin_webmail(), and m_squirrelmail\hook_admin_webmail().
$isinvited = false |
Definition at line 204 of file config.php.
$mem = new m_mem() |
Definition at line 152 of file config.php.
$msg = new m_messages() |
Definition at line 155 of file config.php.
if (count( $_POST) &&!defined("NOCSRF")) if (!defined( 'NOCHECK')) for ( $i=0;$i< count( $classes);$i++) $oldid | ( | ) | = intval(isset($_COOKIE['oldid']) ? $_COOKIE['oldid'] : '') |
Definition at line 203 of file config.php.
Referenced by sub_domains_edit().
$root = ALTERNC_PANEL . "/" |
Definition at line 99 of file config.php.
const ALTERNC_APACHE2_GEN_TMPL_DIR '/etc/alternc/templates/apache2/' |
Definition at line 92 of file config.php.
const ALTERNC_HTML "$L_ALTERNC_HTML" |
Definition at line 83 of file config.php.
const ALTERNC_LOCALES ALTERNC_PANEL . "/locales" |
Definition at line 89 of file config.php.
const ALTERNC_LOCK_JOBS '/run/alternc/jobs-lock' |
Definition at line 90 of file config.php.
const ALTERNC_LOCK_PANEL '/var/lib/alternc/panel/nologin.lock' |
Definition at line 91 of file config.php.
const ALTERNC_LOGS(isset( $L_ALTERNC_LOGS_ARCHIVE)) | ( | isset( $L_ALTERNC_LOGS_ARCHIVE) | ) | "$L_ALTERNC_LOGS" |
Definition at line 87 of file config.php.
const ALTERNC_MAIL "$L_ALTERNC_MAIL" |
Definition at line 82 of file config.php.
const ALTERNC_PANEL "/usr/share/alternc/panel" |
Definition at line 88 of file config.php.
const ALTERNC_VHOST_DIR "/var/lib/alternc/apache-vhost/" |
Definition at line 93 of file config.php.
const ALTERNC_VHOST_FILE ALTERNC_VHOST_DIR . "vhosts_all.conf" |
Definition at line 94 of file config.php.
const ALTERNC_VHOST_MANUALCONF ALTERNC_VHOST_DIR . "manual/" |
Definition at line 95 of file config.php.
const DEFAULT_PASS_SIZE 10 |
Define constants from vars of /etc/alternc/local.sh The you can't choose where is the AlternC Panel.
Definition at line 81 of file config.php.
const DO_XHPROF_STATS FALSE |
Main configuration file (BOOSTRAP) of AlternC control panel.
Include this to load everything and ensure the user is connected
Definition at line 29 of file config.php.
foreach (glob( $root . "class/m_*.php") as $di foreach) (glob($root . "class/class_system_*.php") as $fcs) | ( | glob($root . "class/class_system_*.php") as | $fcs | ) |
Definition at line 144 of file config.php.