Add Debug Option to config

This commit is contained in:
Clortox
2021-02-17 18:34:07 -05:00
parent da12e25e3a
commit 74d6593cf5
3 changed files with 58 additions and 17 deletions

View File

@@ -2,20 +2,18 @@
<head>
<?php
session_start();
//css, js, and other includes
include 'www/include.php';
include 'helpers/files.php';
//if this is a session inside the local connection
if(strpos($_SERVER['REMOTE_ADDR'],"192.168.1.")){
if($isDebug){
ini_set('display_errors',1);
ini_set('display_startup_errors',1);
error_reporting(E_ALL);
}
ini_set('display_errors',1);
ini_set('display_startup_errors',1);
error_reporting(E_ALL);
//css, js, and other includes
include 'www/include.php';
include 'helpers/files.php';
?>
<title><?php echo $site_name ?></title>
<link rel="icon" href="<?php echo $site_image ?>">