Changeset 1058 in ExiteCMS for modules/common/wiki/php-files/modules/wiki/wikka.config.php
- Timestamp:
- 11/04/07 23:02:51 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/common/wiki/php-files/modules/wiki/wikka.config.php
r979 r1058 52 52 ); 53 53 54 // get wiki config variables from the CMSconfig table. They override the default config 55 $result = dbquery("SELECT * FROM ".$db_prefix."CMSconfig WHERE cfg_name LIKE 'wiki_%'"); 56 while ($data = dbarray($result)) { 57 // extract the wakkaConfig key from the cfg_name 58 $cfgkey = substr($data['cfg_name'],5); 59 // if the wakkaConfig key exists, overwrite the value 60 if (isset($wakkaConfig[$cfgkey])) { 61 $wakkaConfig[$cfgkey] = $data['cfg_value']; 62 } 63 } 64 54 65 // check if there is a stylesheet for the Wiki in the current theme 55 66 // if not, take the Wiki module default … … 58 69 } else { 59 70 $wakkaConfig['stylesheet'] = 'css/wikka.css'; 60 }61 62 // generate the admin users based on group membership63 $result = dbquery("SELECT * FROM ".$db_prefix."user_groups WHERE group_name = 'Wiki Admins'");64 if ($data = dbarray($result)) {65 $users = allusersingroup($data['group_id']);66 $admins = "";67 foreach ($users as $user) {68 $admins .= ($admins == "" ? "" : "\n") . $user['user_name'];69 }70 if ($admins != "") $wakkaConfig['admin_users'] = $admins;71 71 } 72 72
Note: See TracChangeset
for help on using the changeset viewer.
