[vPostMaster] [Patch] Read-only extra attributes for users, for 1.44

CyberLeo Kitsana cyberleo at cyberleo.net
Sat Jun 28 23:42:36 MDT 2008


This patch sets the extra attributes list items to read-only in 
user_view.php when a user is not an admin.
- user_view.php

Enjoy!

-- 
Fuzzy love,
-CyberLeo
Technical Administrator
CyberLeo.Net Webhosting
http://www.CyberLeo.Net
<CyberLeo at CyberLeo.Net>

Furry Peace! - http://wwww.fur.com/peace/
-------------- next part --------------
diff -ur vpostmaster-www-orig/user_view.php vpostmaster-www/user_view.php
--- vpostmaster-www-orig/user_view.php	2008-06-18 16:50:44.000000000 -0500
+++ vpostmaster-www/user_view.php	2008-06-29 00:34:45.000000000 -0500
@@ -408,6 +408,7 @@
                echo "<input TYPE=\"checkbox\" " .
                      "id=\"extra_${attribute['id']}\" " .
                      "NAME=\"extra_${attribute['id']}\" VALUE=\"true\" " .
+		     ($isUser? "disabled=\"disabled\" readonly=\"readonly\"": "") .
                      "${attributeChecked} />";
             } else if ($attribute["class"] == 'TEXT') {
                $attributeValue = "";
@@ -417,6 +418,7 @@
                echo "<input TYPE=\"text\" id=\"extra_${attribute['id']}\" " .
                      "NAME=\"extra_${attribute['id']}\" " .
                      "SIZE=\"30\" MAXLEN=\"4096\" " .
+		     ($isUser? "disabled=\"disabled\" readonly=\"readonly\"": "") .
                      "VALUE=\"${attributeValue}\" />";
             }
             echo "</td><td class=\"formdesc\">" .


More information about the vPostMaster mailing list