From 639885ac9048600c706965612e54bf8891cfbdeb Mon Sep 17 00:00:00 2001 From: stan Date: Wed, 13 Oct 2004 09:38:54 +0000 Subject: [PATCH] Added 'debug' switch. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1146 e3e1d417-86f3-4887-817a-d78f3d33393f --- web/zm.php | 14 +++++++++----- web/zm_html_view_none.php | 5 +++++ 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/web/zm.php b/web/zm.php index 8a92d26b5..be3a66c9d 100644 --- a/web/zm.php +++ b/web/zm.php @@ -18,13 +18,17 @@ // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // -import_request_variables( "GPC" ); - -// Use these for debugging, though not both at once! -//phpinfo( INFO_VARIABLES ); -//error_reporting( E_ALL ); +import_request_variables( "EGPCS" ); error_reporting (E_ALL ^ E_NOTICE); +$debug = false; +if ( $debug ) +{ + // Use these for debugging, though not both at once! + phpinfo( INFO_VARIABLES ); + //error_reporting( E_ALL ); +} + if ( !isset($PHP_SELF) ) { $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; diff --git a/web/zm_html_view_none.php b/web/zm_html_view_none.php index 03bf4a950..faa149bf6 100644 --- a/web/zm_html_view_none.php +++ b/web/zm_html_view_none.php @@ -30,8 +30,13 @@ if ( !empty($refresh_parent) ) opener.location.reload(true); window.close(); +