update.php

来自「mrtg 监控,请认真阅读您的文件包然后写出其具体功能」· PHP 代码 · 共 50 行

PHP
50
字号
<html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><meta name="GENERATOR" content="Microsoft FrontPage 4.0"><meta name="ProgId" content="FrontPage.Editor.Document"><title>MRTG remove switch:</title></head><body><p><b><u>MRTG update switch stats:</u></b></p><FORM ACTION=update.php METHOD=POST>  <table border="0" width="100%">    <tr>      <td width="12%">Switch:</td>      <td width="88%"><select size="1" name="switch">	<?	include ("e:\\mrtg\\conf\\config.inc.php");	$dir = dir($mrtg_config_dir);	// echo "<ul>";	while($filename=$dir->read()) {	if (eregi("\.(cfg)$",$filename))		echo "<option value=".substr($filename, 0, -4).">".substr($filename, 0, -4)."</option>";	}	$dir->close();	//echo "</ul>";	?>       </select></td>    </tr>  </table>  <br>  <input type="submit" value="Update" name="B1"></form><hr></body></html><?// Include config file with path variable, etc...include ("e:\\mrtg\\conf\\config.inc.php");if($REQUEST_METHOD == "POST"){ 	system ($perl_exe." ".$mrtg_exe." ".$mrtg_config_dir.$switch.".cfg");	echo "Mrtg stats for <b><a href=".$switch.".html".">".$switch."</a></b> updated...<br>";}echo "<br><a href=./>Back to index</a>";?>

⌨️ 快捷键说明

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