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

From: Date: Sat, 21 Dec 2002 14:04:23 +0000
Subject: cvs: php-master-web /fetch mirrors.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-14381@lists.php.net to get a copy of this message
goba Sat Dec 21 09:04:23 2002 EDT Modified files: /php-master-web/fetch mirrors.php Log: James says we should not forget download mirrors Index: php-master-web/fetch/mirrors.php diff -u php-master-web/fetch/mirrors.php:1.10 php-master-web/fetch/mirrors.php:1.11 --- php-master-web/fetch/mirrors.php:1.10 Sat Dec 21 07:22:32 2002 +++ php-master-web/fetch/mirrors.php Sat Dec 21 09:04:23 2002 @@ -14,6 +14,7 @@ */ // Mirror type constants +define('MIRROR_DOWNLOAD', 0); define('MIRROR_STANDARD', 1); define('MIRROR_SPECIAL', 2); @@ -60,7 +61,11 @@ } // Rewrite the mirrortype to use defined constants - $row["mirrortype"] = (($row["mirrortype"] == 1) ? 'MIRROR_STANDARD' : 'MIRROR_SPECIAL'); + switch ($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; + } // Rewrirte has_search and has_stats to be booleans $row["has_search"] = ($row["has_search"] ? 'TRUE' : 'FALSE');

« previous php.mirrors (#14381) next »