mirror of
https://github.com/Clortox/SimpleFileRepository.git
synced 2026-03-05 01:27:59 +00:00
Add Debug Option to config
This commit is contained in:
14
listing.php
14
listing.php
@@ -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 ?>">
|
||||
|
||||
Reference in New Issue
Block a user