plugins/SpecialUpdownload.php
changeset 960 e74741b8360b
parent 953 323c4cd1aa37
child 1059 f5d2bca33bb8
equal deleted inserted replaced
959:68a91587271a 960:e74741b8360b
     3 {
     3 {
     4   "Plugin Name"  : "plugin_specialupdownload_title",
     4   "Plugin Name"  : "plugin_specialupdownload_title",
     5   "Plugin URI"   : "http://enanocms.org/",
     5   "Plugin URI"   : "http://enanocms.org/",
     6   "Description"  : "plugin_specialupdownload_desc",
     6   "Description"  : "plugin_specialupdownload_desc",
     7   "Author"       : "Dan Fuhry",
     7   "Author"       : "Dan Fuhry",
     8   "Version"      : "1.1.5",
     8   "Version"      : "1.1.6",
     9   "Author URI"   : "http://enanocms.org/"
     9   "Author URI"   : "http://enanocms.org/"
    10 }
    10 }
    11 **!*/
    11 **!*/
    12 
    12 
    13 /*
    13 /*
    27 
    27 
    28 // $plugins->attachHook('session_started', 'SpecialUpDownload_paths_init();');
    28 // $plugins->attachHook('session_started', 'SpecialUpDownload_paths_init();');
    29 
    29 
    30 function SpecialUpDownload_paths_init()
    30 function SpecialUpDownload_paths_init()
    31 {
    31 {
    32   global $paths;
    32   register_special_page('UploadFile', 'specialpage_upload_file');
    33   $paths->add_page(Array(
    33   register_special_page('DownloadFile', 'specialpage_download_file');
    34     'name'=>'specialpage_upload_file',
       
    35     'urlname'=>'UploadFile',
       
    36     'namespace'=>'Special',
       
    37     'special'=>0,'visible'=>1,'comments_on'=>0,'protected'=>1,'delvotes'=>0,'delvote_ips'=>'',
       
    38     ));
       
    39   
       
    40   $paths->add_page(Array(
       
    41     'name'=>'specialpage_download_file',
       
    42     'urlname'=>'DownloadFile',
       
    43     'namespace'=>'Special',
       
    44     'special'=>0,'visible'=>1,'comments_on'=>0,'protected'=>1,'delvotes'=>0,'delvote_ips'=>'',
       
    45     ));
       
    46 }
    34 }
    47 
    35   
    48 function page_Special_UploadFile()
    36 function page_Special_UploadFile()
    49 {
    37 {
    50   global $db, $session, $paths, $template, $plugins; // Common objects
    38   global $db, $session, $paths, $template, $plugins; // Common objects
    51   global $lang;
    39   global $lang;
    52   global $cache;
    40   global $cache;