Alternc  latest
Alternc logiel libre pour l'hébergement
config.php File Reference

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())
 

Variable Documentation

◆ $addhead

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

$authip = new m_authip()

Definition at line 153 of file config.php.

◆ $classes

$classes = array()

Definition at line 125 of file config.php.

◆ $cuid

$cuid = 0

Definition at line 122 of file config.php.

◆ $db

$db = new DB_system()

Definition at line 119 of file config.php.

◆ $fatalcsrf

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

$help_baseurl = "http://www.aide-alternc.org/"

Definition at line 68 of file config.php.

Referenced by m_menu\system_menu().

◆ $hooks

$hooks = new m_hooks()

Definition at line 154 of file config.php.

◆ $host

$host = getenv("HTTP_HOST")

◆ $isinvited

$isinvited = false

Definition at line 204 of file config.php.

◆ $mem

$mem = new m_mem()

Definition at line 152 of file config.php.

◆ $msg

$msg = new m_messages()

Definition at line 155 of file config.php.

◆ $oldid

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

$root = ALTERNC_PANEL . "/"

Definition at line 99 of file config.php.

◆ ALTERNC_APACHE2_GEN_TMPL_DIR

const ALTERNC_APACHE2_GEN_TMPL_DIR '/etc/alternc/templates/apache2/'

Definition at line 92 of file config.php.

◆ ALTERNC_HTML

const ALTERNC_HTML "$L_ALTERNC_HTML"

Definition at line 83 of file config.php.

◆ ALTERNC_LOCALES

const ALTERNC_LOCALES ALTERNC_PANEL . "/locales"

Definition at line 89 of file config.php.

◆ ALTERNC_LOCK_JOBS

const ALTERNC_LOCK_JOBS '/run/alternc/jobs-lock'

Definition at line 90 of file config.php.

◆ ALTERNC_LOCK_PANEL

const ALTERNC_LOCK_PANEL '/var/lib/alternc/panel/nologin.lock'

Definition at line 91 of file config.php.

◆ ALTERNC_LOGS

const ALTERNC_LOGS(isset( $L_ALTERNC_LOGS_ARCHIVE)) ( isset( $L_ALTERNC_LOGS_ARCHIVE)  ) "$L_ALTERNC_LOGS"

Definition at line 87 of file config.php.

◆ ALTERNC_MAIL

const ALTERNC_MAIL "$L_ALTERNC_MAIL"

Definition at line 82 of file config.php.

◆ ALTERNC_PANEL

const ALTERNC_PANEL "/usr/share/alternc/panel"

Definition at line 88 of file config.php.

◆ ALTERNC_VHOST_DIR

const ALTERNC_VHOST_DIR "/var/lib/alternc/apache-vhost/"

Definition at line 93 of file config.php.

◆ ALTERNC_VHOST_FILE

const ALTERNC_VHOST_FILE ALTERNC_VHOST_DIR . "vhosts_all.conf"

Definition at line 94 of file config.php.

◆ ALTERNC_VHOST_MANUALCONF

const ALTERNC_VHOST_MANUALCONF ALTERNC_VHOST_DIR . "manual/"

Definition at line 95 of file config.php.

◆ DEFAULT_PASS_SIZE

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.

◆ DO_XHPROF_STATS

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

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.