Set the full path to the config.lua script.

This commit is contained in:
markjcrane
2016-04-15 23:16:19 -06:00
parent 44850f0246
commit 37e42ae754

View File

@@ -161,7 +161,7 @@ if (!class_exists('scripts')) {
$config = "/usr/local/etc/fusionpbx/config.lua";
}
else {
$script_dir = $_SESSION['switch']['scripts']['dir'];
$config = $_SESSION['switch']['scripts']['dir']."/resources/config.lua";
}
$fout = fopen($config,"w");
if(!$fout){
@@ -271,8 +271,6 @@ if (!class_exists('scripts')) {
} //end scripts class
}
/*
//example use
//update config.lua
$obj = new scripts;
$obj->write_config();