Changeset 16548 for extensions/delete_hit_rate/initadmin.php
- Timestamp:
- Jul 9, 2012, 3:52:29 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/delete_hit_rate/initadmin.php
r12999 r16548 18 18 //add prefiltre photo 19 19 add_event_handler('loc_begin_admin', 'plugdphrPf',60); 20 add_event_handler('loc_begin_admin_page', 'plugdphrPf2',60); 20 21 21 22 function plugdphrPf() … … 28 29 { 29 30 load_language('plugin.lang', PDHR_PATH); 30 $search = '#< form id="associations"#';31 $search = '#</form>#'; 31 32 32 33 $replacement = ' … … 42 43 </form> 43 44 </div> 44 < form id="associations"';45 </form>'; 45 46 46 47 return preg_replace($search, $replacement, $content); 47 48 } 48 49 50 function plugdphrPf2() 51 { 49 52 if (isset($_POST['plugdphphoto'])) 50 53 { … … 72 75 $result = pwg_query($query); 73 76 } 74 77 } 75 78 76 79 //add prefiltre album 77 80 add_event_handler('loc_end_cat_modify', 'plugdphrAf'); 81 add_event_handler('loc_end_cat_modify', 'plugdphrAf2'); 78 82 79 83 function plugdphrAf() 80 84 { 81 85 global $template; 82 $template->set_prefilter(' categories', 'plugdphrAT');86 $template->set_prefilter('album_properties', 'plugdphrAT'); 83 87 } 84 88 … … 86 90 { 87 91 load_language('plugin.lang', PDHR_PATH); 88 $search = '#name="reset"> 89 </p>#'; 92 $search = '#</form>#'; 90 93 91 $replacement = 'name="reset"> 92 </p> 93 94 $replacement = ' 94 95 <div> 95 <form method="post" >96 96 97 <fieldset> 97 98 <legend>{\'Purge - Plugin Delete Hit/Rate\'|@translate}</legend> … … 101 102 </div> 102 103 </fieldset> 103 </form>104 104 105 </div> 106 </form> 105 107 '; 106 108 … … 108 110 } 109 111 110 112 function plugdphrAf2() 113 { 111 114 if (isset($_POST['plugdphA'])) 112 115 { … … 166 169 } 167 170 } 168 171 } 169 172 ?>
Note: See TracChangeset
for help on using the changeset viewer.