Merge branch 'master' of github.com:ZoneMinder/ZoneMinder
This commit is contained in:
commit
8f88e2a6c0
|
@ -28,12 +28,13 @@ foreach ( getSkinIncludes( 'includes/functions.php' ) as $includeFile )
|
||||||
require_once $includeFile;
|
require_once $includeFile;
|
||||||
|
|
||||||
if ( empty($view) )
|
if ( empty($view) )
|
||||||
$view = 'console';
|
$view = 'console';
|
||||||
|
|
||||||
if ( !isset($user) && ZM_OPT_USE_AUTH )
|
if ( !isset($user) && ZM_OPT_USE_AUTH && ZM_AUTH_TYPE == "remote" && !empty( $_SERVER['REMOTE_USER']) )
|
||||||
{
|
{
|
||||||
echo "Invalid Login";
|
$view = "postlogin";
|
||||||
exit;
|
$action = "login";
|
||||||
|
$_REQUEST['username'] = $_SERVER['REMOTE_USER'];
|
||||||
}
|
}
|
||||||
/* Get version info from client */
|
/* Get version info from client */
|
||||||
updateClientVer();
|
updateClientVer();
|
||||||
|
|
Loading…
Reference in New Issue