From 8f187eefe341d676176daa4af55cdd95a3a65f42 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Sat, 3 Jan 2015 08:32:30 +0000 Subject: [PATCH] Remove the logging to make way for a better logging. The older one caused a problem for someone without permission to write to /tmp/logfile.txt --- app/dialplan/dialplan_edit.php | 4 ---- app/ivr_menu/ivr_menu_edit.php | 4 ---- resources/classes/logging.php | 6 +++++- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/app/dialplan/dialplan_edit.php b/app/dialplan/dialplan_edit.php index ec91b74295..2274233fea 100644 --- a/app/dialplan/dialplan_edit.php +++ b/app/dialplan/dialplan_edit.php @@ -28,7 +28,6 @@ include "root.php"; require_once "resources/require.php"; require_once "resources/check_auth.php"; require_once "resources/paging.php"; -require_once "resources/classes/logging.php"; require_once "resources/classes/orm.php"; if (permission_exists('dialplan_add') || permission_exists('dialplan_edit') @@ -53,9 +52,6 @@ else { $text[$key] = $value[$_SESSION['domain']['language']['code']]; } -//logger - $log = new Logging(); - //set the action as an add or an update if (isset($_REQUEST["id"])) { $action = "update"; diff --git a/app/ivr_menu/ivr_menu_edit.php b/app/ivr_menu/ivr_menu_edit.php index 327e893d3b..3ac37da086 100644 --- a/app/ivr_menu/ivr_menu_edit.php +++ b/app/ivr_menu/ivr_menu_edit.php @@ -42,10 +42,6 @@ else { $text[$key] = $value[$_SESSION['domain']['language']['code']]; } - $log = new Logging(); - $log->log("debug", "passed validation, line 45"); - $log->log("debug", check_str($_POST["ivr_menu_uuid"])); - //function to show the list of sound files // moved to functions.php diff --git a/resources/classes/logging.php b/resources/classes/logging.php index 60110e56b2..e8dc6e9f72 100644 --- a/resources/classes/logging.php +++ b/resources/classes/logging.php @@ -84,4 +84,8 @@ class Logging } } -?> +//$log = new Logging(); +//$log->log("debug", "passed validation, ".__line__); +//$log->log("debug", check_str($_POST["ivr_menu_uuid"])); + +?> \ No newline at end of file