mirror of
https://github.com/Fluffy-Bean/image-gallery.git
synced 2025-05-23 20:04:55 +00:00
Give an error when connection dies
This commit is contained in:
parent
cb838ad53b
commit
dec15d7b63
4 changed files with 50 additions and 27 deletions
26
error.php
Normal file
26
error.php
Normal file
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<?php require_once __DIR__."/ui/header.php"; ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div></div>
|
||||
|
||||
<div class="error-root">
|
||||
<h2>Woops...</h2>
|
||||
<?php
|
||||
if ($_GET["e"] == "conn") {
|
||||
echo "<p>An error occured while connecting to the server. If you're an admin, check the database configuration and/or make sure the database is alive</p>";
|
||||
} else {
|
||||
echo "<p>An error occured! But no description was provided.</p>";
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
<?php require_once __DIR__."/ui/footer.php"; ?>
|
||||
</body>
|
||||
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue