mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-23 16:32:45 +00:00
42 lines
1.2 KiB
PHP
42 lines
1.2 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="description" content="">
|
|
<title>litebans-php - Database Error</title>
|
|
<link href="../inc/css/bootstrap.min.css" rel="stylesheet">
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<div class="jumbotron">
|
|
<h2>Database Error</h2><br>
|
|
|
|
<div class="text-warning">
|
|
The web interface was unable to connect to the database using the configuration provided.
|
|
<br>
|
|
Database error: Access denied
|
|
<br>
|
|
<?php
|
|
if (isset($_GET['error'])) {
|
|
$error = $_GET['error'];
|
|
if (strlen($error) <= 1024) {
|
|
$error = base64_decode($error, true);
|
|
|
|
if ($error !== false) {
|
|
// sanitize user input
|
|
$error = htmlspecialchars($error, ENT_QUOTES, "UTF-8");
|
|
|
|
echo $error;
|
|
}
|
|
}
|
|
}
|
|
?>
|
|
</div>
|
|
<br>
|
|
<a href="../" class="btn btn-default">Try Again</a>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|