changeset 813 | 3fe11491f512 |
parent 812 | 68060328e9c6 |
child 814 | 7664d7d38a4a |
812:68060328e9c6 | 813:3fe11491f512 |
---|---|
26 $ui->show_header(); |
26 $ui->show_header(); |
27 echo '<h2>CLI only</h2> |
27 echo '<h2>CLI only</h2> |
28 <p>This script must be run from the command line.</p>'; |
28 <p>This script must be run from the command line.</p>'; |
29 $ui->show_footer(); |
29 $ui->show_footer(); |
30 exit; |
30 exit; |
31 } |
|
32 |
|
33 if ( defined('ENANO_INSTALLED') ) |
|
34 { |
|
35 // start up the API to let it error out if something's wrong |
|
36 require(ENANO_ROOT . '/includes/common.php'); |
|
37 |
|
38 installer_fail('Enano is already installed. Uninstall it by deleting config.php and creating a blank file called config.new.php.'); |
|
31 } |
39 } |
32 |
40 |
33 // parse command line args |
41 // parse command line args |
34 foreach ( array('silent', 'driver', 'dbhost', 'dbuser', 'dbpasswd', 'dbname', 'db_prefix', 'user', 'pass', 'email', 'sitename', 'sitedesc', 'copyright', 'urlscheme', 'lang_id', 'scriptpath') as $var ) |
42 foreach ( array('silent', 'driver', 'dbhost', 'dbuser', 'dbpasswd', 'dbname', 'db_prefix', 'user', 'pass', 'email', 'sitename', 'sitedesc', 'copyright', 'urlscheme', 'lang_id', 'scriptpath') as $var ) |
35 { |
43 { |