Ignore:
Timestamp:
11/26/08 22:20:46 (3 years ago)
Author:
root
Message:

implemented a new file upload module for the wiki, with upload notification via PM for additional security

File:
1 edited

Legend:

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

    r2043 r2073  
    2323+----------------------------------------------------*/ 
    2424$mod_title = "Wikka Wiki";                              // title or name of this module 
    25 $mod_description = "ExiteCMS embedded implementation of Wikka Wakka Wiki v1.1.6.3"; // short description of it's purpose 
    26 $mod_version = "1.1.6";                                 // module version number 
     25$mod_description = "ExiteCMS embedded implementation of Wikka Wakka Wiki v1.1.6.4"; // short description of it's purpose 
     26$mod_version = "1.1.9";                                 // module version number 
    2727$mod_developer = "WanWizard";                           // author's name 
    2828$mod_email = "wanwizard@exitecms.org"; 
     
    110110$localestrings['en']['426'] = "Page owner:"; 
    111111$localestrings['en']['427'] = "You don't have the rights to view this wiki page."; 
     112$localestrings['en']['428'] = "Send file upload notifications to:"; 
     113$localestrings['en']['429'] = "No one"; 
     114$localestrings['en']['430'] = "Wiki Upload notification"; 
     115$localestrings['en']['431'] = "Wiki upload by: %s\n\nStatus message is: %s"; 
    112116 
    113117$localestrings['nl'] = array(); 
     
    139143$localestrings['nl']['426'] = "Pagina eigenaar:"; 
    140144$localestrings['nl']['427'] = "U hebt geen rechten op deze wiki pagina te bekijken."; 
     145$localestrings['nl']['428'] = "Stuur een notificatie van bestandsuploads naar:"; 
     146$localestrings['nl']['429'] = "Niemand"; 
     147$localestrings['nl']['430'] = "Wiki upload notificatie"; 
     148$localestrings['nl']['431'] = "Wiki upload door: %s\n\nStatus bericht is: %s"; 
    141149 
    142150/*---------------------------------------------------+ 
     
    309317$mod_uninstall_cmds[] = array('type' => 'db', 'value' => "DELETE FROM ##PREFIX##configuration WHERE cfg_name = 'wiki_forum_links'"); 
    310318$mod_uninstall_cmds[] = array('type' => 'db', 'value' => "DELETE FROM ##PREFIX##configuration WHERE cfg_name = 'wiki_page_template'"); 
     319$mod_uninstall_cmds[] = array('type' => 'db', 'value' => "DELETE FROM ##PREFIX##configuration WHERE cfg_name = 'wiki_report_uploads'"); 
    311320 
    312321// delete the user groups 
     
    339348        if (!is_dir(PATH_IMAGES."wiki")) { 
    340349            @mkdir(PATH_IMAGES."wiki"); 
     350        } 
     351        // create the wiki file directory 
     352        if (!is_dir(PATH_ROOT."files/wiki")) { 
     353            @mkdir(PATH_ROOT."files/wiki"); 
    341354        } 
    342355    } 
     
    357370        $result = dbquery("INSERT INTO ".$db_prefix."configuration( cfg_name, cfg_value ) VALUES ('wiki_external_link_new_window', '1')"); 
    358371        $result = dbquery("INSERT INTO ".$db_prefix."configuration( cfg_name, cfg_value ) VALUES ('wiki_default_read_acl', 'G0');"); 
     372        $result = dbquery("INSERT INTO ".$db_prefix."configuration( cfg_name, cfg_value ) VALUES ('wiki_report_uploads', '103');"); 
    359373        // get the group_id of the Wiki Editors group 
    360374        $result = dbquery("SELECT * FROM ".$db_prefix."user_groups WHERE group_ident = '".$mod_admin_rights."01'"); 
     
    379393        $result = dbquery("INSERT INTO ".$db_prefix."configuration( cfg_name, cfg_value ) VALUES ('wiki_forum_links', '0')"); 
    380394        $result = dbquery("INSERT INTO ".$db_prefix."configuration( cfg_name, cfg_value ) VALUES ('wiki_page_template', '')"); 
     395        $result = dbquery("INSERT INTO ".$db_prefix."configuration( cfg_name, cfg_value ) VALUES ('wiki_report_uploads', '103');"); 
    381396    } 
    382397} 
     
    472487                $result = dbquery("CREATE TABLE ".$db_prefix."wiki_aliases (from_tag varchar(75) NOT NULL default '', to_tag varchar(75) NOT NULL default '', UNIQUE KEY from_tag (from_tag,to_tag), KEY idx_from (from_tag), KEY idx_to (to_tag)) ENGINE=MyISAM;"); 
    473488 
    474             case "1.1.5": 
     489            case "1.1.6": 
     490                // no specific changes between this version and the new one 
     491 
     492            case "1.1.7": 
     493                // new configuration item for the wiki file upload reports 
     494                $result = dbquery("INSERT INTO ".$db_prefix."configuration( cfg_name, cfg_value ) VALUES ('wiki_report_uploads', '103')"); 
     495 
     496            case "1.1.8": 
     497                // added upload notifications 
     498 
     499            case "1.1.9": 
    475500                // current version 
    476501 
    477502            default: 
     503                // create the wiki image directory 
     504                if (!is_dir(PATH_IMAGES."wiki")) { 
     505                    @mkdir(PATH_IMAGES."wiki"); 
     506                } 
     507                // create the wiki file directory 
     508                if (!is_dir(PATH_ROOT."files/wiki")) { 
     509                    @mkdir(PATH_ROOT."files/wiki"); 
     510                } 
    478511                // commands to execute for every upgrade 
    479512        } 
Note: See TracChangeset for help on using the changeset viewer.