Ignore:
Timestamp:
12/08/07 00:11:27 (4 years ago)
Author:
hverton
Message:

updated the wiki module. added an admin panel, moved the locale strings to the module installer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/common/wiki/php-files/modules/wiki/wikka.config.php

    r1058 r1161  
    7070    $wakkaConfig['stylesheet'] = 'css/wikka.css'; 
    7171} 
    72  
    73 // generate the default write ACL based on group membership 
    74 /*$result = dbquery("SELECT * FROM ".$db_prefix."user_groups WHERE group_name = 'Wiki Editors'"); 
    75 if ($data = dbarray($result)) { 
    76     $users = allusersingroup($data['group_id']); 
    77     $acl = ""; 
    78     foreach ($users as $user) { 
    79         $acl .= ($acl == "" ? "" : "\n") . $user['user_name']; 
    80     } 
    81     if ($acl != "") $wakkaConfig['default_write_acl'] = $acl; 
    82 }*/ 
     72// if the current user is an admin, add the username to the list of admins 
     73$wakkaConfig['admin_users'] = checkgroup($wakkaConfig['admin_group']) ? (iMEMBER ? $userdata['user_name'] : "*") : ""; 
    8374?> 
Note: See TracChangeset for help on using the changeset viewer.