Changeset 6386 for extensions
- Timestamp:
- May 27, 2010, 9:57:02 AM (15 years ago)
- Location:
- extensions/whois_online
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/whois_online/Changelog.txt.php
r6221 r6386 3 3 Plugin Name: Whois online 4 4 ** History ** 5 2010-05-27 2.1.c 6 Cosmetic review for the clear admin theme and more 7 5 8 2010-05-16 2.1.b 6 9 Fix: Menu was forced to Tools or Plugins on other admin functions -
extensions/whois_online/config.tpl
r6193 r6386 3 3 </div> 4 4 5 <form method="post" action="{$F_ACTION}" class="Whois_Online properties ">5 <form method="post" action="{$F_ACTION}" class="Whois_Online properties {$themeconf.name}"> 6 6 7 7 {if $page == 'config'} -
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; -
extensions/whois_online/main.inc.php
r6221 r6386 23 23 /* 24 24 Plugin Name: Whois online 25 Version: 2.1. b25 Version: 2.1.c 26 26 Description: Who is online? 27 27 Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=279 … … 29 29 Author URI: http://www.vdigital.org 30 30 */ 31 define('WHOIS_ONLINE_VER', '2.1. b');31 define('WHOIS_ONLINE_VER', '2.1.c'); 32 32 global $prefixeTable, $conf; 33 33 // $conf['debug_l10n'] = true; -
extensions/whois_online/online.css
r6201 r6386 15 15 .table2 thead tr .ns { background-image: none !important; } 16 16 a.ws2 { display: inline-block; text-align: center; padding: 0px 1px; min-width: 21px; overflow: hidden; margin-left: 0px; margin-right: 1px; color: #666; background-color: #111; } 17 .clear a.ws2 { background-color: #ccc;} 17 18 a.ws2:hover { color: #f33; background-color: #f33; border-bottom: 1px solid #ff3363;} 18 19 a.ws1 { display: inline-block; text-align: center; padding: 0px 1px; min-width: 21px; overflow: hidden; margin-left: 0px; margin-right: 1px; color: #666; background-color: #222; } 20 .clear a.ws1 { background-color: #eee;} 19 21 a.ws1:hover { color: #f33; background-color: #f33; border-bottom: 1px solid #ff3363;} 20 22 a.ws { color: #111; background-color: #f33 !important; } … … 22 24 .cluetip-default #cluetip-outer { border-radius: 16px; -moz-border-radius: 16px; -khtml-border-radius: 16px; -webkit-border-radius: 16px; } 23 25 .cluetip-default h3#cluetip-title { border-radius: 16px 16px 0 0; -moz-border-radius: 16px 16px 0 0; -khtml-border-radius: 16px 16px 0 0; -webkit-border-radius: 16px 16px 0 0; } 26 27 .content .errors, .content .infos { position:relative;} 28 #theAdminPage #pwgMain .Whois_Online { text-align:center; } 29 #theAdminPage #pwgMain .Whois_Online *, 30 #theAdminPage #pwgMain .Whois_Online *:hover, 31 #theAdminPage #pwgMain .Whois_Online *:focus, 32 #theAdminPage #pwgMain .Whois_Online *:active { outline: 0; } 33 #theAdminPage #pwgMain .Whois_Online input { border-radius: 8px; -moz-border-radius: 8px; -khtml-border-radius: 8px; -webkit-border-radius: 8px; } 34 #theAdminPage .Whois_Online fieldset { border-radius: 16px; -moz-border-radius: 16px; -khtml-border-radius: 16px; -webkit-border-radius: 16px; } 35 #theAdminPage #pwgMain .Whois_Online input { padding-left:5px; } 36 #theAdminPage #pwgMain .Whois_Online input[type="submit"] { padding:0 45px; } -
extensions/whois_online/reload.php
r3695 r6386 94 94 } 95 95 foreach ($online as $k => $v) { 96 // The stupid History search will be reused instead of created... (even if History search will recreate it) 97 if ($conf['log']) $online[$k]['url_user'] = 98 PHPWG_ROOT_PATH .'admin.php?page=history&user_id='.$online[$k]['user_id'].'&search_id='.$conf_whois['Search id']; 99 96 // The stupid History search will be reused instead of created... (even if History search will recreate it) 97 if ($conf['log']) { 98 if ( $conf['history_guest'] or $online[$k]['user_id'] != $conf['guest_id']) 99 $online[$k]['url_user'] = 100 PHPWG_ROOT_PATH .'admin.php?page=history&user_id='.$online[$k]['user_id'].'&search_id='.$conf_whois['Search id']; 101 } 102 100 103 $online[$k]['Language'] = (isset($lang_code[$v['lang']])) ? $lang_code[$v['lang']]:l10n('Deleted language'); 101 104 $online[$k]['Country'] = whois_country($v, $bypass); -
extensions/whois_online/report.tpl
r6201 r6386 14 14 {foreach from=$search_results item=detail name=res_loop} 15 15 <tr class="{if $smarty.foreach.res_loop.index is odd}row1{else}row2{/if}"> 16 <td><a href={if isset($detail.url_user)}"{$detail.url_user}" onclick="window.open(this.href); return false;"{else}"#"{/if} class="cluetip{if ($detail.guest)} other{/if}" 16 <td><a {if isset($detail.url_user)}href="{$detail.url_user}"{else}href="href="{'http:geoiptool'|@translate}{$detail.IP}"{/if} 17 onclick="window.open(this.href); return false;" class="cluetip{if ($detail.guest)} other{/if}" 17 18 title="{'User:'|@translate} {$detail.username}| 18 19 <table> … … 35 36 </td> 36 37 <td> 37 {if ($detail.user_id == '1')}<a class="external" href="{'http:hostip'|@translate}" title="{':hostip:title'|@translate}">38 {if ($detail.user_id == '1')}<a class="external" onclick="window.open(this.href); return false;" href="{'http:hostip'|@translate}" title="{':hostip:title'|@translate}"> 38 39 <img src="{$detail.Flag}" alt="{$detail.IP} - {'language'|@translate}: {$detail.Language}" width="24" height="16"> 39 40 </a> 40 {else}<a class="external" href="{'http:geoiptool'|@translate}{$detail.IP}" title="{':geoiptool:title'|@translate}">41 {else}<a class="external" onclick="window.open(this.href); return false;" href="{'http:geoiptool'|@translate}{$detail.IP}" title="{':geoiptool:title'|@translate}"> 41 42 <img src="{$detail.Flag}" alt="{$detail.IP} - {'language'|@translate}: {$detail.Language}" width="24" height="16"> 42 43 </a> … … 56 57 {if (isset($image.path))} 57 58 <a class="cluetip {if $smarty.foreach.res_loop.index is odd}ws1{else}ws2{/if} {$image.ws_level}" 59 onclick="window.open(this.href); return false;" 58 60 href="{$image.url_modify}" title="<div style="text-align:center;"> 59 61 <img src="{$image.tn_url}"></div>| … … 74 76 Hits on: {$image.hit}<br />">{$id}</a> 75 77 {else}<a class="{if $smarty.foreach.res_loop.index is odd}ws1{else}ws2{/if}" 78 onclick="window.open(this.href); return false;" 76 79 href="{$image.url_modify}" title="{$id}{' - Over the radar limit => No level control'|@translate}">{$id}</a> 77 80 {/if}
Note: See TracChangeset
for help on using the changeset viewer.