plugins/SpecialPageFuncs.php
changeset 960 e74741b8360b
parent 953 323c4cd1aa37
child 967 a267c5be7963
equal deleted inserted replaced
959:68a91587271a 960:e74741b8360b
     3 {
     3 {
     4   "Plugin Name"  : "plugin_specialpagefuncs_title",
     4   "Plugin Name"  : "plugin_specialpagefuncs_title",
     5   "Plugin URI"   : "http://enanocms.org/",
     5   "Plugin URI"   : "http://enanocms.org/",
     6   "Description"  : "plugin_specialpagefuncs_desc",
     6   "Description"  : "plugin_specialpagefuncs_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 /*
    26 
    26 
    27 // $plugins->attachHook('session_started', 'SpecialPageFuncs_paths_init();');
    27 // $plugins->attachHook('session_started', 'SpecialPageFuncs_paths_init();');
    28 
    28 
    29 function SpecialPageFuncs_paths_init()
    29 function SpecialPageFuncs_paths_init()
    30 {
    30 {
    31   global $paths;
    31   register_special_page('CreatePage', 'specialpage_create_page');
    32   $paths->add_page(Array(
    32   register_special_page('AllPages', 'specialpage_all_pages');
    33     'name'=>'specialpage_create_page',
    33   register_special_page('SpecialPages', 'specialpage_special_pages');
    34     'urlname'=>'CreatePage',
    34   register_special_page('About_Enano', 'specialpage_about_enano');
    35     'namespace'=>'Special',
    35   register_special_page('GNU_General_Public_License', 'specialpage_gnu_gpl');
    36     'special'=>0,'visible'=>1,'comments_on'=>0,'protected'=>1,'delvotes'=>0,'delvote_ips'=>'',
    36   register_special_page('TagCloud', 'specialpage_tag_cloud');
    37     ));
    37   register_special_page('Autofill', 'specialpage_autofill', false);
    38   
       
    39   $paths->add_page(Array(
       
    40     'name'=>'specialpage_all_pages',
       
    41     'urlname'=>'AllPages',
       
    42     'namespace'=>'Special',
       
    43     'special'=>0,'visible'=>1,'comments_on'=>0,'protected'=>1,'delvotes'=>0,'delvote_ips'=>'',
       
    44     ));
       
    45   
       
    46   $paths->add_page(Array(
       
    47     'name'=>'specialpage_special_pages',
       
    48     'urlname'=>'SpecialPages',
       
    49     'namespace'=>'Special',
       
    50     'special'=>0,'visible'=>1,'comments_on'=>0,'protected'=>1,'delvotes'=>0,'delvote_ips'=>'',
       
    51     ));
       
    52   
       
    53   $paths->add_page(Array(
       
    54     'name'=>'specialpage_about_enano',
       
    55     'urlname'=>'About_Enano',
       
    56     'namespace'=>'Special',
       
    57     'special'=>0,'visible'=>1,'comments_on'=>0,'protected'=>1,'delvotes'=>0,'delvote_ips'=>'',
       
    58     ));
       
    59   
       
    60   $paths->add_page(Array(
       
    61     'name'=>'specialpage_gnu_gpl',
       
    62     'urlname'=>'GNU_General_Public_License',
       
    63     'namespace'=>'Special',
       
    64     'special'=>0,'visible'=>1,'comments_on'=>0,'protected'=>1,'delvotes'=>0,'delvote_ips'=>'',
       
    65     ));
       
    66   
       
    67   $paths->add_page(Array(
       
    68     'name'=>'specialpage_tag_cloud',
       
    69     'urlname'=>'TagCloud',
       
    70     'namespace'=>'Special',
       
    71     'special'=>0,'visible'=>1,'comments_on'=>0,'protected'=>1,'delvotes'=>0,'delvote_ips'=>'',
       
    72     ));
       
    73   
       
    74   $paths->add_page(Array(
       
    75     'name'=>'specialpage_autofill',
       
    76     'urlname'=>'Autofill',
       
    77     'namespace'=>'Special',
       
    78     'special'=>0,'visible'=>1,'comments_on'=>0,'protected'=>1,'delvotes'=>0,'delvote_ips'=>'',
       
    79     ));
       
    80 }
    38 }
    81 
    39 
    82 // function names are IMPORTANT!!! The name pattern is: page_<namespace ID>_<page URLname, without namespace>
    40 // function names are IMPORTANT!!! The name pattern is: page_<namespace ID>_<page URLname, without namespace>
    83 
    41 
    84 function page_Special_CreatePage()
    42 function page_Special_CreatePage()