cvs: pearweb /public_html account-edit.php
| From: | Jan Lehnardt | Date: | Mon, 28 Jan 2002 19:09:13 +0000 |
| Subject: | cvs: pearweb /public_html account-edit.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-2218@lists.php.net to get a copy of this message | ||
jan Mon Jan 28 14:09:13 2002 EDT
Modified files:
/pearweb/public_html account-edit.php
Log:
- show the "admin" checkbox only when the visitor is admin
Index: pearweb/public_html/account-edit.php
diff -u pearweb/public_html/account-edit.php:1.8 pearweb/public_html/account-edit.php:1.9
--- pearweb/public_html/account-edit.php:1.8 Mon Jan 28 14:01:23 2002
+++ pearweb/public_html/account-edit.php Mon Jan 28 14:09:13 2002
@@ -147,13 +147,15 @@
HTML_Form::displayCheckbox("showemail", $row['showemail']);
print " </td>\n";
print " </tr>\n";
-
- print " <tr>\n";
- print " <th bgcolor=\"#CCCCCC\">Administrator:</th>\n";
- print " <td bgcolor=\"#e8e8e8\">";
- HTML_Form::displayCheckbox("admin", $row['admin']);
- print " </td>\n";
- print " </tr>\n";
+
+ if ($admin) { /* show the admin checkbox only when the visitor is admin */
+ print " <tr>\n";
+ print " <th bgcolor=\"#CCCCCC\">Administrator:</th>\n";
+ print " <td bgcolor=\"#e8e8e8\">";
+ HTML_Form::displayCheckbox("admin", $row['admin']);
+ print " </td>\n";
+ print " </tr>\n";
+ }
print " <tr>\n";
print " <th bgcolor=\"#CCCCCC\"> </th>\n";