source: extensions/Download_Multi/initialize.inc.php @ 8817

Last change on this file since 8817 was 3986, checked in by flipflip, 15 years ago

Initial Import

File size: 2.3 KB
RevLine 
[3986]1<?php
2// +-----------------------------------------------------------------------+
3// | Mod Name : Download_multi                                             |
4// | Mod Version : 0.9-1                                                   |
5// | Mod Orignal author: Tboris                                            |
6// | Mod Second author : Cestlodovic                                       |
7// | Mod Version author : FlipFlip <flipflip@free.fr>                      |
8// | Mod description :                                                     |
9// | Ce module est base sur le module existant pour le telechargement,     |
10// | cette version permet le telechargement sur plusieurs pages.           |
11// +-----------------------------------------------------------------------+
12// | This program is free software; you can redistribute it and/or modify  |
13// | it under the terms of the GNU General Public License as published by  |
14// | the Free Software Foundation                                          |
15// |                                                                       |
16// | This program is distributed in the hope that it will be useful, but   |
17// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
18// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
19// | General Public License for more details.                              |
20// |                                                                       |
21// | You should have received a copy of the GNU General Public License     |
22// | along with this program; if not, write to the Free Software           |
23// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
24// | USA.                                                                  |
25// +-----------------------------------------------------------------------+
26
27if (!defined('PHPWG_ROOT_PATH')) {
28  die('Hacking attempt!');
29}
30
31add_event_handler('init', 'download_multi_init');
32
33function download_multi_init() {
34  $plugin_name = basename(dirname(__FILE__));
35  $plugin_path = dirname(__FILE__).'/';
36  $plugin_url = get_root_url();
37
38  include_once($plugin_path.'include/class.inc.php');
39
40  // Create object
41  $download_multi = new DownloadMulti($plugin_name, $plugin_path, $plugin_url);
42  set_plugin_data($download_multi->plugin_name, $download_multi);
43}
44?>
Note: See TracBrowser for help on using the repository browser.