23 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. |
23 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. |
24 */ |
24 */ |
25 |
25 |
26 global $db, $session, $paths, $template, $plugins; // Common objects |
26 global $db, $session, $paths, $template, $plugins; // Common objects |
27 |
27 |
28 $plugins->attachHook('session_started', ' |
28 $plugins->attachHook('session_started', 'SpecialUpDownload_paths_init();'); |
|
29 |
|
30 function SpecialUpDownload_paths_init() |
|
31 { |
29 global $paths; |
32 global $paths; |
30 $paths->add_page(Array( |
33 $paths->add_page(Array( |
31 \'name\'=>\'specialpage_upload_file\', |
34 'name'=>'specialpage_upload_file', |
32 \'urlname\'=>\'UploadFile\', |
35 'urlname'=>'UploadFile', |
33 \'namespace\'=>\'Special\', |
36 'namespace'=>'Special', |
34 \'special\'=>0,\'visible\'=>1,\'comments_on\'=>0,\'protected\'=>1,\'delvotes\'=>0,\'delvote_ips\'=>\'\', |
37 'special'=>0,'visible'=>1,'comments_on'=>0,'protected'=>1,'delvotes'=>0,'delvote_ips'=>'', |
35 )); |
38 )); |
36 |
39 |
37 $paths->add_page(Array( |
40 $paths->add_page(Array( |
38 \'name\'=>\'specialpage_download_file\', |
41 'name'=>'specialpage_download_file', |
39 \'urlname\'=>\'DownloadFile\', |
42 'urlname'=>'DownloadFile', |
40 \'namespace\'=>\'Special\', |
43 'namespace'=>'Special', |
41 \'special\'=>0,\'visible\'=>1,\'comments_on\'=>0,\'protected\'=>1,\'delvotes\'=>0,\'delvote_ips\'=>\'\', |
44 'special'=>0,'visible'=>1,'comments_on'=>0,'protected'=>1,'delvotes'=>0,'delvote_ips'=>'', |
42 )); |
45 )); |
43 '); |
46 } |
44 |
47 |
45 function page_Special_UploadFile() |
48 function page_Special_UploadFile() |
46 { |
49 { |
47 global $db, $session, $paths, $template, $plugins; // Common objects |
50 global $db, $session, $paths, $template, $plugins; // Common objects |
48 global $lang; |
51 global $lang; |