21 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. |
21 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. |
22 */ |
22 */ |
23 |
23 |
24 global $db, $session, $paths, $template, $plugins; // Common objects |
24 global $db, $session, $paths, $template, $plugins; // Common objects |
25 |
25 |
26 $plugins->attachHook('base_classes_initted', ' |
26 $plugins->attachHook('session_started', ' |
27 global $paths; |
27 global $paths; |
28 $paths->add_page(Array( |
28 $paths->add_page(Array( |
29 \'name\'=>\'Upload file\', |
29 \'name\'=>\'specialpage_upload_file\', |
30 \'urlname\'=>\'UploadFile\', |
30 \'urlname\'=>\'UploadFile\', |
31 \'namespace\'=>\'Special\', |
31 \'namespace\'=>\'Special\', |
32 \'special\'=>0,\'visible\'=>1,\'comments_on\'=>0,\'protected\'=>1,\'delvotes\'=>0,\'delvote_ips\'=>\'\', |
32 \'special\'=>0,\'visible\'=>1,\'comments_on\'=>0,\'protected\'=>1,\'delvotes\'=>0,\'delvote_ips\'=>\'\', |
33 )); |
33 )); |
34 |
34 |
35 $paths->add_page(Array( |
35 $paths->add_page(Array( |
36 \'name\'=>\'Download file\', |
36 \'name\'=>\'download_file\', |
37 \'urlname\'=>\'DownloadFile\', |
37 \'urlname\'=>\'DownloadFile\', |
38 \'namespace\'=>\'Special\', |
38 \'namespace\'=>\'Special\', |
39 \'special\'=>0,\'visible\'=>1,\'comments_on\'=>0,\'protected\'=>1,\'delvotes\'=>0,\'delvote_ips\'=>\'\', |
39 \'special\'=>0,\'visible\'=>1,\'comments_on\'=>0,\'protected\'=>1,\'delvotes\'=>0,\'delvote_ips\'=>\'\', |
40 )); |
40 )); |
41 '); |
41 '); |