From 160c0d4fa23016b5fda8fd30a2a799572c51fa5c Mon Sep 17 00:00:00 2001 From: stan Date: Thu, 19 Nov 2009 08:13:07 +0000 Subject: [PATCH] Log missing view or request files. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2990 e3e1d417-86f3-4887-817a-d78f3d33393f --- web/index.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web/index.php b/web/index.php index 0808a8f8d..50350349a 100644 --- a/web/index.php +++ b/web/index.php @@ -112,7 +112,10 @@ if ( isset( $_REQUEST['request'] ) ) foreach ( getSkinIncludes( 'ajax/'.$request.'.php', true, true ) as $includeFile ) { if ( !file_exists( $includeFile ) ) + { + error_log( "Request '$request' does not exist" ); die( "Request '$request' does not exist" ); + } require_once $includeFile; } return; @@ -124,7 +127,10 @@ else foreach ( $includeFiles as $includeFile ) { if ( !file_exists( $includeFile ) ) + { + error_log( "View '$view' does not exist" ); die( "View '$view' does not exist" ); + } require_once $includeFile; } }