cvs: php-master-web /manage mirrors.php
| From: | Gabor Hojtsy | Date: | Sat, 21 Dec 2002 16:15:57 +0000 |
| Subject: | cvs: php-master-web /manage mirrors.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-14407@lists.php.net to get a copy of this message | ||
goba Sat Dec 21 11:15:57 2002 EDT
Modified files:
/php-master-web/manage mirrors.php
Log:
- A few layout specific changes (Shorter column name,
only strip off real .php.net address parts to
make output more readable, put mirror info table on
top of the screen and put newlines before warnings)
- Make alternate colors work again (fix variable name)
Index: php-master-web/manage/mirrors.php
diff -u php-master-web/manage/mirrors.php:1.16 php-master-web/manage/mirrors.php:1.17
--- php-master-web/manage/mirrors.php:1.16 Sat Dec 21 09:11:18 2002
+++ php-master-web/manage/mirrors.php Sat Dec 21 11:15:57 2002
@@ -157,7 +157,7 @@
<td colspan="2" align="center"><input type="submit"
value="<?php echo $id ? "Change" : "Add"; ?>" />
</tr>
</table>
- </td><td>
+ </td><td valign="top">
<?php if (intval($id) !== 0) { ?>
<table>
<tr>
@@ -173,11 +173,11 @@
</tr>
<tr>
<th>Last mirror check time:</th>
- <td><?php echo $row['lastchecked']; if (!$row['up']) { echo
'<i>does not seem to be up!</i>'; } ?></td>
+ <td><?php echo $row['lastchecked']; if (!$row['up']) { echo
'<br /><i>does not seem to be up!</i>'; } ?></td>
</tr>
<tr>
<th>Last update time:</th>
- <td><?php echo $row['lastupdated']; if (!$row['current']) { echo
'<i>does not seem to be current!</i>'; } ?></td>
+ <td><?php echo $row['lastupdated']; if (!$row['current']) { echo
'<i><br />does not seem to be current!</i>'; } ?></td>
</tr>
<tr>
<th>PHP version used on mirror site:</th>
@@ -208,7 +208,7 @@
<table border="0" cellspacing="1" width="100%">
<tr bgcolor="#aaaaaa">
<td></td>
- <th>Hostname</th>
+ <th>Name</th>
<th>Maintainer</th>
<th>Provider</th>
<th>Stats</th>
@@ -252,7 +252,7 @@
<a href="<?php echo "$PHP_SELF?id=$row[id]";?>">edit</a>
</td>
<td>
- <a href="<?php echo "http://",
hsc($row['hostname']); ?>"><?php echo hsc(str_replace(".php.net",
"", $row['hostname'])); ?></a>
+ <a href="<?php echo "http://",
hsc($row['hostname']); ?>"><?php echo
hsc(preg_replace("!\\.php\\.net$!", "", $row['hostname']));
?></a>
</td>
<td>
<?php echo hsc($row['maintainer']); ?>
@@ -272,7 +272,7 @@
</tr>
<?php
// Switch color to the alternate one
- $color = ($color == 'd' ? 'e' : 'd');
+ $c = ($c == 'd' ? 'e' : 'd');
}
?>
</table>