Debian Codegraph @

contrib/mrtg_php_portal/www/index.php

raw
1 <html>
2
3 <head>
4 <meta http-equiv="Content-Language" content="en-us">
5 <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
6 <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
7 <meta name="ProgId" content="FrontPage.Editor.Document">
8 <title>Mrtg statistics</title>
9 </head>
10
11 <body>
12 <p><u><b>Configuration:</b></u></p>
13 <ul>
14 <li><a href="login.php">Administration (password requiered)</a></li>
15 </ul>
16 <p><u><b>Switch list:</b></u></p>
17 <?
18
19 // Replace this path with the path to the config.inc.php file
20 include ("c:\\mrtg\\conf\\config.inc.php");
21
22 $dir = dir($mrtg_html_dir);
23 echo "<ul>";
24 while($filename=$dir ->read()) {
25 if (eregi("\.(html)$",$filename))
26 echo "<li><a href=".$filename.">".substr($filename, 0, -5)."</a></li>";;
27 }
28 $dir ->close();
29 echo "</ul>";
30 ?>
31
32 </body>
33
34 </html>