'download')) . '/'); if (class_exists('ZipArchive')) { add_event_handler('init', 'batch_download_init'); add_event_handler('loc_end_section_init', 'batch_download_section_init'); add_event_handler('loc_end_index', 'batch_download_page'); add_event_handler('loc_end_index', 'batch_download_clean'); add_event_handler('loc_end_index', 'batch_download_index_button', EVENT_HANDLER_PRIORITY_NEUTRAL+10); add_event_handler('blockmanager_register_blocks', 'batch_download_add_menublock'); add_event_handler('blockmanager_apply', 'batch_download_applymenu'); require(BATCH_DOWNLOAD_PATH . 'include/functions.inc.php'); require(BATCH_DOWNLOAD_PATH . 'include/BatchDownloader.class.php'); require(BATCH_DOWNLOAD_PATH . 'include/events.inc.php'); } add_event_handler('get_admin_plugin_menu_links', 'batch_download_admin_menu'); /* admin plugins menu */ function batch_download_admin_menu($menu) { array_push($menu, array( 'NAME' => 'Batch Downloader', 'URL' => BATCH_DOWNLOAD_ADMIN, )); return $menu; } ?>