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"; } ?>