install/includes/stages/login.php
changeset 857 f3a5a276208c
parent 801 eb8b23f11744
child 1081 745200a9cc2a
equal deleted inserted replaced
856:0b7ff06aad13 857:f3a5a276208c
    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\';');