Major Fix, added new logic for pages, added redirect for env-error.php and db-error.php
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
<section>
|
||||
<h1>404</h1>
|
||||
<p>Page not found.</p>
|
||||
</section>
|
||||
1
pages/about.php
Normal file
1
pages/about.php
Normal file
@@ -0,0 +1 @@
|
||||
<h1>About</h1>
|
||||
@@ -1,3 +1,7 @@
|
||||
<?php if ($db_needed !== "yes"){
|
||||
header("Location: " . ROOT_URL );
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
<?php
|
||||
if (! $error_env_check){
|
||||
header("Location: " . ROOT_URL );
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
|
||||
Reference in New Issue
Block a user