equal
deleted
inserted
replaced
27 if ( !defined('ENANO_INSTALL_HAVE_CONFIG') ) |
27 if ( !defined('ENANO_INSTALL_HAVE_CONFIG') ) |
28 { |
28 { |
29 die('Config file is corrupt'); |
29 die('Config file is corrupt'); |
30 } |
30 } |
31 $db = new $dbdriver(); |
31 $db = new $dbdriver(); |
32 $result = $db->connect(true, $dbhost, $dbuser, $dbpasswd, $dbname); |
32 $result = $db->connect(); |
33 if ( !$result ) |
33 if ( !$result ) |
34 die('DB privileges were revoked'); |
34 die('DB privileges were revoked'); |
35 |
35 |
36 // Is the key in the database? |
36 // Is the key in the database? |
37 $q = $db->sql_query('SELECT config_value FROM ' . table_prefix . 'config WHERE config_name = \'install_aes_key\';'); |
37 $q = $db->sql_query('SELECT config_value FROM ' . table_prefix . 'config WHERE config_name = \'install_aes_key\';'); |