Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
question2answer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
outils
question2answer
Commits
7a246c8d
Commit
7a246c8d
authored
Apr 20, 2021
by
Scott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace external user fatal error with 404
parent
3f3c8c26
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
34 additions
and
13 deletions
+34
-13
account.php
qa-include/pages/account.php
+5
-2
admin-approve.php
qa-include/pages/admin/admin-approve.php
+5
-2
message.php
qa-include/pages/message.php
+5
-2
messages.php
qa-include/pages/messages.php
+5
-2
user-wall.php
qa-include/pages/user-wall.php
+5
-2
users-blocked.php
qa-include/pages/users-blocked.php
+3
-1
users-newest.php
qa-include/pages/users-newest.php
+3
-1
users-special.php
qa-include/pages/users-special.php
+3
-1
No files found.
qa-include/pages/account.php
View file @
7a246c8d
...
...
@@ -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
if
(
QA_FINAL_EXTERNAL_USERS
)
qa_fatal_error
(
'User accounts are handled by external code'
);
if
(
QA_FINAL_EXTERNAL_USERS
)
{
header
(
'HTTP/1.1 404 Not Found'
);
echo
qa_lang_html
(
'main/page_not_found'
);
qa_exit
();
}
$userid
=
qa_get_logged_in_userid
();
...
...
qa-include/pages/admin/admin-approve.php
View file @
7a246c8d
...
...
@@ -30,8 +30,11 @@ require_once QA_INCLUDE_DIR . 'db/admin.php';
// Check we're not using single-sign on integration
if
(
QA_FINAL_EXTERNAL_USERS
)
qa_fatal_error
(
'User accounts are handled by external code'
);
if
(
QA_FINAL_EXTERNAL_USERS
)
{
header
(
'HTTP/1.1 404 Not Found'
);
echo
qa_lang_html
(
'main/page_not_found'
);
qa_exit
();
}
// Find most flagged questions, answers, comments
...
...
qa-include/pages/message.php
View file @
7a246c8d
...
...
@@ -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
if
(
QA_FINAL_EXTERNAL_USERS
)
qa_fatal_error
(
'User accounts are handled by external code'
);
if
(
QA_FINAL_EXTERNAL_USERS
)
{
header
(
'HTTP/1.1 404 Not Found'
);
echo
qa_lang_html
(
'main/page_not_found'
);
qa_exit
();
}
if
(
!
strlen
(
$handle
))
qa_redirect
(
'users'
);
...
...
qa-include/pages/messages.php
View file @
7a246c8d
...
...
@@ -43,8 +43,11 @@ elseif ($req === 'sent')
else
return
include
QA_INCLUDE_DIR
.
'qa-page-not-found.php'
;
if
(
QA_FINAL_EXTERNAL_USERS
)
qa_fatal_error
(
'User accounts are handled by external code'
);
if
(
QA_FINAL_EXTERNAL_USERS
)
{
header
(
'HTTP/1.1 404 Not Found'
);
echo
qa_lang_html
(
'main/page_not_found'
);
qa_exit
();
}
if
(
!
isset
(
$loginUserId
))
{
$qa_content
=
qa_content_prepare
();
...
...
qa-include/pages/user-wall.php
View file @
7a246c8d
...
...
@@ -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
if
(
QA_FINAL_EXTERNAL_USERS
)
qa_fatal_error
(
'User accounts are handled by external code'
);
if
(
QA_FINAL_EXTERNAL_USERS
)
{
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
...
...
qa-include/pages/users-blocked.php
View file @
7a246c8d
...
...
@@ -32,7 +32,9 @@ require_once QA_INCLUDE_DIR . 'app/format.php';
// Check we're not using single-sign on integration
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
();
}
...
...
qa-include/pages/users-newest.php
View file @
7a246c8d
...
...
@@ -31,7 +31,9 @@ require_once QA_INCLUDE_DIR . 'app/format.php';
// Check we're not using single-sign on integration
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
();
}
...
...
qa-include/pages/users-special.php
View file @
7a246c8d
...
...
@@ -32,7 +32,9 @@ require_once QA_INCLUDE_DIR . 'app/format.php';
// Check we're not using single-sign on integration
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
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment