Alternc  3.2
Alternc logiel libre pour l'h├ębergement
 All Data Structures Namespaces Files Functions Variables Pages
bootstrap.php File Reference

Go to the source code of this file.

Data Structures

class  DB_system
 Class for MySQL management in the bureau. More...

Variables

 $pathList = array_merge( array("."),explode(PATH_SEPARATOR,get_include_path()))
const ALTERNC_PANEL = realpath(__DIR__."/../bureau")
const PHPUNIT_DATASETS_PATH = realpath(__DIR__."/tests/_datasets")
 $compat
const ALTERNC_MAIL ($configFile as $line) = "$L_ALTERNC_MAIL"
const ALTERNC_HTML = "$L_ALTERNC_HTML"
const ALTERNC_LOGS = "$L_ALTERNC_LOGS"
const ALTERNC_LOCALES (isset($L_ALTERNC_LOGS_ARCHIVE)) = ALTERNC_PANEL."/locales"
const ALTERNC_LOCK_JOBS = '/var/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/"
const THROW_EXCEPTIONS = TRUE
 $root = "/"
foreach(array(ALTERNC_MAIL,
ALTERNC_HTML, ALTERNC_LOGS) as
$crdir) 
$database = "alternc_test"
 $user = "root"
 $password = ""
 $queryList
foreach($queryList as
$exec_command) 
$db = new \DB_system($user,$database,$password)
 $cuid = 0
 $variables = new \m_variables()
 $mem = new \m_mem()
 $err = new \m_err()
 $authip = new \m_authip()
 $hooks = new \m_hooks()

Variable Documentation

$authip = new \m_authip()

Definition at line 154 of file bootstrap.php.

$compat
Initial value:
array('DEFAULT_MX' => 'MX',
'MYSQL_USER' => 'MYSQL_LOGIN',
'MYSQL_PASS' => 'MYSQL_PWD',
'NS1_HOSTNAME' => 'NS1',
'NS2_HOSTNAME' => 'NS2'
)

Definition at line 36 of file bootstrap.php.

$cuid = 0

Definition at line 150 of file bootstrap.php.

foreach (array(ALTERNC_MAIL, ALTERNC_HTML, ALTERNC_LOGS) as $crdir) $database = "alternc_test"

Definition at line 83 of file bootstrap.php.

Referenced by DB_system\DB_system(), and AlterncTest\getConnection().

foreach ($queryList as $exec_command) $db = new \DB_system($user,$database,$password)

Definition at line 148 of file bootstrap.php.

$err = new \m_err()

Definition at line 153 of file bootstrap.php.

$hooks = new \m_hooks()

Definition at line 155 of file bootstrap.php.

$mem = new \m_mem()

Definition at line 152 of file bootstrap.php.

$pathList = array_merge( array("."),explode(PATH_SEPARATOR,get_include_path()))

Definition at line 13 of file bootstrap.php.

$queryList
Initial value:
array(
"mysql -u $user --password='$password' -e 'DROP DATABASE IF EXISTS $database '",
"mysql -u $user --password='$password' -e 'CREATE DATABASE $database'",
"mysql -u $user --password='$password' $database < ".__DIR__."/../install/mysql.sql"
)

Definition at line 137 of file bootstrap.php.

$root = "/"

Definition at line 71 of file bootstrap.php.

$variables = new \m_variables()

Definition at line 151 of file bootstrap.php.

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

Definition at line 66 of file bootstrap.php.

const ALTERNC_HTML = "$L_ALTERNC_HTML"

Definition at line 58 of file bootstrap.php.

const ALTERNC_LOCALES(isset($L_ALTERNC_LOGS_ARCHIVE)) = ALTERNC_PANEL."/locales"

Definition at line 63 of file bootstrap.php.

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

Definition at line 64 of file bootstrap.php.

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

Definition at line 65 of file bootstrap.php.

const ALTERNC_LOGS = "$L_ALTERNC_LOGS"

Definition at line 59 of file bootstrap.php.

const ALTERNC_MAIL($configFile as $line) = "$L_ALTERNC_MAIL"

Definition at line 57 of file bootstrap.php.

const ALTERNC_PANEL = realpath(__DIR__."/../bureau")

Definition at line 20 of file bootstrap.php.

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

Definition at line 67 of file bootstrap.php.

const ALTERNC_VHOST_FILE = ALTERNC_VHOST_DIR."vhosts_all.conf"

Definition at line 68 of file bootstrap.php.

const ALTERNC_VHOST_MANUALCONF = ALTERNC_VHOST_DIR."manual/"

Definition at line 69 of file bootstrap.php.

const PHPUNIT_DATASETS_PATH = realpath(__DIR__."/tests/_datasets")

Definition at line 21 of file bootstrap.php.

Referenced by AlterncTest\loadDataSet().

const THROW_EXCEPTIONS = TRUE

Definition at line 70 of file bootstrap.php.

Referenced by DB_Sql\query().