firts commit

This commit is contained in:
2026-04-27 08:48:03 +01:00
commit 05f24c50a8
18 changed files with 420 additions and 0 deletions

72
pages/db-error.php Normal file
View File

@@ -0,0 +1,72 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Error Environment</title>
<style>
html{font-size: 20px; font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif}
*{ margin:0; padding:0;}
body{
width:100vw;
height:100vh; display:flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: #f8d5d5;
}
.container{
text-align: center;
background-color: #e6e6e6;
padding:100pt;
border: 4px solid #2b2b2b;
border-radius: 10px;
}
.err_env_result{
color:red;
margin:6px;
font-size: 30px;
}
.err_env_result > span{
font-weight: 600;
}
.err_env_help{
color: #880000;
}
.details{
font-style: italic;
margin-top:10px;
color: #272727;
font-size:17px;
}
.details > span{
color: #f30000;
font-weight: 600;
}
</style>
</head>
<body>
<div class="container">
<p class="err_env_result"><span>ERROR:</span> Can't establish a db connection!</p>
<p class='err_env_help'>Please check the db.php configurations.</p>
<?php
if (DB_DEBUG == "yes"){
echo "<p class=' details err_env_help'><span>Error Details: </span>" . $e->getMessage() . "</p>";
}
?>
</div>
</body>
</html>