mirror of
https://github.com/Mibew/design.git
synced 2025-01-22 18:10:33 +03:00
dummy geolocation link
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@220 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
parent
14d6cd081d
commit
ef2a286d3d
@ -124,6 +124,9 @@ var HtmlGenerationUtils = {
|
||||
return '<td width="30" align="center">'+
|
||||
HtmlGenerationUtils.popupLink( webimRoot+'/operator/ban.php?'+(banid ? 'id='+banid : 'thread='+id), localized[2], "ban"+id, '<img src="'+webimRoot+'/images/ban.gif" width="15" height="15" border="0" alt="'+localized[2]+'">', 550, 440, null)+
|
||||
'</td>';
|
||||
},
|
||||
ipCell: function(ipaddr,iptext) {
|
||||
return HtmlGenerationUtils.popupLink('http:/'+'/api.hostip.info/get_html.php?ip='+ipaddr, "GeoLocation", "ip"+ipaddr, iptext, 400, 100,null);
|
||||
}
|
||||
};
|
||||
|
||||
@ -205,6 +208,12 @@ Class.inherit( Ajax.ThreadListUpdater, Ajax.Base, {
|
||||
etc = '<td class="table">'+NodeUtils.getNodeValue(node,"reason")+'</td>';
|
||||
}
|
||||
|
||||
var ipExpr = new RegExp("([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)");
|
||||
if (ipExpr.exec(vaddr) != null) {
|
||||
var currIp = RegExp.$1;
|
||||
vaddr = HtmlGenerationUtils.ipCell(currIp, vaddr);
|
||||
}
|
||||
|
||||
if(canban) {
|
||||
etc += HtmlGenerationUtils.banCell(id,banid);
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
var myAgent="";var uk=0;var myRealAgent="";function hk(){var ik=["\157pera","\u006ds\151\145","\u0073\u0061fa\162\151","\u0066\u0069r\u0065fox","n\u0065t\u0073cap\145","\u006d\u006fz\u0069l\154\u0061"];var dj=navigator.userAgent.toLowerCase();for(var i=0;i<ik.length;i++){var jk=ik[i];if(dj.indexOf(jk)!=-1){myAgent=jk;if(!window.RegExp)break;var kk=new RegExp(jk+"[ \/]\u003f(\u005b\060\055\071]\053\u0028\.\u005b0\u002d9]\u002b\u0029\u003f)");if(kk.exec(dj)!=null){uk=parseFloat(RegExp.$1);} break;} } myRealAgent=myAgent;if(navigator.product=="\107e\u0063\153\u006f")myAgent="mo\u007a";} hk();function getEl(name){return document.getElementById(name);}
|
||||
var myAgent="";var lk=0;var myRealAgent="";function ok(){var pk=["\157pe\162a","\u006d\163\151\145","saf\u0061\u0072i","\u0066i\162\u0065\u0066\157\170","n\u0065t\163c\u0061p\145","m\u006fzil\154a"];var gj=navigator.userAgent.toLowerCase();for(var i=0;i<pk.length;i++){var dk=pk[i];if(gj.indexOf(dk)!=-1){myAgent=dk;if(!window.RegExp)break;var ek=new RegExp(dk+"[ \/\135\u003f([\u0030\u002d9\135\053\050\.[\060-\u0039]\u002b\u0029\u003f)");if(ek.exec(gj)!=null){lk=parseFloat(RegExp.$1);} break;} } myRealAgent=myAgent;if(navigator.product=="\107\145c\153o")myAgent="\155o\u007a";} ok();function getEl(name){return document.getElementById(name);}
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user