From e461b95c6777515cdd0387564b4b244ea1a3527c Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 22 May 2019 14:11:05 +0200 Subject: remove spaces --- index.php | 14 +++++++------- mirrors.php | 34 +++++++++++++++++----------------- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/index.php b/index.php index 7dc7f7f..be3c6c9 100644 --- a/index.php +++ b/index.php @@ -270,19 +270,19 @@ foreach($package_updates as $pkg) { /* TODO: do we want that?

People

diff --git a/mirrors.php b/mirrors.php index 7758846..5bbace0 100644 --- a/mirrors.php +++ b/mirrors.php @@ -26,7 +26,7 @@ array_splice( if (count($uri_parts) == 0) { // index $cutoff = 3600; - + $sorts = array( "server" => array( "title" => "server", @@ -49,7 +49,7 @@ if (count($uri_parts) == 0) { // index "mysql" => "`protocols`" ) ); - + $query = "SELECT " . "GROUP_CONCAT(`l_ms`.`protocol`) AS `protocols`," . @@ -72,28 +72,28 @@ if (count($uri_parts) == 0) { // index " AND `ls`.`start`=`l_ms`.`start`" . " GROUP BY `url`" . " ORDER BY "; - + if (array_key_exists("sort", $_GET)) { if (isset($sorts[$_GET["sort"]]["mysql"])) $query .= $sorts[$_GET["sort"]]["mysql"] . ","; elseif (isset($sorts[substr($_GET["sort"],1)]["mysql"])) $query .= $sorts[substr($_GET["sort"],1)]["mysql"] . " DESC,"; } - + $query .= "`url`"; - + $result = mysql_run_query( $query ); - + $last_check = 0; $max_count = 0; - + while($row = $result->fetch_assoc()) $rows[] = $row; - + print_header("Mirror Overview"); - + ?>

Mirror Overview

@@ -119,7 +119,7 @@ if (count($uri_parts) == 0) { // index \n"; @@ -146,13 +146,13 @@ if (count($uri_parts) == 0) { // index else $oddity = "odd"; } - + ?>
UNIX_TIMESTAMP(NOW())-" . $cutoff . " GROUP BY `l_ms`.`id`" ); - + $last_check = 0; $max_count = 0; - + while($row = $result->fetch_assoc()) { foreach (array( "start", @@ -222,7 +222,7 @@ if ($uri_parts[0] == 'status') { $last_check = max ($row["start"], $last_check); $max_count = max ($row["count"], $max_count); } - + $content = array( "cutoff" => $cutoff, "check_frequency" => $cutoff/$max_count, @@ -231,7 +231,7 @@ if ($uri_parts[0] == 'status') { // "version" => 3, "urls" => $urls ); - + if (count($uri_parts) == 1) { // human readable } // human readable -- cgit v1.2.3-70-g09d2