Major Fix, added new logic for pages, added redirect for env-error.php and db-error.php

This commit is contained in:
2026-04-30 02:03:51 +01:00
parent f32dff9b85
commit 3c9837bcb1
10 changed files with 67 additions and 117 deletions

View File

@@ -0,0 +1,4 @@
<section>
<h1>404</h1>
<p>Page not found.</p>
</section>

1
pages/about.php Normal file
View File

@@ -0,0 +1 @@
<h1>About</h1>

View File

@@ -1,3 +1,7 @@
<?php if ($db_needed !== "yes"){
header("Location: " . ROOT_URL );
}
?>
<!DOCTYPE html>
<html lang="en">
<head>

View File

@@ -1,3 +1,8 @@
<?php
if (! $error_env_check){
header("Location: " . ROOT_URL );
}
?>
<!DOCTYPE html>
<html lang="en">
<head>