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.
|
||||
//
|
||||
|
||||
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'];
|
||||
|
|
|
@ -30,8 +30,13 @@ if ( !empty($refresh_parent) )
|
|||
opener.location.reload(true);
|
||||
<?php
|
||||
}
|
||||
if ( !$debug )
|
||||
{
|
||||
?>
|
||||
window.close();
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
</script>
|
||||
</head>
|
||||
</html>
|
||||
|
|
Loading…
Reference in New Issue