⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index.php

📁 phpbased firewall for linux.
💻 PHP
字号:
<? 
include("config.inc.php");
include("lib/xmlParser.php");
require("lib/function.php");
global $stack;
global $theme;
global $XMLfeedback;
$titleOfPage="Valkyrja Firewall Admin Panel ".$CONF["version"];

if ($_REQUEST["modules"]!="") {
	foreach ($stack[0]["children"] as $chiaveComponenti=>$valoreComponenti){
		$nomemodulo=$stack[0]["children"][$chiaveComponenti]["children"][0]["cdata"];
		if ($_REQUEST["modules"]==$nomemodulo) {
			require("modules/".$nomemodulo."/".$nomemodulo.".php");
			exit;
		}
	}
}//modules cicle 
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title><?=$titleOfPage?></title>
<link rel="stylesheet" type="text/css" href="templates/<?=$theme?>/style.css" />
</head>

<body>
<table width="100%" border="0" align="center">
  <tr>
    <td class="thfirst"><div style="cursor:pointer;" onClick="window.location.href='http://valkyrja.sourceforge.net'"><h1><?=$CONF["welcomeString"]?></h1></div></td>
  </tr>
</table>
<br/>
<? 	if (!empty($XMLfeedback)) {
		echo "<div align=\"center\">";
		echo "<div class=\"info\">\n";
		echo "<img src=\"images/warning.png\" alt=\"info\" border=\"0\" align=\"absmiddle\" />";
		echo "<b>Valkyrja Error</b><br/>".$XMLfeedback."<br/><br/>Please verify your modules.xml</div></div>\n";
		}
	else { ?>
<table width="600" border="0" align="center" class="tableBorder">
<tr class="lineBest"><th>Installed Modules</th></tr>
  <tr>
    <td>
	<table border="0" width="90%" align="center">
	<tr>
	<?
	$dimension=round(100/getNumber());
	$n=0;
	foreach ($stack[0]["children"] as $chiaveComponenti=>$valoreComponenti){
		if (($n % $CONF["iconPerLine"]) == 0) { echo "\n</tr>\n<tr>\n";}
		$nomemodulo=$stack[0]["children"][$chiaveComponenti]["children"][0]["cdata"];
		$descrizione=$stack[0]["children"][$chiaveComponenti]["children"][1]["cdata"];
		$icona=$stack[0]["children"][$chiaveComponenti]["children"][2]["cdata"];
		echo "<td width=\"".$dimension."%\" valign=\"top\" align=\"center\">";
		echo "<a href=\"index.php?modules=".$nomemodulo."\">";
		echo "<img src=\"modules/$nomemodulo/$icona\" border=\"0\" class=\"imageIndex\" onMouseOver=\"this.className='imageIndexHover'\" onMouseOut=\"this.className='imageIndex'\" width=\"".$CONF["iconWidth"]."\" height=\"".$CONF["iconHeight"]."\"/></a><br />\n";
		echo "<a href=\"index.php?modules=".$nomemodulo."\" class=\"linkIndex\">";
		echo ucfirst($nomemodulo)."</a><br />\n";
		echo "<font size=\"1\">".$descrizione."</font>";
		echo "</td>";
		//if (($n % 4) == 0) { echo "\n</tr>\n<tr>\n";}
		$n++;
	}
	?>
	</tr>
	</table>
	</td>
  </tr>
</table>
<? }//else ?>
<? author(); ?>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -