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. // 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'];

View File

@ -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>