Location: PHPKode > scripts > qAdmin > jonathan-fielding-qAdmin-04ccc6a/includes/debug_panel.inc.php
<div class="debug">
	<div class="content">
		<span class="title">Debug Panel</span>
		<?php
		
			$database_connection->new_connection();
			
			if ($database_connection->check_connection()) {
				echo "&nbsp;&nbsp;&nbsp;&nbsp;Database Connection: Connected";
			} else {
				echo "&nbsp;&nbsp;&nbsp;&nbsp;Database Connection: " . $database_connection->error_message;
			}
			
			if (isset($_SESSION['username'])){
				$validuser = $UserAuth->validateUser($_SESSION['username'], $_SESSION['password']);
			}
			else{
				$validuser = false;
			}
			
			if ($validuser) {
				echo "&nbsp;&nbsp;&nbsp;&nbsp;Auth status: Valid user";
				echo "&nbsp;&nbsp;&nbsp;&nbsp;Auth level: " . $UserAuth->getAuthLevel($_SESSION['username']);
			} else {
				echo "&nbsp;&nbsp;&nbsp;&nbsp;Auth status: Invalid user";
			}
		
		?>
	</div>
</div>
Return current item: qAdmin