plugins/SpecialAdmin.php
changeset 731 8e6dbf6882c2
parent 716 d9533bb07563
child 741 a216e412c439
equal deleted inserted replaced
730:b09cb1dab505 731:8e6dbf6882c2
   391         echo '<div class="error-box">' . $lang->get('acpgc_err_avatar_dir_invalid') . '</div>';
   391         echo '<div class="error-box">' . $lang->get('acpgc_err_avatar_dir_invalid') . '</div>';
   392       }
   392       }
   393     }
   393     }
   394     else
   394     else
   395     {
   395     {
   396       echo '<div class="error-box">' . $lang->get('acpgc_err_avatar_dir_invalid') . '</div>';
   396       echo '<div class="error-box">' . $lang->get('acpgc_err_avatar_dir_not_exist') . '</div>';
   397     }
   397     }
       
   398     
       
   399     setConfig('userpage_grant_acl', ( isset($_POST['userpage_grant_acl']) ? '1' : '0' ));
   398     
   400     
   399     echo '<div class="info-box">' . $lang->get('acpgc_msg_save_success') . '</div><br />';
   401     echo '<div class="info-box">' . $lang->get('acpgc_msg_save_success') . '</div><br />';
   400     
   402     
   401   }
   403   }
   402   else if ( isset($_POST['submit']) && defined('ENANO_DEMO_MODE') )
   404   else if ( isset($_POST['submit']) && defined('ENANO_DEMO_MODE') )
   922           <?php echo $lang->get('acpgc_field_avatar_directory'); ?><br />
   924           <?php echo $lang->get('acpgc_field_avatar_directory'); ?><br />
   923           <small><?php echo $lang->get('acpgc_field_avatar_directory_hint'); ?></small>
   925           <small><?php echo $lang->get('acpgc_field_avatar_directory_hint'); ?></small>
   924         </td>
   926         </td>
   925         <td class="row2">
   927         <td class="row2">
   926           <input type="text" name="avatar_directory" size="30" <?php if ( $x = getConfig('avatar_directory') ) echo "value=\"$x\" "; else echo "value=\"files/avatars\" "; ?>/>
   928           <input type="text" name="avatar_directory" size="30" <?php if ( $x = getConfig('avatar_directory') ) echo "value=\"$x\" "; else echo "value=\"files/avatars\" "; ?>/>
       
   929         </td>
       
   930       </tr>
       
   931       
       
   932     <!-- Misc. options -->
       
   933     
       
   934       <tr>
       
   935         <th class="subhead" colspan="2"><?php echo $lang->get('acpgc_heading_usermisc'); ?></th>
       
   936       </tr>
       
   937       
       
   938       <tr>
       
   939         <td class="row1">
       
   940           <b><?php echo $lang->get('acpgc_field_userpage_acl_title'); ?></b><br />
       
   941           <small>
       
   942             <?php echo $lang->get('acpgc_field_userpage_acl_hint'); ?>
       
   943           </small>
       
   944         </td>
       
   945         <td class="row1">
       
   946           <label>
       
   947             <input type="checkbox" name="userpage_grant_acl" <?php if ( getConfig('userpage_grant_acl', '1') == '1' ) echo 'checked="checked" '; ?>/>
       
   948             <?php echo $lang->get('acpgc_field_userpage_acl'); ?>
       
   949           </label>
   927         </td>
   950         </td>
   928       </tr>
   951       </tr>
   929         
   952         
   930     </table>
   953     </table>
   931     </div>
   954     </div>