Ignore:
Timestamp:
09/13/12 03:56:14 (7 years ago)
Author:
mistic100
Message:
  • now archive comment is well added
  • add PclZip library for servers without ZipArchive
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/BatchDownloader/main.inc.php

    r17656 r17880  
    1919define('BATCH_DOWNLOAD_ADMIN',   get_root_url() . 'admin.php?page=plugin-BatchDownloader'); 
    2020define('BATCH_DOWNLOAD_PUBLIC',  get_absolute_root_url() . make_index_url(array('section' => 'download')) . '/'); 
    21 define('BATCH_DOWNLOAD_VERSION', '1.0.3'); 
     21define('BATCH_DOWNLOAD_VERSION', '1.0.4'); 
    2222 
    2323 
    2424add_event_handler('init', 'batch_download_init'); 
    2525 
    26 if (class_exists('ZipArchive')) 
    27 { 
    28   add_event_handler('loc_end_section_init', 'batch_download_section_init'); 
    29   add_event_handler('loc_end_index', 'batch_download_page'); 
    30    
    31   add_event_handler('loc_end_index', 'batch_download_clean'); 
     26add_event_handler('loc_end_section_init', 'batch_download_section_init'); 
     27add_event_handler('loc_end_index', 'batch_download_page'); 
    3228 
    33   add_event_handler('loc_end_index', 'batch_download_index_button', EVENT_HANDLER_PRIORITY_NEUTRAL+10); 
     29add_event_handler('loc_end_index', 'batch_download_clean'); 
    3430 
    35   add_event_handler('blockmanager_register_blocks', 'batch_download_add_menublock'); 
    36   add_event_handler('blockmanager_apply', 'batch_download_applymenu'); 
    37    
    38   include_once(BATCH_DOWNLOAD_PATH . 'include/BatchDownloader.class.php'); 
    39   include_once(BATCH_DOWNLOAD_PATH . 'include/functions.inc.php'); 
    40   include_once(BATCH_DOWNLOAD_PATH . 'include/events.inc.php'); 
    41 } 
     31add_event_handler('loc_end_index', 'batch_download_index_button', EVENT_HANDLER_PRIORITY_NEUTRAL+10); 
     32 
     33add_event_handler('blockmanager_register_blocks', 'batch_download_add_menublock'); 
     34add_event_handler('blockmanager_apply', 'batch_download_applymenu'); 
     35 
     36include_once(BATCH_DOWNLOAD_PATH . 'include/BatchDownloader.class.php'); 
     37include_once(BATCH_DOWNLOAD_PATH . 'include/functions.inc.php'); 
     38include_once(BATCH_DOWNLOAD_PATH . 'include/events.inc.php'); 
    4239 
    4340if (defined('IN_ADMIN')) 
     
    4946 
    5047/** 
    51  * unserialize conf and load language 
     48 * update plugin & unserialize conf & load language 
    5249 */ 
    5350function batch_download_init() 
Note: See TracChangeset for help on using the changeset viewer.