Changeset 6386 for extensions/whois_online/include
- Timestamp:
- May 27, 2010, 9:57:02 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/whois_online/include/wo_functions.inc.php
r6214 r6386 155 155 // Add admin links 156 156 function whois_add_icon($menu) { 157 global $conf_whois, $lang; 158 if ($conf_whois['Add icon to History']) 159 $lang['History'] .= '</a> <a class="external" href="' . get_admin_plugin_menu_link(WHOIS_ONLINE_PATH.'config.php') . '"> 160 <img class="button" src="' . WHOIS_ONLINE_PATH . 'icons/Whois_tuner.gif" alt="Whois Online configuration" title="Whois Online configuration" /></a>'; 157 global $conf_whois, $template; 158 $url = get_admin_plugin_menu_link(WHOIS_ONLINE_PATH.'config.php'); 159 $lnk = ' <a class="external" style="display:inline;" href="' . $url . '">' 160 . '<img class="button" src="' . WHOIS_ONLINE_PATH . 'icons/Whois_tuner.png" ' 161 . ' alt="Whois Online configuration" title="Whois Online configuration" /></a>'; 162 if (isset($_GET['page']) and ($_GET['page'] == 'stats' or $_GET['page'] == 'history')) 163 $h2 = $lnk; 164 else $h2 = ''; 165 if ($conf_whois['Add icon to History']) { 166 $template->append('footer_elements', '<!-- Whois Icon --> 167 <script type="text/javascript"> 168 jQuery(document).ready(function() { 169 jQuery("#menubar li a[href*=\'admin.php?page=stats\']").after(\'' . $lnk . '\').css("display","inline"); 170 jQuery(".tabsheet li a[href*=\'admin.php?page=configuration§ion=history\']").next().remove(); 171 jQuery("#content .titrePage h2").append(\'' . $h2 . '\'); 172 173 }); 174 </script>' ); 175 } 161 176 if ($conf_whois['Add to Plugins menu']) array_push($menu, array( 162 177 'NAME' => 'Whois Online', 163 'URL' => get_admin_plugin_menu_link(WHOIS_ONLINE_PATH.'config.php'),178 'URL' => $url, 164 179 )); 165 180 return $menu;
Note: See TracChangeset
for help on using the changeset viewer.