cvs: php-master-web /manage mirrors.php
| From: | Gabor Hojtsy | Date: | Thu, 16 Jan 2003 15:10:40 +0000 |
| Subject: | cvs: php-master-web /manage mirrors.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-15056@lists.php.net to get a copy of this message | ||
goba Thu Jan 16 10:10:40 2003 EDT
Modified files:
/php-master-web/manage mirrors.php
Log:
Provide direct information on search compatibility in table
Index: php-master-web/manage/mirrors.php
diff -u php-master-web/manage/mirrors.php:1.36 php-master-web/manage/mirrors.php:1.37
--- php-master-web/manage/mirrors.php:1.36 Sat Jan 11 12:01:55 2003
+++ php-master-web/manage/mirrors.php Thu Jan 16 10:10:40 2003
@@ -284,6 +284,14 @@
$sitecolor = "#ff{$c}{$c}{$c}{$c}";
}
+ // See what needs to be put into the search display cell
+ $srccell = ' ';
+ if ($row['has_search'] == "1") { $srccell = 'new'; }
+ elseif ($row['has_search'] == "2") { $srccell = 'old'; }
+ if ($srccell != ' ') {
+ $srccell = "<a href=\"http://$row[hostname]/search.php\">$srccell</a>";
+ }
+
?>
<tr bgcolor="<?php echo $sitecolor; ?>">
<td align="center">
@@ -302,7 +310,7 @@
<?php echo $row['has_stats'] ? "<a href=\"http://$row[hostname]/stats/\">go</a>"
: " "; ?>
</td>
<td align="center">
- <?php echo $row['has_search'] ? "<a href=\"http://$row[hostname]/search.php\">go</a>"
: " "; ?>
+ <?php echo $srccell; ?>
</td>
<td align="center">
<?php echo ($row['mirrortype'] == 1) ? "<a
href=\"$PHP_SELF?mode=delete&hostname=$row[hostname]&id=$row[id]\">delete</a>"
: " "; ?>