From 1c0456d991c3ccf9114b4cfe862ac09024abbce2 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Tue, 23 Jul 2013 13:28:50 -0300 Subject: Fix indent and whitespaces, also remove an extra --- config/openbgpd/openbgpd_status.php | 103 ++++++++++++++++++------------------ 1 file changed, 51 insertions(+), 52 deletions(-) (limited to 'config') diff --git a/config/openbgpd/openbgpd_status.php b/config/openbgpd/openbgpd_status.php index 6b27b4de..20de85bf 100644 --- a/config/openbgpd/openbgpd_status.php +++ b/config/openbgpd/openbgpd_status.php @@ -3,7 +3,7 @@ /* openbgpd_status.php part of pfSense (http://www.pfsense.com/) - Copyright (C) 2007 Scott Ullrich (sullrich@gmail.com) + Copyright (C) 2007 Scott Ullrich (sullrich@gmail.com) All rights reserved. Redistribution and use in source and binary forms, with or without @@ -38,11 +38,11 @@ else include("head.inc"); function doCmdT($title, $command) { - echo "

\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; + echo "
" . $title . "
";		/* no newline after pre */
+	echo "

\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; - echo "
" . $title . "
";		/* no newline after pre */
 
 	if ($command == "dumpconfigxml") {
 		$fd = @fopen("/conf/config.xml", "r");
@@ -70,46 +70,46 @@ function doCmdT($title, $command) {
 		}
 		pclose($fd);
 	}
-    echo "
\n"; + echo "

\n"; } /* Execute a command, giving it a title which is the same as the command. */ function doCmd($command) { - doCmdT($command,$command); + doCmdT($command,$command); } /* 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); + global $commands; + $title = htmlspecialchars($title,ENT_NOQUOTES); + $commands[] = array($title, $command); } /* Define a command, with a title which is the same as the command, * to be executed later. */ function defCmd($command) { - defCmdT($command,$command); + defCmdT($command,$command); } /* List all of the commands as an index. */ function listCmds() { - global $commands; - echo "

This status page includes the following information:\n"; - echo "

\n"; + global $commands; + echo "

This status page includes the following information:\n"; + echo "

\n"; } /* Execute all of the commands which were defined by a call to defCmd. */ function execCmds() { - global $commands; - for ($i = 0; isset($commands[$i]); $i++ ) { - doCmdT($commands[$i][0], $commands[$i][1]); - } + global $commands; + for ($i = 0; isset($commands[$i]); $i++ ) { + doCmdT($commands[$i][0], $commands[$i][1]); + } } ?> @@ -136,37 +136,36 @@ function execCmds() { ?> - - - - - + + +
-
-
-
- - + +
+
+
+ + -
- - - -
- -
- - +
+ + + +
+ + + -- cgit v1.2.3