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

Go to the source code of this file.

Classes

class  DB_system
 Class for MySQL management in the panel. 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")
 
if(is_readable('local.sh')) else if(is_readable('local.sh_generic')) else
 
 $configFile = explode("\n",$configFile)
 
 $compat
 
foreach($configFile as $line) if (!defined("ALTERNC_MAIL"))
 
const THROW_EXCEPTIONS TRUE
 
 $root = ALTERNC_PANEL."/"
 
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($database, $user, $password)
 
 $cuid = 0
 
 $msg = new \m_messages()
 
 $mem = new \m_mem()
 
 $err = new \m_err()
 
 $authip = new \m_authip()
 
 $hooks = new \m_hooks()
 
 $bro = new \m_bro()
 

Variable Documentation

◆ $authip

$authip = new \m_authip()

Definition at line 149 of file bootstrap.php.

◆ $bro

◆ $compat

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

Definition at line 35 of file bootstrap.php.

◆ $configFile

$configFile = explode("\n",$configFile)

Definition at line 34 of file bootstrap.php.

◆ $cuid

$cuid = 0

Definition at line 145 of file bootstrap.php.

◆ $database

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\__construct(), and AlterncTest\getConnection().

◆ $db

$db = new \DB_system($database, $user, $password)

Definition at line 144 of file bootstrap.php.

◆ $err

$err = new \m_err()

Definition at line 148 of file bootstrap.php.

◆ $hooks

$hooks = new \m_hooks()

Definition at line 150 of file bootstrap.php.

◆ $mem

$mem = new \m_mem()

Definition at line 147 of file bootstrap.php.

◆ $msg

$msg = new \m_messages()

Definition at line 146 of file bootstrap.php.

◆ $password

◆ $pathList

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

Definition at line 12 of file bootstrap.php.

◆ $queryList

$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 131 of file bootstrap.php.

◆ $root

$root = ALTERNC_PANEL."/"

Definition at line 71 of file bootstrap.php.

◆ $user

◆ ALTERNC_PANEL

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

Definition at line 19 of file bootstrap.php.

◆ else

if (is_readable("my.cnf")) else if (is_readable( 'my.cnf_generic')) else
Initial value:
{
throw new Exception("You must provide a local.sh file", 1 )

Definition at line 31 of file bootstrap.php.

◆ foreach

foreach($queryList as $exec_command) (   $queryList as)

Definition at line 136 of file bootstrap.php.

◆ if

if(!defined("ALTERNC_VHOST_MANUALCONF")) ( defined"ALTERNC_MAIL")

Definition at line 56 of file bootstrap.php.

◆ PHPUNIT_DATASETS_PATH

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

Definition at line 20 of file bootstrap.php.

Referenced by AlterncTest\loadDataSet().

◆ THROW_EXCEPTIONS

const THROW_EXCEPTIONS TRUE

Definition at line 69 of file bootstrap.php.

Referenced by DB_Sql\query().