From 4301f9bee1eac46a551ee90b8378d0e04e8838ae Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Sat, 6 Jul 2013 17:01:35 +0000 Subject: [PATCH] A little code house cleaning. --- resources/switch.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/resources/switch.php b/resources/switch.php index 28cdb19129..75a2bcc084 100644 --- a/resources/switch.php +++ b/resources/switch.php @@ -27,9 +27,7 @@ require_once "root.php"; require_once "resources/require.php"; //preferences - $v_label_show = false; $v_menu_tab_show = false; - $v_fax_show = true; $v_path_show = true; //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() { global $v_menu_tab_show;