diff -r 299a90e28abc -r 87e08a6e4fec install/includes/stages/login.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/install/includes/stages/login.php Wed Jan 16 13:55:49 2008 -0500 @@ -0,0 +1,228 @@ +connect(true, $dbhost, $dbuser, $dbpasswd, $dbname); +if ( !$result ) + die('DB privileges were revoked'); + +// Is the key in the database? +$q = $db->sql_query('SELECT config_value FROM ' . table_prefix . 'config WHERE config_name = \'install_aes_key\';'); +if ( !$q ) + $db->_die(); +if ( $db->numrows() > 0 ) +{ + list($install_aes_key) = $db->fetchrow_num(); +} +else +{ + $aes = AESCrypt::singleton(AES_BITS, AES_BLOCKSIZE); + $install_aes_key = $aes->gen_readymade_key(); + + if ( ! $db->sql_query('INSERT INTO ' . table_prefix . 'config ( config_name, config_value ) VALUES ( \'install_aes_key\', \'' . $install_aes_key .'\' ); ') ) + $db->_die(); +} +$db->free_result($q); + +$ui->add_header(''); +$ui->show_header(); + +// FIXME: l10n +?> +
Now it's time to create the account you'll use to administer your site. The e-mail address you enter here will also be used for the global contact address; you can change this after installation is finished if need be.
+Do not forget the information you enter here. Otherwise you will be unable to administer your site.
+ + + +