diff --git a/app/click_to_call/click_to_call.php b/app/click_to_call/click_to_call.php index 99bea9c0d5..0872d60644 100644 --- a/app/click_to_call/click_to_call.php +++ b/app/click_to_call/click_to_call.php @@ -33,12 +33,10 @@ include "root.php"; require_once "includes/require.php"; require_once "includes/checkauth.php"; -//require_once "includes/checkauth.php"; if (permission_exists('click_to_call_view')) { //access granted } else { - echo "access denied"; exit; } @@ -126,7 +124,6 @@ if (is_array($_REQUEST) && !empty($_REQUEST['src']) && !empty($_REQUEST['dest']) } } else { - if (strlen($src) < 7) { if (strlen($dest_cid_number) == 0) { //get the caller id from the extension caller id comes from the extension (the source number) @@ -149,11 +146,10 @@ if (is_array($_REQUEST) && !empty($_REQUEST['src']) && !empty($_REQUEST['dest']) $destination = "{origination_caller_id_name='$dest_cid_name',origination_caller_id_number=$dest_cid_number}".$bridge_array[0]; if (permission_exists('click_to_call_call')) { if (strpbrk($dest, '@') != FALSE) { - //call a sip uri + //call a sip uri //echo "Found an @ 4, do nothing for now

"; $switch_cmd = "api originate $source &bridge({origination_caller_id_name='$src_cid_name',origination_caller_id_number=$src_cid_number,call_direction=outbound}sofia/external/$dest)"; //echo "
SWITCH-CMD: $switch_cmd
"; - } else { //regular call diff --git a/app/dialplan/dialplan_edit.php b/app/dialplan/dialplan_edit.php index e0ecf77b29..f3a8cb2528 100644 --- a/app/dialplan/dialplan_edit.php +++ b/app/dialplan/dialplan_edit.php @@ -441,10 +441,10 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo ""; echo "
\n"; - $sql = " select * from v_dialplan_details "; - $sql .= " where domain_uuid = '".$_SESSION['domain_uuid']."' "; - $sql .= " and dialplan_uuid = '$dialplan_uuid' "; - $sql .= " order by dialplan_detail_group asc, dialplan_detail_order asc"; + $sql = "select * from v_dialplan_details "; + $sql .= "where domain_uuid = '".$_SESSION['domain_uuid']."' "; + $sql .= "and dialplan_uuid = '$dialplan_uuid' "; + $sql .= "order by dialplan_detail_group asc, dialplan_detail_order asc"; $prep_statement = $db->prepare(check_sql($sql)); $prep_statement->execute(); $result = $prep_statement->fetchAll(PDO::FETCH_NAMED); @@ -567,7 +567,6 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { $x++; } //end foreach unset($sql, $result, $row_count); - } //end if results echo "\n"; diff --git a/app/fax/fax_copy.php b/app/fax/fax_copy.php index 3e28883e0f..a594e08d5d 100644 --- a/app/fax/fax_copy.php +++ b/app/fax/fax_copy.php @@ -27,7 +27,6 @@ include "root.php"; require_once "includes/require.php"; require_once "includes/checkauth.php"; require_once "includes/paging.php"; -require_once "app_languages.php"; if (permission_exists('fax_extension_add')) { //access granted } diff --git a/app/fax/fax_delete.php b/app/fax/fax_delete.php index 62467ec84f..8187a1e9d9 100644 --- a/app/fax/fax_delete.php +++ b/app/fax/fax_delete.php @@ -26,7 +26,6 @@ include "root.php"; require_once "includes/require.php"; require_once "includes/checkauth.php"; -require_once "app_languages.php"; if (permission_exists('fax_extension_delete')) { //access granted } diff --git a/app/fax/fax_view.php b/app/fax/fax_view.php index 135d2ca853..dcc63e899d 100644 --- a/app/fax/fax_view.php +++ b/app/fax/fax_view.php @@ -27,7 +27,6 @@ include "root.php"; require_once "includes/require.php"; require_once "includes/checkauth.php"; -require_once "app_languages.php"; if (permission_exists('fax_extension_view')) { //access granted } diff --git a/core/default_settings/default_setting_edit.php b/core/default_settings/default_setting_edit.php index c1e8776809..7f6ef81291 100644 --- a/core/default_settings/default_setting_edit.php +++ b/core/default_settings/default_setting_edit.php @@ -91,7 +91,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { $sql .= "default_setting_name, "; $sql .= "default_setting_value, "; $sql .= "default_setting_enabled, "; - $sql .= "default_setting_description "; + $sql .= "default_setting_description "; $sql .= ")"; $sql .= "values "; $sql .= "("; @@ -210,12 +210,12 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "\n"; echo "\n"; - echo " Type:\n"; + echo " Name:\n"; echo "\n"; echo "\n"; echo " \n"; echo "
\n"; - echo "Enter the type.\n"; + echo "Enter the name.\n"; echo "\n"; echo "\n"; diff --git a/includes/install/scripts/intercept.lua b/includes/install/scripts/intercept.lua index 08188ca1f9..789045fb62 100644 --- a/includes/install/scripts/intercept.lua +++ b/includes/install/scripts/intercept.lua @@ -106,7 +106,7 @@ if ( session:ready() ) then if (debug["sql"]) then freeswitch.consoleLog("NOTICE", "sql "..sql.."\n"); end - dbh:query(sql, function(result) + dbh:query(sql, function(result) --for key, val in pairs(result) do -- freeswitch.consoleLog("NOTICE", "result "..key.." "..val.."\n"); --end diff --git a/includes/install/scripts/xml_handler.lua b/includes/install/scripts/xml_handler.lua index 21be15f48c..440634bad2 100644 --- a/includes/install/scripts/xml_handler.lua +++ b/includes/install/scripts/xml_handler.lua @@ -1,6 +1,6 @@ -- xml_handler.lua -- Part of FusionPBX --- Copyright (C) 2010 Mark J Crane +-- Copyright (C) 2013 Mark J Crane -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without