cvs: phpweb /admin mirrors.php
| From: | Hojtsy Gabor | Date: | Thu, 20 Sep 2001 18:13:01 +0000 |
| Subject: | cvs: phpweb /admin mirrors.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-6488@lists.php.net to get a copy of this message | ||
goba Thu Sep 20 14:13:01 2001 EDT
Modified files:
/phpweb/admin mirrors.php
Log:
Visual enhancements in the editing form, fixing link bug in
provider URL printout, adding notice to add http:// to the
provider URL.
Index: phpweb/admin/mirrors.php
diff -u phpweb/admin/mirrors.php:1.6 phpweb/admin/mirrors.php:1.7
--- phpweb/admin/mirrors.php:1.6 Wed Sep 19 13:55:48 2001
+++ phpweb/admin/mirrors.php Thu Sep 20 14:13:01 2001
@@ -73,7 +73,7 @@
<input type="hidden" name="id" value="<?php echo
$row[id];?>" />
<tr>
<th align="right">Hostname:</th>
- <td><input type="text" name="hostname" value="<?php echo
htmlspecialchars($row[hostname]);?>" size="10" maxlength="40"
/></td>
+ <td><input type="text" name="hostname" value="<?php echo
htmlspecialchars($row[hostname]);?>" size="40" maxlength="40"
/></td>
</tr>
<tr>
<th align="right">Active?</th>
@@ -85,19 +85,19 @@
</tr>
<tr>
<th align="right">Cname:</th>
- <td><input type="text" name="cname" value="<?php echo
htmlspecialchars($row[cname]);?>" size="10" maxlength="80"
/></td>
+ <td><input type="text" name="cname" value="<?php echo
htmlspecialchars($row[cname]);?>" size="40" maxlength="80"
/></td>
</tr>
<tr>
<th align="right">Maintainer:</th>
- <td><input type="text" name="maintainer" value="<?php echo
htmlspecialchars($row[maintainer]);?>" size="10" maxlength="255"
/></td>
+ <td><input type="text" name="maintainer" value="<?php echo
htmlspecialchars($row[maintainer]);?>" size="40" maxlength="255"
/></td>
</tr>
<tr>
<th align="right">Provider:</th>
- <td><input type="text" name="providername" value="<?php echo
htmlspecialchars($row[providername]);?>" size="10" maxlength="255"
/></td>
+ <td><input type="text" name="providername" value="<?php echo
htmlspecialchars($row[providername]);?>" size="40" maxlength="255"
/></td>
</tr>
<tr>
- <th align="right">Provider URL:</th>
- <td><input type="text" name="providerurl" value="<?php echo
htmlspecialchars($row[providerurl]);?>" size="10" maxlength="255"
/></td>
+ <th align="right">Provider URL (with http://):</th>
+ <td><input type="text" name="providerurl" value="<?php echo
htmlspecialchars($row[providerurl]);?>" size="40" maxlength="255"
/></td>
</tr>
<tr>
<th align="right">Country:</th>
@@ -142,7 +142,7 @@
<td align="center"><a href="<?php echo
"$PHP_SELF?id=$row[id]";?>"><?php echo
make_image('small_submit.gif', 'edit');?></a></td>
<td><a href="<?php echo ereg("^(f|ht)tp:",$row[hostname]) ?
"" : "http://",
htmlspecialchars($row[hostname]);?>"><?php echo
htmlspecialchars($row[hostname]);?></a></td>
<td><?php echo htmlspecialchars($row[maintainer]);?> </td>
- <td><a href="http://<?php echo
htmlspecialchars($row[providerurl]);?>/"><?php echo
htmlspecialchars($row[providername]);?></a></td>
+ <td><a href="<?php echo
htmlspecialchars($row[providerurl]);?>"><?php echo
htmlspecialchars($row[providername]);?></a></td>
<td align="center"><?php echo $row[has_stats] ? "<a href=\"http://$row[hostname]/stats/\">go</a>"
: " ";?></td>
</tr>
<?php
@@ -154,7 +154,7 @@
<?php
commonFooter();
-function show_country_options($cc="") {
+function show_country_options($cc = "") {
global $COUNTRIES;
reset($COUNTRIES);
while (list($k,$v) = each($COUNTRIES)) {
@@ -162,7 +162,7 @@
}
}
-function show_language_options($lang="") {
+function show_language_options($lang = "") {
global $LANGUAGES;
reset($LANGUAGES);
while (list($k,$v) = each($LANGUAGES)) {
@@ -170,7 +170,7 @@
}
}
-function show_mirrortype_options($type="") {
+function show_mirrortype_options($type = 1) {
$types = array(1 => "standard", 2 => "special", 0 =>
"download" );
while (list($k,$v) = each($types)) {
echo "<option value=\"$k\"", $type == $k ? " selected" :
"", ">$v</option>";