Added 'debug' switch.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1146 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
c84dae459c
commit
639885ac90
14
web/zm.php
14
web/zm.php
|
@ -18,13 +18,17 @@
|
||||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
//
|
//
|
||||||
|
|
||||||
import_request_variables( "GPC" );
|
import_request_variables( "EGPCS" );
|
||||||
|
|
||||||
// Use these for debugging, though not both at once!
|
|
||||||
//phpinfo( INFO_VARIABLES );
|
|
||||||
//error_reporting( E_ALL );
|
|
||||||
error_reporting (E_ALL ^ E_NOTICE);
|
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) )
|
if ( !isset($PHP_SELF) )
|
||||||
{
|
{
|
||||||
$PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];
|
$PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];
|
||||||
|
|
|
@ -30,8 +30,13 @@ if ( !empty($refresh_parent) )
|
||||||
opener.location.reload(true);
|
opener.location.reload(true);
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
if ( !$debug )
|
||||||
|
{
|
||||||
?>
|
?>
|
||||||
window.close();
|
window.close();
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue