plugins/SpecialAdmin.php
changeset 731 8e6dbf6882c2
parent 716 d9533bb07563
child 741 a216e412c439
--- a/plugins/SpecialAdmin.php	Sun Nov 09 09:02:35 2008 -0500
+++ b/plugins/SpecialAdmin.php	Sun Nov 09 09:03:10 2008 -0500
@@ -393,9 +393,11 @@
     }
     else
     {
-      echo '<div class="error-box">' . $lang->get('acpgc_err_avatar_dir_invalid') . '</div>';
+      echo '<div class="error-box">' . $lang->get('acpgc_err_avatar_dir_not_exist') . '</div>';
     }
     
+    setConfig('userpage_grant_acl', ( isset($_POST['userpage_grant_acl']) ? '1' : '0' ));
+    
     echo '<div class="info-box">' . $lang->get('acpgc_msg_save_success') . '</div><br />';
     
   }
@@ -926,6 +928,27 @@
           <input type="text" name="avatar_directory" size="30" <?php if ( $x = getConfig('avatar_directory') ) echo "value=\"$x\" "; else echo "value=\"files/avatars\" "; ?>/>
         </td>
       </tr>
+      
+    <!-- Misc. options -->
+    
+      <tr>
+        <th class="subhead" colspan="2"><?php echo $lang->get('acpgc_heading_usermisc'); ?></th>
+      </tr>
+      
+      <tr>
+        <td class="row1">
+          <b><?php echo $lang->get('acpgc_field_userpage_acl_title'); ?></b><br />
+          <small>
+            <?php echo $lang->get('acpgc_field_userpage_acl_hint'); ?>
+          </small>
+        </td>
+        <td class="row1">
+          <label>
+            <input type="checkbox" name="userpage_grant_acl" <?php if ( getConfig('userpage_grant_acl', '1') == '1' ) echo 'checked="checked" '; ?>/>
+            <?php echo $lang->get('acpgc_field_userpage_acl'); ?>
+          </label>
+        </td>
+      </tr>
         
     </table>
     </div>