Added 'debug' switch.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1146 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2004-10-13 09:38:54 +00:00
parent c84dae459c
commit 639885ac90
2 changed files with 14 additions and 5 deletions

View File

@ -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'];

View File

@ -30,8 +30,13 @@ if ( !empty($refresh_parent) )
opener.location.reload(true);
<?php
}
if ( !$debug )
{
?>
window.close();
<?php
}
?>
</script>
</head>
</html>