Commit 1e0ce5ab by Scott

Merge branch 'dev' (1.7.5) into 1.8

parents 9403e630 e17b0e33
1.7.4 1.7.5
\ No newline at end of file \ No newline at end of file
...@@ -20,8 +20,8 @@ ...@@ -20,8 +20,8 @@
*/ */
define('QA_VERSION', '1.7.4'); // also used as suffix for .js and .css requests define('QA_VERSION', '1.7.5'); // also used as suffix for .js and .css requests
define('QA_BUILD_DATE', '2016-03-14'); define('QA_BUILD_DATE', '2017-08-08');
/** /**
......
...@@ -68,9 +68,11 @@ $hidden = array(); ...@@ -68,9 +68,11 @@ $hidden = array();
// Process user handling higher up to avoid 'headers already sent' warning // Process user handling higher up to avoid 'headers already sent' warning
if (!isset($pass_failure_type) && qa_clicked('super')) { if (!isset($pass_failure_type) && qa_clicked('super')) {
require_once QA_INCLUDE_DIR.'db/admin.php';
require_once QA_INCLUDE_DIR.'db/users.php'; require_once QA_INCLUDE_DIR.'db/users.php';
require_once QA_INCLUDE_DIR.'app/users-edit.php'; require_once QA_INCLUDE_DIR.'app/users-edit.php';
if (qa_db_count_users() == 0) { // prevent creating multiple accounts
$inemail = qa_post_text('email'); $inemail = qa_post_text('email');
$inpassword = qa_post_text('password'); $inpassword = qa_post_text('password');
$inhandle = qa_post_text('handle'); $inhandle = qa_post_text('handle');
...@@ -90,6 +92,7 @@ if (!isset($pass_failure_type) && qa_clicked('super')) { ...@@ -90,6 +92,7 @@ if (!isset($pass_failure_type) && qa_clicked('super')) {
$success .= "Congratulations - Your Question2Answer site is ready to go!\n\nYou are logged in as the super administrator and can start changing settings.\n\nThank you for installing Question2Answer."; $success .= "Congratulations - Your Question2Answer site is ready to go!\n\nYou are logged in as the super administrator and can start changing settings.\n\nThank you for installing Question2Answer.";
} }
}
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment