Location: PHPKode > projects > Netautor Professional > netautor/napro4/admin/debugger/session.php
<?php
/* +----------------------------------------------------------------------+
   | Netautor Professional Application Server                             |
   +----------------------------------------------------------------------+
   | Copyright (C) 1998-2005 digiconcept GmbH. <www.digiconcept.net>      |
   +----------------------------------------------------------------------+
   | This file is subject to license, that is bundled with this package   |
   | in the file LICENSE.TXT, and is available at through the             |
   | world-wide-web at http://www.netautor.com/license/                   |
   |                                                                      |
   | If you did not receive a copy of the license and are unable to       |
   | obtain it through the world-wide-web, please send a note to          |
   | hide@address.com so we can mail you a copy.                      |
   +----------------------------------------------------------------------+
   | Authors: Stefan Rottensteiner <hide@address.com>    |
   |          Marek  Kadziela      <hide@address.com>	      |
   |          Gregor Wollner                                              |
   |          Christian Unger                                             |
   |          Helli  Kleinhans  									      |
   +----------------------------------------------------------------------+*/

	/**
	 * A very simple interface for build-in netautor debugger.
	 * Values will only be valid within the same session!
	 * So far, this may be a good place to manipulate ALL the current session values .. Have to think about it.
	 *
	 * @version	$Revision: 1.8 $
	 * @author	Stefan Rottensteiner
	 */

 	require_once('../../include/init.inc'); 
	if(!$USER->check_feature('Admin') && $GLOBALS['USER']->ID > 100  )
	{
		$USER->login_call();
	}

?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
		<title>/digiconcept/netautor/debugger</title>
		<meta http-equiv="Content-Style-Type" content="text/css" />
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
		<meta name="language" content="<?php echo $GLOBALS['LOCALE']->locale; ?>" />
		<meta http-equiv="pragma" 			content="no-cache"> 
		<meta http-equiv="cache-control" 	content="no-cache">
		<meta name		="robots" 			content="noindex">
		<link href="../../include/netautor.css" rel="stylesheet" type="text/css">		
</head>
<body class="standard" >
<?php
	if (empty($_REQUEST['action']))
	{
		$_REQUEST['opt_debug_level'] = $_SESSION['NA_PRO_CACHE']['NAPRO_DEBUGGER']['debug_level'];
	}
	else
	{
		$_SESSION['NA_PRO_CACHE']['NAPRO_DEBUGGER']['debug_level'] = $_REQUEST['opt_debug_level'];
	}
?>
<form action="session.php" style="margin-top: 0px; margin-bottom: 0px;">
	<table>
		<tr>
			<td class="head">
				Debug level
			</td>
		</tr>
		<tr>
			<td class="text">
				<input type="radio" name="opt_debug_level" id="opt_debug_level" value=""  <?php if (empty($_REQUEST['opt_debug_level']) && $_REQUEST['opt_debug_level'] != '0') echo 'checked'; ?> > None<br>
				<input type="radio" name="opt_debug_level" id="opt_debug_level" value="0" <?php if ($_REQUEST['opt_debug_level'] == '0') echo 'checked'; ?> > Runtime only<br>
				<input type="radio" name="opt_debug_level" id="opt_debug_level" value="1" <?php if ($_REQUEST['opt_debug_level'] == 1 ) echo 'checked'; ?>> Level 1<br>
				<input type="radio" name="opt_debug_level" id="opt_debug_level" value="2" <?php if ($_REQUEST['opt_debug_level'] == 2 ) echo 'checked'; ?>> Level 2<br>
			</td>
		</tr>
		<tr>
			<td align="center" >
				<input class="create" type="submit" value="Set options" name="action" >
			</td>
		</tr>
	
	</table>
</form>
</body>
</html>
Return current item: Netautor Professional