Location: PHPKode > projects > WeBekci > webekci/template.php
<?php
#######################################################################
# WeBekci - www.owasp.org/index.php/Category:OWASP_WeBekci_Project
#######################################################################
# $Id:
# License: it is a OWASP project
#
# ModSecurity and mod_security are trademarks of Breach Security, Inc.
#
# WeBekci Contributor: Bunyamin DEMIR   bunyamin~owasp.org
#                                       blog.bunyamin.org
#
# WeBekci Mail list                     owasp-webekci~lists.owasp.org
#
# Version:          v1.0
# Created:          15.02.2007
#######################################################################

function menu($select) {

if (empty($select)) {
$select = "home";
}

$html .="<div id=\"menu-left\">
<ul>
<li class=\"".( $select == "home" ? "selected" : "")."\"><a href=\"#\" onClick=\"action(); xajax_InAction('LeftMenu', '', 'home'); xajax_InAction('Home', '', 'home');\">Home</a></li>
<li class=\"".( $select == "general" ? "selected" : "")."\"><a href=\"#\" onClick=\"action(); xajax_InAction('LeftMenu', '', 'general'); xajax_InAction('Configuration', '', 'general');\">Configuration</a></li>
<li class=\"".( $select == "rules" ? "selected" : "")."\"><a href=\"#\" onClick=\"action(); xajax_InAction('LeftMenu', '', 'rules'); xajax_InAction('RuleGenerator', 'rules', '');\">Rules</a></li>
<li class=\"".( $select == "logs" ? "selected" : "")."\"><a href=\"#\" onClick=\"action(); xajax_InAction('LeftMenu', '', 'logs'); xajax_InAction('Logging', '', 'logs');\">Logs</a></li>
<li class=\"".( $select == "saveconf" ? "selected" : "")."\"><a href=\"#\" onClick=\"action(); xajax_InAction('LeftMenu', '', 'saveconf'); xajax_InAction('Saveconf', '', 'saveconf');\">Save Conf File</a></li>
</ul>
</div>";
return $html;
}

function caption($arg){
return "<div class=\"captionbox\" align=center><b>$arg</b></div>";
}
function sponsor() {
$html .="<center>
<br><table width=\"560\" align=left><tr><td width=\"%50\" align=\"center\"><img src=\"images/owasp.jpg\" border=0></center></td>
 <td width=\"%50\" align=\"center\"><img src=\"images/modsecurity.gif\"  border=0></td></tr></table><br>";

 return $html;
}
?>
Return current item: WeBekci