Location: PHPKode > projects > logViewSQL > apache/navlist.php
<?php
/* 
 * This is a php frontend for mod_log_sql. It interfaces
 * with the table structure as defined in a MySql database and has been
 * tested only with version 1.16 of mod_log_sql.
 *
 * contact hide@address.com
 *
 */
?>
<table width="100%" border=0 cellpadding=1 cellspacing=0>
<tr><td width=10>&nbsp;</td>
	<td valign=top class=navMenu><a href="index.php" class=navMenu>Main</a>
		<?php if($dbs){print ' :: <a href="apache.php?dbs='.$dbs.'" class=navMenu>'.$dbs.'</a>';}
		if($remoteHost){print ' :: <a href="viewhost.php?dbs='.$dbs.'&remoteHost='.$remoteHost.'" class=navMenu>host('.$remoteHost.')</a>';}
		if($uri){print ' :: <a href="view-request.php?dbs='.$dbs.'&uri='.$uri.'" class=navMenu>uri('.getShortString(base64_decode($uri)).')</a>';}
		if($entity){print ' :: search('.$field.' - '.$entity.')';}
		if(preg_match("/view-ip\.php/",$PHP_SELF)){
			print ' :: view all hosts';
		}
		if(!preg_match("/index\.php/",$PHP_SELF)){
			if(!is_null($offset) && $offset != "all"){
				print ' :: page '.($offset+1);
			} else if($offset == "all"){print ' :: all results';}
			else {print ' :: page 1';}
		}

		?>
	</td>
	<td align=right valign=top>
<?php 
if(!preg_match("/index\.php/",$PHP_SELF)){
	print '<a href="search.php?dbs='.$dbs.'">Search</a> | <a href="summary.php?dbs='.$dbs.'">Summary</a>';
}
?></td>
	<td align=right width=150>
	<?php 
		if(preg_match("/summary\.php/", $PHP_SELF)){
			print '<form method=POST action="summary.php">';
		} else {
			print '<form method=POST action="apache.php">';
		}
	?>
	<select name="dbs" onchange="this.form.submit()">
	<?php

        	while(list($key, $value)=each($validTables)){

                	if($value==$dbs){
                        	print "<option value=$value selected=true>";
	                } else { print "<option value=$value>";}
        	        print "$value</option>";
	        }

        	reset($validTables);
	?>
</select><input type=image src="resources/images/go.gif"  value="Go" name="go" border=0 /></form>
	</td>
</table>
Return current item: logViewSQL