Commit 7a246c8d by Scott

Replace external user fatal error with 404

parent 3f3c8c26
...@@ -33,8 +33,11 @@ require_once QA_INCLUDE_DIR . 'util/image.php'; ...@@ -33,8 +33,11 @@ require_once QA_INCLUDE_DIR . 'util/image.php';
// Check we're not using single-sign on integration, that we're logged in // Check we're not using single-sign on integration, that we're logged in
if (QA_FINAL_EXTERNAL_USERS) if (QA_FINAL_EXTERNAL_USERS) {
qa_fatal_error('User accounts are handled by external code'); header('HTTP/1.1 404 Not Found');
echo qa_lang_html('main/page_not_found');
qa_exit();
}
$userid = qa_get_logged_in_userid(); $userid = qa_get_logged_in_userid();
......
...@@ -30,8 +30,11 @@ require_once QA_INCLUDE_DIR . 'db/admin.php'; ...@@ -30,8 +30,11 @@ require_once QA_INCLUDE_DIR . 'db/admin.php';
// Check we're not using single-sign on integration // Check we're not using single-sign on integration
if (QA_FINAL_EXTERNAL_USERS) if (QA_FINAL_EXTERNAL_USERS) {
qa_fatal_error('User accounts are handled by external code'); header('HTTP/1.1 404 Not Found');
echo qa_lang_html('main/page_not_found');
qa_exit();
}
// Find most flagged questions, answers, comments // Find most flagged questions, answers, comments
......
...@@ -38,8 +38,11 @@ $qa_content = qa_content_prepare(); ...@@ -38,8 +38,11 @@ $qa_content = qa_content_prepare();
// Check we have a handle, we're not using Q2A's single-sign on integration and that we're logged in // Check we have a handle, we're not using Q2A's single-sign on integration and that we're logged in
if (QA_FINAL_EXTERNAL_USERS) if (QA_FINAL_EXTERNAL_USERS) {
qa_fatal_error('User accounts are handled by external code'); header('HTTP/1.1 404 Not Found');
echo qa_lang_html('main/page_not_found');
qa_exit();
}
if (!strlen($handle)) if (!strlen($handle))
qa_redirect('users'); qa_redirect('users');
......
...@@ -43,8 +43,11 @@ elseif ($req === 'sent') ...@@ -43,8 +43,11 @@ elseif ($req === 'sent')
else else
return include QA_INCLUDE_DIR . 'qa-page-not-found.php'; return include QA_INCLUDE_DIR . 'qa-page-not-found.php';
if (QA_FINAL_EXTERNAL_USERS) if (QA_FINAL_EXTERNAL_USERS) {
qa_fatal_error('User accounts are handled by external code'); header('HTTP/1.1 404 Not Found');
echo qa_lang_html('main/page_not_found');
qa_exit();
}
if (!isset($loginUserId)) { if (!isset($loginUserId)) {
$qa_content = qa_content_prepare(); $qa_content = qa_content_prepare();
......
...@@ -30,8 +30,11 @@ require_once QA_INCLUDE_DIR . 'app/messages.php'; ...@@ -30,8 +30,11 @@ require_once QA_INCLUDE_DIR . 'app/messages.php';
// Check we're not using single-sign on integration, which doesn't allow walls // Check we're not using single-sign on integration, which doesn't allow walls
if (QA_FINAL_EXTERNAL_USERS) if (QA_FINAL_EXTERNAL_USERS) {
qa_fatal_error('User accounts are handled by external code'); header('HTTP/1.1 404 Not Found');
echo qa_lang_html('main/page_not_found');
qa_exit();
}
// $handle, $userhtml are already set by /qa-include/page/user.php // $handle, $userhtml are already set by /qa-include/page/user.php
......
...@@ -32,7 +32,9 @@ require_once QA_INCLUDE_DIR . 'app/format.php'; ...@@ -32,7 +32,9 @@ require_once QA_INCLUDE_DIR . 'app/format.php';
// Check we're not using single-sign on integration // Check we're not using single-sign on integration
if (QA_FINAL_EXTERNAL_USERS) { if (QA_FINAL_EXTERNAL_USERS) {
qa_fatal_error('User accounts are handled by external code'); header('HTTP/1.1 404 Not Found');
echo qa_lang_html('main/page_not_found');
qa_exit();
} }
......
...@@ -31,7 +31,9 @@ require_once QA_INCLUDE_DIR . 'app/format.php'; ...@@ -31,7 +31,9 @@ require_once QA_INCLUDE_DIR . 'app/format.php';
// Check we're not using single-sign on integration // Check we're not using single-sign on integration
if (QA_FINAL_EXTERNAL_USERS) { if (QA_FINAL_EXTERNAL_USERS) {
qa_fatal_error('User accounts are handled by external code'); header('HTTP/1.1 404 Not Found');
echo qa_lang_html('main/page_not_found');
qa_exit();
} }
......
...@@ -32,7 +32,9 @@ require_once QA_INCLUDE_DIR . 'app/format.php'; ...@@ -32,7 +32,9 @@ require_once QA_INCLUDE_DIR . 'app/format.php';
// Check we're not using single-sign on integration // Check we're not using single-sign on integration
if (QA_FINAL_EXTERNAL_USERS) { if (QA_FINAL_EXTERNAL_USERS) {
qa_fatal_error('User accounts are handled by external code'); header('HTTP/1.1 404 Not Found');
echo qa_lang_html('main/page_not_found');
qa_exit();
} }
......
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