diff --git a/resources/switch.php b/resources/switch.php index 0dc1761c15..3b53a2fd9d 100644 --- a/resources/switch.php +++ b/resources/switch.php @@ -83,8 +83,6 @@ require_once "resources/require.php"; } } - - //get the event socket information if (file_exists($_SERVER['DOCUMENT_ROOT'].PROJECT_PATH."/app/settings/app_config.php")) { if (strlen($_SESSION['event_socket_ip_address']) == 0) { @@ -189,7 +187,6 @@ function event_socket_create($host, $port, $password) { } } //end function - function event_socket_request($fp, $cmd) { if ($fp) { $cmd_array = explode("\n",$cmd); @@ -236,9 +233,6 @@ function event_socket_request($fp, $cmd) { } } - - - function event_socket_request_cmd($cmd) { global $db, $domain_uuid, $host; @@ -1486,7 +1480,6 @@ function save_gateway_xml() { } - function save_module_xml() { global $config, $db, $domain_uuid; @@ -1645,19 +1638,6 @@ function outbound_route_to_bridge ($domain_uuid, $destination_number) { return $bridge_array; unset ($prep_statement); } - -function email_validate($strEmail){ - $validRegExp = '/^[a-zA-Z0-9\._-]+@[a-zA-Z0-9\._-]+\.[a-zA-Z]{2,3}$/'; - // search email text for regular exp matches - preg_match($validRegExp, $strEmail, $matches, PREG_OFFSET_CAPTURE); - - if (count($matches) == 0) { - return 0; - } - else { - return 1; - } -} //$destination_number = '1231234'; //$bridge_array = outbound_route_to_bridge ($domain_uuid, $destination_number); //foreach ($bridge_array as &$bridge) { @@ -2092,7 +2072,6 @@ function save_dialplan_xml() { } //end if (is_dir($_SESSION['switch']['dialplan']['dir'])) } - if (!function_exists('phone_letter_to_number')) { function phone_letter_to_number($tmp) { $tmp = strtolower($tmp); @@ -2107,7 +2086,6 @@ if (!function_exists('phone_letter_to_number')) { } } - if (!function_exists('save_call_center_xml')) { function save_call_center_xml() { global $db, $domain_uuid;