Log missing view or request files.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2990 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2009-11-19 08:13:07 +00:00
parent 266e669dde
commit 160c0d4fa2
1 changed files with 6 additions and 0 deletions

View File

@ -112,7 +112,10 @@ if ( isset( $_REQUEST['request'] ) )
foreach ( getSkinIncludes( 'ajax/'.$request.'.php', true, true ) as $includeFile ) foreach ( getSkinIncludes( 'ajax/'.$request.'.php', true, true ) as $includeFile )
{ {
if ( !file_exists( $includeFile ) ) if ( !file_exists( $includeFile ) )
{
error_log( "Request '$request' does not exist" );
die( "Request '$request' does not exist" ); die( "Request '$request' does not exist" );
}
require_once $includeFile; require_once $includeFile;
} }
return; return;
@ -124,7 +127,10 @@ else
foreach ( $includeFiles as $includeFile ) foreach ( $includeFiles as $includeFile )
{ {
if ( !file_exists( $includeFile ) ) if ( !file_exists( $includeFile ) )
{
error_log( "View '$view' does not exist" );
die( "View '$view' does not exist" ); die( "View '$view' does not exist" );
}
require_once $includeFile; require_once $includeFile;
} }
} }