Ignore:
Timestamp:
10/02/07 22:27:18 (5 years ago)
Author:
hverton
Message:

Added an image upload function to the Wiki module
Optimized the speed of the download panels
Fixed a crash due to "attachment to big" in M2F

File:
1 edited

Legend:

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

    r840 r862  
    179179 
    180180// add a user group for this module 
    181 $mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##user_groups (group_ident, group_name, group_description, group_forumname, group_visible) VALUES ('$mod_admin_rights', 'Wiki Admins', 'Wiki Admins', 'Wiki Admin', '1')"); 
    182 $mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##user_groups (group_ident, group_description, group_forumname, group_visible) VALUES ('$mod_admin_rights', 'Wiki Editors', 'Wiki Editors', 'Wiki Editor', '1')"); 
     181$mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##user_groups (group_ident, group_name, group_description, group_forumname, group_visible) VALUES ('".$mod_admin_rights."01', 'Wiki Admins', 'Wiki Admins', 'Wiki Admin', '1')"); 
     182$mod_install_cmds[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##user_groups (group_ident, group_description, group_forumname, group_visible) VALUES ('".$mod_admin_rights."02', 'Wiki Editors', 'Wiki Editors', 'Wiki Editor', '1')"); 
    183183 
    184184$mod_install_cmds[] = array('type' => 'function', 'value' => "install_wiki"); 
     
    200200 
    201201// delete the user groups 
    202 $mod_uninstall_cmds[] = array('type' => 'db', 'value' => "DELETE FROM ##PREFIX##user_groups WHERE group_name = 'Wiki Admins'"); 
    203 $mod_uninstall_cmds[] = array('type' => 'db', 'value' => "DELETE FROM ##PREFIX##user_groups WHERE group_name = 'Wiki Editors'"); 
     202$mod_uninstall_cmds[] = array('type' => 'db', 'value' => "DELETE FROM ##PREFIX##user_groups WHERE group_ident = '".$mod_admin_rights."01'"); 
     203$mod_uninstall_cmds[] = array('type' => 'db', 'value' => "DELETE FROM ##PREFIX##user_groups WHERE group_ident = '".$mod_admin_rights."02'"); 
    204204 
    205205$mod_install_cmds[] = array('type' => 'function', 'value' => "uninstall_wiki"); 
     
    211211    function install_wiki() { 
    212212         
    213         global $db_prefix; 
     213        global $db_prefix, $mod_admin_rights; 
    214214 
    215215        // get the group_id of the Wiki Admins group 
    216         $admins = dbarray(dbquery("SELECT group_id FROM ".$db_prefix."user_groups WHERE group_name = 'Wiki Admins'")); 
     216        $admins = dbarray(dbquery("SELECT group_id FROM ".$db_prefix."user_groups WHERE group_ident = '".$mod_admin_rights."01'")); 
    217217         
    218218        // add all webmasters to the wiki user table 
Note: See TracChangeset for help on using the changeset viewer.