Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Got rid of the use of $_SERVER['DOCUMENT_ROOT']
- Loading branch information
Showing
8 changed files
with
22 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<?php | ||
ob_start(); | ||
require_once $_SERVER['DOCUMENT_ROOT'] . '/system/start.php'; | ||
require_once 'system/start.php'; | ||
$pageTitle = 'Error 404 (Not Found)'; | ||
require_once $_SERVER['DOCUMENT_ROOT'] . '/system/includes/header.php'; | ||
require_once 'system/includes/header.php'; | ||
?> | ||
404 WILL GO HERE | ||
<?php | ||
require_once $_SERVER['DOCUMENT_ROOT'] . '/system/includes/footer.php'; | ||
require_once 'system/includes/footer.php'; | ||
ob_end_flush(); | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<?php | ||
ob_start(); | ||
require $_SERVER['DOCUMENT_ROOT'] . '/system/start.php'; | ||
require 'system/start.php'; | ||
$pageTitle = 'About'; | ||
require $_SERVER['DOCUMENT_ROOT'] . '/system/includes/header.php'; | ||
require 'system/includes/header.php'; | ||
?> | ||
CONTENT WILL GO HERE | ||
<?php | ||
require $_SERVER['DOCUMENT_ROOT'] . '/system/includes/footer.php'; | ||
require 'system/includes/footer.php'; | ||
ob_end_flush(); | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<?php | ||
ob_start(); | ||
require $_SERVER['DOCUMENT_ROOT'] . '/system/start.php'; | ||
require 'system/start.php'; | ||
$pageTitle = 'Privacy Policy'; | ||
require $_SERVER['DOCUMENT_ROOT'] . '/system/includes/header.php'; | ||
require 'system/includes/header.php'; | ||
?> | ||
CONTENT WILL GO HERE | ||
<?php | ||
require $_SERVER['DOCUMENT_ROOT'] . '/system/includes/footer.php'; | ||
require 'system/includes/footer.php'; | ||
ob_end_flush(); | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters