|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
Namespaces | |
| namespace | core |
Enumerations | |
| enum | CLI_SCRIPT |
Variables | |
| if(isset($_SERVER['REMOTE_ADDR'])) | $help |
| if(version_compare(phpversion(),"5.3.2")< 0) | $configfile = dirname(dirname(dirname(__FILE__))).'/config.php' |
| if (!file_exists($configfile)) | |
| if($DB->get_tables()) $CFG | early_install_lang = true |
| if($options['help']) if(!$options['agree-license']) if($options['adminpass']===true or $options['adminpass']=== '') | $options ['lang'] = clean_param($options['lang'], PARAM_SAFEDIR) |
| if(!file_exists($CFG->dirroot.'/install/lang/'.$options['lang'])) $CFG | lang = $options['lang'] |
| enum CLI_SCRIPT |
Definition at line 31 of file install_database.php.
| if (version_compare(phpversion(),"5.3.2")< 0) $configfile = dirname(dirname(dirname(__FILE__))).'/config.php' |
Definition at line 67 of file install_database.php.
"Advanced command line Moodle database installer. Please note you must execute this script with the same uid as apache. Site defaults may be changed via local/defaults.php. Options: --lang=CODE Installation and default site language. Default is en. --adminuser=USERNAME Username for the moodle admin account. Default is admin. --adminpass=PASSWORD Password for the moodle admin account. --agree-license Indicates agreement with software license. --fullname=STRING Name of the site --shortname=STRING Name of the site -h, --help Print out this help Example: \$sudo -u www-data /usr/bin/php admin/cli/install_database.php --lang=cs --adminpass=soMePass123 --agree-license "
Definition at line 38 of file install_database.php.
| if ($options['help']) if (!$options['agree-license']) if ($options['adminpass']===true or $options['adminpass']=== '') $options['lang'] = clean_param($options['lang'], PARAM_SAFEDIR) |
Definition at line 122 of file install_database.php.
| if ($CFG->lang!== 'en') $CFG early_install_lang = true |
Definition at line 87 of file install_database.php.
| if(!$envstatus) |
Definition at line 68 of file install_database.php.