From 6c79f4d46a7f3ea42094e33e123001d6fbf0546b Mon Sep 17 00:00:00 2001 From: Ermal Date: Tue, 18 Feb 2014 19:41:20 +0000 Subject: Add ladvd package from Ticket #3456. With modification to bring it to current levels and pfsense urls. --- config/ladvd/status_ladvd.php | 118 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 118 insertions(+) create mode 100644 config/ladvd/status_ladvd.php (limited to 'config/ladvd/status_ladvd.php') diff --git a/config/ladvd/status_ladvd.php b/config/ladvd/status_ladvd.php new file mode 100644 index 00000000..3333145a --- /dev/null +++ b/config/ladvd/status_ladvd.php @@ -0,0 +1,118 @@ +This status page includes the following information:\n"; + echo "\n"; +} + +function execCmds() { + global $commands; + for ($i = 0; isset($commands[$i]); $i++ ) { + doCmdT($commands[$i][0], $commands[$i][1]); + } +} + +/* Define a command, with a title, to be executed later. */ +function defCmdT($title, $command) { + global $commands; + $title = htmlspecialchars($title,ENT_NOQUOTES); + $commands[] = array($title, $command); +} + +function doCmdT($title, $command) { + echo "

\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "
" . $title . "
";		/* no newline after pre */
+
+	$execOutput = "";
+	$execStatus = "";
+	$fd = popen("{$command} 2>&1", "r");
+	while (($line = fgets($fd)) !== FALSE) {
+		echo htmlspecialchars($line, ENT_NOQUOTES);
+	}
+	pclose($fd);
+	echo "
\n"; +} + +?> + + + + + + + + + + + +
+ +
+
+ + + + +
+ +
+ + +
+
+
+
+ + + -- cgit v1.2.3