76 lines
1.5 KiB
PHP
76 lines
1.5 KiB
PHP
<?php if ($db_needed !== "yes"){
|
|
header("Location: " . ROOT_URL );
|
|
}
|
|
?>
|
|
<!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>
|
|
|
|
|
|
|
|
|
|
|
|
|