From 8b769240b4ed2991a58702c86706814079d2bc08 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Wed, 8 Jun 2016 14:27:16 -0400 Subject: Improve readability --- src/usr/local/www/pkg_mgr_install.php | 70 +++++++++++++++++++---------------- 1 file changed, 39 insertions(+), 31 deletions(-) diff --git a/src/usr/local/www/pkg_mgr_install.php b/src/usr/local/www/pkg_mgr_install.php index e022146..48672ac 100644 --- a/src/usr/local/www/pkg_mgr_install.php +++ b/src/usr/local/www/pkg_mgr_install.php @@ -10,29 +10,29 @@ * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. + * this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in - * the documentation and/or other materials provided with the - * distribution. + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. * * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgment: - * "This product includes software developed by the pfSense Project - * for use in the pfSense software distribution. (http://www.pfsense.org/). + * must display the following acknowledgment: + * "This product includes software developed by the pfSense Project + * for use in the pfSense software distribution. (http://www.pfsense.org/). * * 4. The names "pfSense" and "pfSense Project" must not be used to - * endorse or promote products derived from this software without - * prior written permission. For written permission, please contact - * coreteam@pfsense.org. + * endorse or promote products derived from this software without + * prior written permission. For written permission, please contact + * coreteam@pfsense.org. * * 5. Products derived from this software may not be called "pfSense" - * nor may "pfSense" appear in their names without prior written - * permission of the Electric Sheep Fencing, LLC. + * nor may "pfSense" appear in their names without prior written + * permission of the Electric Sheep Fencing, LLC. * * 6. Redistributions of any form whatsoever must retain the following - * acknowledgment: + * acknowledgment: * * "This product includes software developed by the pfSense Project * for use in the pfSense software distribution (http://www.pfsense.org/). @@ -177,7 +177,7 @@ if ($_REQUEST['ajax']) { if ($JSONfile != FALSE) { while (($logline = fgets($JSONfile)) !== false) { - if (!feof($JSONfile) && (strpos($logline, 'INFO_PROGRESS_TICK') !== false)) { + if (!feof($JSONfile) && (strpos($logline, 'INFO_PROGRESS_TICK') !== false)) { if (strpos($logline, '}}') !== false) { $progress = $logline; } @@ -282,7 +282,9 @@ if ($input_errors) { ?>
-", ";", "&", "'", '"', '.', '/'), "", htmlspecialchars_decode($_GET['id'], ENT_QUOTES | ENT_HTML401)); } else if (!empty($pkgmode) && !empty($_GET['pkg'])) { @@ -306,23 +308,23 @@ if ($input_errors) {

@@ -330,7 +332,7 @@ if ($input_errors) {
+ endif; +?> @@ -430,20 +432,26 @@ if (!empty($_POST['id']) || $pkgmode == "reinstallall"):
-

-

- +
- +
", next_log_line: "0" - } + } }); // Deal with the results of the above ajax call @@ -688,7 +696,7 @@ var time = 0; function checkonline() { $.ajax({ - url : "/index.php", // or other resource + url : "/index.php", // or other resource type : "HEAD" }) .done(function() { -- cgit v1.1