No changes between revisions
/Web/JS/MLAB_Menu.js
-
-
-
+function pmv_log(pmv_site, pmv_url, pmv_pname, pmv_vars)
+{
+ function plugMoz(pmv_pl) {
-
-
-
-
-
+ function plugIE(pmv_plug){
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ pmv_tm = '';
-
-
-
-
-
-
-
-
+ var pmv_dir = plugMoz("application/x-director");
+ var pmv_fla = plugMoz("application/x-shockwave-flash");
+ var pmv_pdf = plugMoz("application/pdf");
+ var pmv_qt = plugMoz("video/quicktime");
+ var pmv_rea = plugMoz("audio/x-pn-realaudio-plugin");
+ var pmv_wma = plugMoz("application/x-mplayer2");
-
-
-
-
+ var pmv_dir = plugIE("SWCtl.SWCtl.1");
+ var pmv_fla = plugIE("ShockwaveFlash.ShockwaveFlash.1");
+ var pmv_pdf = '0';
+ if (plugIE("PDF.PdfCtrl.1") == '1' || plugIE('PDF.PdfCtrl.5') == '1' || plugIE('PDF.PdfCtrl.6') == '1')
-
-
-
-
-
+ var pmv_qt = plugIE("QuickTimeCheckObject.QuickTimeCheck.1");
+ var pmv_rea = plugIE("rmocx.RealPlayer G2 Control.1");
+ var pmv_wma = plugIE("MediaPlayer.MediaPlayer.1");
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ var getvars='';
-
-
-
+ getvars = getvars + '&a_vars['+ escape(i) + ']' + "=" + escape(pmv_vars[i]);
-
-
+ pmv_do = document; pmv_da = new Date();
+ try {rtu = top.pmv_do.referrer;} catch(e) {
+ try {rtu = pmv_do.referrer;} catch(E) {rtu = '';}
+ src = pmv_url;
+ src += '?url='+escape(pmv_do.location)+'&pagename='+escape(pmv_pname)+getvars;
+ src += '&id='+pmv_site+'&res='+screen.width+'x'+screen.height+'&col='+screen.colorDepth;
+ src += '&h='+pmv_da.getHours()+'&m='+pmv_da.getMinutes()+'&s='+pmv_da.getSeconds();
+ src += '&flash='+pmv_fla+'&director='+pmv_dir+'&quicktime='+pmv_qt+'&realplayer='+pmv_rea;
+ src += '&pdf='+pmv_pdf+'&windowsmedia='+pmv_wma+'&java='+pmv_jav+'&ref='+escape(rtu);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- var pmv_src = pmv_getUrlStat(pmv_urlPmv, pmv_site, pmv_urlCur, pmv_pname, "", pmv_vars);
-
// Do již načteného dokumentu se nesmí zapisovat (vznikla by nová stránka)
- //pmv_do.writeln('<img src="'+pmv_src+'" alt="phpMyVisites" style="border:0" />');
+ //pmv_do.writeln('<img src="'+src+'" alt="phpMyVisites" style="border:0" />');
// Místo toho přednačteme obrázek
-
var dummy_picture=new Image();
- dummy_picture.src=pmv_src;
+ dummy_picture.src=src;
}
@@ -586,7 +419,7 @@
var phpmyvisitesURL = "http://www.mlab.cz/phpmyvisites/phpmyvisites.php";
//if (location.hostname != "") // jen při přístupu na server
//{
- pmv_log(phpmyvisitesURL, phpmyvisitesSite, pagename, a_vars);
+ pmv_log(phpmyvisitesSite, phpmyvisitesURL, pagename, a_vars);
//}
}