This repository was archived by the owner on May 18, 2024. 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
71 lines (70 loc) · 2.59 KB
/
error.php
File metadata and controls
71 lines (70 loc) · 2.59 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ASE | Fel</title>
</head>
<body>
<div class="fullscreen-bg">
<video loop muted autoplay class="fullscreen-bg__video">
<source src="./assets/videos/background.mp4" type="video/mp4">
</video>
</div>
<div id="content">
<nav class="header">
<h1>Arma Sweden</h1>
</nav>
<section class="msg">
<h1>Ett fel har uppstått (<?=$_GET['eCode']?>)</h1>
<p class="text">
<?php
$hlp_str = ' Var god skicka följande information till obliv1on#1337 på Discord:<br><br>';
$cont_str = ' Om du upplever detta som felaktigt, kan du meddela obliv1on#1337 på Discord för att åtgärda problemet.';
if (isset($_GET['eCode'])) {
switch ($_GET['eCode']) {
case 'auth_err':
echo 'Ett fel har skett vid autentiseringen.'.$hlp_str;
echo '"' . $_GET['eDesc'] . '"';
break;
case 'already_voted':
echo 'Ditt konto har redan använts för att rösta.'.$cont_str;
break;
case 'no_role':
echo 'Du kan tyvärr inte rösta då du ej har medlemsrollen på servern. Verifiera ditt Discord-konto på hemsidan och försök igen.';
break;
case 'db_err':
echo 'Ett fel har uppstått med databasen.'.$hlp_str;
echo $_GET['eStack'];
break;
case 'concluded':
echo 'Sista valdatum har nu passerat. Nya svar kan ej skickas in.';
break;
case 'notConcluded':
echo 'Sista valdatum har ej passerat. Resultaten kan ej ses än.';
break;
default:
echo 'Ett okänt fel har uppstått. Kontakta obliv1on#1337 på Discord för mer informaiton';
break;
}
} else {
echo 'Ett okänt fel har uppstått. Kontakta obliv1on#1337 på Discord för mer informaiton';
}
?>
</p>
</section>
<section class="prompt">
<div id="vote-btn">
<button onclick="window.location.href='index.php'" id="confirm-btn">Tillbaka till startsida</button>
</div>
</section>
<nav class="footer">
<p>
Denna sida har skapats för <a href="https://armasweden.se">Arma Sweden</a>
</p>
</nav>
</div>
</body>
</html>
<link rel="stylesheet" href="assets/css/style.css">