3 { |
3 { |
4 "Plugin Name" : "plugin_specialsearch_title", |
4 "Plugin Name" : "plugin_specialsearch_title", |
5 "Plugin URI" : "http://enanocms.org/", |
5 "Plugin URI" : "http://enanocms.org/", |
6 "Description" : "plugin_specialsearch_desc", |
6 "Description" : "plugin_specialsearch_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 /* |
24 |
24 |
25 // $plugins->attachHook('session_started', 'SpecialSearch_paths_init();'); |
25 // $plugins->attachHook('session_started', 'SpecialSearch_paths_init();'); |
26 |
26 |
27 function SpecialSearch_paths_init() |
27 function SpecialSearch_paths_init() |
28 { |
28 { |
29 global $paths; |
29 register_special_page('SearchRebuild', 'specialpage_search_rebuild'); |
30 $paths->add_page(Array( |
30 register_special_page('Search', 'specialpage_search'); |
31 'name'=>'specialpage_search_rebuild', |
|
32 'urlname'=>'SearchRebuild', |
|
33 'namespace'=>'Special', |
|
34 'special'=>0,'visible'=>1,'comments_on'=>0,'protected'=>1,'delvotes'=>0,'delvote_ips'=>'', |
|
35 )); |
|
36 |
|
37 $paths->add_page(Array( |
|
38 'name'=>'specialpage_search', |
|
39 'urlname'=>'Search', |
|
40 'namespace'=>'Special', |
|
41 'special'=>0,'visible'=>1,'comments_on'=>0,'protected'=>1,'delvotes'=>0,'delvote_ips'=>'', |
|
42 )); |
|
43 } |
31 } |
44 |
32 |
45 function page_Special_SearchRebuild() |
33 function page_Special_SearchRebuild() |
46 { |
34 { |
47 global $db, $session, $paths, $template, $plugins; // Common objects |
35 global $db, $session, $paths, $template, $plugins; // Common objects |