cvs: php-master-web /fetch mirrors.php

From: Date: Thu, 01 May 2003 16:13:05 +0000
Subject: cvs: php-master-web /fetch mirrors.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-17190@lists.php.net to get a copy of this message
goba Thu May 1 12:13:05 2003 EDT Modified files: /php-master-web/fetch mirrors.php Log: Ups, those constants were not defined, only printed out. Use the numbers instead + a small ws 'good looking' fix Index: php-master-web/fetch/mirrors.php diff -u php-master-web/fetch/mirrors.php:1.20 php-master-web/fetch/mirrors.php:1.21 --- php-master-web/fetch/mirrors.php:1.20 Thu May 1 08:02:45 2003 +++ php-master-web/fetch/mirrors.php Thu May 1 12:13:05 2003 @@ -72,9 +72,9 @@ // Rewrite the mirrortype to use defined constants switch (intval($row['mirrortype'])) { - case MIRROR_DOWNLOAD : $row['mirrortype'] = 'MIRROR_DOWNLOAD'; break; - case MIRROR_STANDARD : $row['mirrortype'] = 'MIRROR_STANDARD'; break; - case MIRROR_SPECIAL : $row['mirrortype'] = 'MIRROR_SPECIAL'; break; + case 0 : $row['mirrortype'] = 'MIRROR_DOWNLOAD'; break; + case 1 : $row['mirrortype'] = 'MIRROR_STANDARD'; break; + case 2 : $row['mirrortype'] = 'MIRROR_SPECIAL'; break; } // Rewrirte has_search and has_stats to be booleans @@ -86,8 +86,8 @@ // Provide status information for mirrors // computed from current mirror details - if (!$row["active"]) { $status = 'MIRROR_NOTACTIVE'; } - elseif (!$row["up"]) { $status = 'MIRROR_DOESNOTWORK'; } + if (!$row["active"]) { $status = 'MIRROR_NOTACTIVE'; } + elseif (!$row["up"]) { $status = 'MIRROR_DOESNOTWORK'; } elseif (!$row["current"]) { $status = 'MIRROR_OUTDATED'; } // Print out the array element for this mirror

« previous php.mirrors (#17190) next »