mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-02-24 23:45:38 +08:00
check file if exists
This commit is contained in:
parent
36b47a3e8d
commit
a18c07ba42
2 changed files with 25 additions and 0 deletions
|
@ -35,6 +35,18 @@ if (php_sapi_name() !== 'cli') {
|
||||||
echo "<pre>";
|
echo "<pre>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!file_exists('../config.php')){
|
||||||
|
die("config.php file not found");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if(!file_exists('orm.php')){
|
||||||
|
die("orm.php file not found");
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!file_exists('uploads/notifications.json')){
|
||||||
|
die("uploads/notifications.json file not found");
|
||||||
|
}
|
||||||
|
|
||||||
require_once '../config.php';
|
require_once '../config.php';
|
||||||
require_once 'orm.php';
|
require_once 'orm.php';
|
||||||
|
|
|
@ -35,6 +35,19 @@ if(php_sapi_name() !== 'cli'){
|
||||||
echo "<pre>";
|
echo "<pre>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!file_exists('../config.php')){
|
||||||
|
die("config.php file not found");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if(!file_exists('orm.php')){
|
||||||
|
die("orm.php file not found");
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!file_exists('uploads/notifications.json')){
|
||||||
|
die("uploads/notifications.json file not found");
|
||||||
|
}
|
||||||
|
|
||||||
require_once '../config.php';
|
require_once '../config.php';
|
||||||
require_once 'orm.php';
|
require_once 'orm.php';
|
||||||
require_once 'autoload/PEAR2/Autoload.php';
|
require_once 'autoload/PEAR2/Autoload.php';
|
||||||
|
|
Loading…
Reference in a new issue