Commit:    7aa7b8815769850d0a4ed2cac4ee2dde5083731e
Author:    Hannes Magnusson <[email protected]>         Mon, 27 Apr 2015 23:03:00 
+0000
Parents:   04e4f3321dfe743f1a2cddc67100a9c61771fe0b
Branches:  master

Link:       
http://git.php.net/?p=web/master.git;a=commitdiff;h=7aa7b8815769850d0a4ed2cac4ee2dde5083731e

Log:
If its not active, its disabled

Changed paths:
  M  network/status/index.php


Diff:
diff --git a/network/status/index.php b/network/status/index.php
index 121630c..9dac744 100644
--- a/network/status/index.php
+++ b/network/status/index.php
@@ -45,8 +45,6 @@ function page_mirror_list($moreinfo = false)
         SELECT mirrors.*,
         UNIX_TIMESTAMP(lastupdated) AS ulastupdated,
         UNIX_TIMESTAMP(lastchecked) AS ulastchecked,
-        (DATE_SUB(FROM_UNIXTIME($checktime), INTERVAL 3 DAY) < 
mirrors.lastchecked) AS up,
-        (DATE_SUB(FROM_UNIXTIME($checktime), INTERVAL 7 DAY) < 
mirrors.lastupdated) AS current,
         country.name as countryname
         FROM mirrors LEFT JOIN country ON mirrors.cc = country.id
         ORDER BY country.name, hostname"
@@ -102,14 +100,7 @@ function page_mirror_list($moreinfo = false)
         
             // Not special, but active
             else {
-                // Not up to date or not current
-                if (!$row['up'] || !$row['current']) {
-                   $siteimage = 'pulsing_red';
-                }
-                // Up to date and current
-                else {
-                    $siteimage = 'green';
-                }
+                   $siteimage = 'green';
             }
         }
         // Not active mirror site (maybe deactivated by the


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to