This repository was archived by the owner on May 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherror.php
More file actions
36 lines (33 loc) · 1.38 KB
/
error.php
File metadata and controls
36 lines (33 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
$page = "Error";
include("functions.php");
include("common/head.php");
if (isset($_GET['i'])) {
$i = $_GET['i'];
} else {
$i = ERROR_GENERIC;
}
if ($i == ERROR_KICKED_OUT) {
$pagecontent = "The account you tried to log in with, has no permissions to the page you tried to access, because you are no longer part of the translation team.";
} else if ($i == ERROR_NOT_MEMBER) {
$pagecontent = "The account you tried to log in with, has no permissions to the page you tried to access, because you are not part of the team.";
} else if ($i == ERROR_MYSQL) {
$pagecontent = "An SQL error occured. You've been logged out, so try again. If this error persists, please contact @dimitrisp on the DaVinci discord.";
} else if ($i == ERROR_LOGIN) {
$pagecontent = "You are not logged in. Please <a href=\"https://steemconnect.com/oauth2/authorize?client_id=aristotle.app&redirect_uri=http://localhost/tasklist/callback.php&scope=login\">click here to login via SteemConnect</a>";
} else if ($i == ERROR_PERMISSIONS) {
$pagecontent = "You do not have permissions to the page you tried to access";
} else {
$pagecontent = "An unexpected error occured. Please try again later";
}
?>
<div class="container">
<div class="row">
<div class="col-lg-8 mx-auto text-center">
<?php echo $pagecontent; ?>
</div>
</div>
</div>
<?php
include("common/foot.php");
?>