cvs: php-master-web /manage mirrors.php
| From: | Philip Olson | Date: | Thu, 29 Mar 2007 18:43:09 +0000 |
| Subject: | cvs: php-master-web /manage mirrors.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-34988@lists.php.net to get a copy of this message | ||
philip Thu Mar 29 18:43:09 2007 UTC
Modified files:
/php-master-web/manage mirrors.php
Log:
don't show the delete form when adding a mirror
http://cvs.php.net/viewvc.cgi/php-master-web/manage/mirrors.php?r1=1.99&r2=1.100&diff_format=u
Index: php-master-web/manage/mirrors.php
diff -u php-master-web/manage/mirrors.php:1.99 php-master-web/manage/mirrors.php:1.100
--- php-master-web/manage/mirrors.php:1.99 Mon Mar 26 17:30:54 2007
+++ php-master-web/manage/mirrors.php Thu Mar 29 18:43:08 2007
@@ -232,7 +232,7 @@
</form>
<hr />
-<?php if ($row['mirrortype'] == 1) { // only allow standard mirror deletions ?>
+<?php if ($row['mirrortype'] == 1 && $id !== 0) { // only allow standard
mirror deletions ?>
<form method="POST" action="<?php echo $PHP_SELF; ?>">
<input type="hidden" name="id" value="<?php echo
$row['id']; ?>" />
<input type="hidden" name="hostname" value="<?php echo
$row['hostname']; ?>" />