A little code house cleaning.
This commit is contained in:
parent
a082a84b28
commit
fcf9ade166
|
|
@ -27,9 +27,7 @@ require_once "root.php";
|
||||||
require_once "resources/require.php";
|
require_once "resources/require.php";
|
||||||
|
|
||||||
//preferences
|
//preferences
|
||||||
$v_label_show = false;
|
|
||||||
$v_menu_tab_show = false;
|
$v_menu_tab_show = false;
|
||||||
$v_fax_show = true;
|
|
||||||
$v_path_show = true;
|
$v_path_show = true;
|
||||||
|
|
||||||
//get user defined variables
|
//get user defined variables
|
||||||
|
|
@ -189,16 +187,6 @@ foreach($settings_array as $name => $value) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($db_type == "sqlite") {
|
|
||||||
//sqlite: check if call detail record (CDR) db file exists if not create it
|
|
||||||
if (!file_exists($db_file_path.'/'.$server_name.'.cdr.db')) {
|
|
||||||
//echo "file does not exist: ".$_SESSION['switch']['db']['dir'].'/cdr.db';
|
|
||||||
if (copy($db_file_path.'/cdr.clean.db', $db_file_path.'/'.$server_name.'.cdr.db')) {
|
|
||||||
//echo "copy succeeded.\n";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function build_menu() {
|
function build_menu() {
|
||||||
global $v_menu_tab_show;
|
global $v_menu_tab_show;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue