No changes between revisions
/Web/JS/MLAB_Menu.js
1,4 → 1,4
// History:
// History:
// Oprava parametrů obrázku v hlavičce, oprava odkazu na stránku údržby
// Doplněna detekce jazyka dokumentu (ve značce body)
// Předěláno na jinou strukturu adresářů, doplněno poukování odkazů
126,8 → 126,8
Content+=' <li> <a href="Web/News.cs.html" title="Novinky">Novinky</a> </li>';
Content+=' <li> <a href="Web/FAQ.cs.html" title="Nejčastější dotazy">FAQ</a> </li>';
Content+=' <li> <a href="Web/Downloads.cs.html" title="Ke stažení">Downloads</a> </li>';
Content+=' <li> <a href="http://www.mlab.cz/WebSVN/listing.php?repname=MLAB&amp;path=%2F&amp;sc=0&amp;langchoice=Česky" title="Webový přístup do databáze SVN">WebSVN</a> </li>';
Content+=' <li> <a href="http://wiki.mlab.cz" title="Stránka Wiki">Wiki</a> </li>';
Content+=' <li> <a href= "http://www.mlab.cz/WebSVN/listing.php?repname=MLAB&amp;path=%2F&amp;sc=0&amp;langchoice=Česky" title="Webový přístup do databáze SVN">WebSVN</a> </li>';
Content+=' <li> <a href= "http://wiki.mlab.cz" title="Stránka Wiki">Wiki</a> </li>';
Content+=' <li> <a href="Web/About.cs.html" title="O webu, stavebnici MLAB atd.">O projektu</a> </li>';
Content+='</ul>';
}
142,8 → 142,8
Content+=' <li> <a href="Web/News.en.html" title="News">News</a> </li>';
Content+=' <li> <a href="Web/FAQ.en.html" title="Frequently Asked Questions">FAQ</a> </li>';
Content+=' <li> <a href="Web/Downloads.en.html" title="For download">Downloads</a> </li>';
Content+=' <li> <a href="http://www.mlab.cz/WebSVN/listing.php?repname=MLAB&amp;path=%2F&amp;sc=0&amp;langchoice=English" title="Web interface to SVN database">WebSVN</a> </li>';
Content+=' <li> <a href="http://wiki.mlab.cz" title="Wiki web">Wiki</a> </li>';
Content+=' <li> <a href= "http://www.mlab.cz/WebSVN/listing.php?repname=MLAB&amp;path=%2F&amp;sc=0&amp;langchoice=English" title="Web interface to SVN database">WebSVN</a> </li>';
Content+=' <li> <a href= "http://wiki.mlab.cz" title="Wiki web">Wiki</a> </li>';
Content+=' <li> <a href="Web/About.en.html" title="About Project">About</a> </li>';
Content+='</ul>';
}
334,232 → 334,8
//=============================================
// Skript pro sbírání statistiky návštěvnosti stránek
//
+// http://www.phpmyvisites.net/ // License GNU/GPL (http://www.gnu.org/copyleft/gpl.html)function pmv_plugMoz(pmv_pl) { if (pmv_tm.indexOf(pmv_pl) != -1 && (navigator.mimeTypes[pmv_pl].enabledPlugin != null)) return '1'; return '0';}function pmv_plugIE(pmv_plug){ pmv_find = false; document.write('<SCR' + 'IPT LANGUAGE=VBScript>\n on error resume next \n pmv_find = IsObject(CreateObject("' + pmv_plug + '")) </SCR' + 'IPT>\n'); if (pmv_find) return '1'; return '0';}var pmv_jav='0'; if(navigator.javaEnabled()) pmv_jav='1';var pmv_agent = navigator.userAgent.toLowerCase();var pmv_moz = (navigator.appName.indexOf("Netscape") != -1);var pmv_ie= (pmv_agent.indexOf("msie") != -1);var pmv_win = ((pmv_agent.indexOf("win") != -1) || (pmv_agent.indexOf("32bit") != -1));// Determine if cookie enabledvar pmv_cookie=(navigator.cookieEnabled)? '1' : '0';//if not IE4+ nor NS6+if ((typeof (navigator.cookieEnabled) =="undefined") && (pmv_cookie == '0')) { document.cookie="pmv_testcookie" pmv_cookie=(document.cookie.indexOf("pmv_testcookie")!=-1)? '1' : '0';}var pmv_dir = '0'; var pmv_fla = '0'; var pmv_pdf = '0'; var pmv_qt = '0'; var pmv_rea = '0'; var pmv_wma = '0'; if (!pmv_win || pmv_moz){ var pmv_tm = ''; for (var i=0; i < navigator.mimeTypes.length; i++) pmv_tm += navigator.mimeTypes[i].type.toLowerCase(); pmv_dir = pmv_plugMoz("application/x-director"); pmv_fla = pmv_plugMoz("application/x-shockwave-flash"); pmv_pdf = pmv_plugMoz("application/pdf"); pmv_qt = pmv_plugMoz("video/quicktime"); pmv_rea = pmv_plugMoz("audio/x-pn-realaudio-plugin"); pmv_wma = pmv_plugMoz("application/x-mplayer2");} else if (pmv_win && pmv_ie){ pmv_dir = pmv_plugIE("SWCtl.SWCtl.1"); pmv_fla = pmv_plugIE("ShockwaveFlash.ShockwaveFlash.1"); if (pmv_plugIE("PDF.PdfCtrl.1") == '1' || pmv_plugIE('PDF.PdfCtrl.5') == '1' || pmv_plugIE('PDF.PdfCtrl.6') == '1') pmv_pdf = '1'; pmv_qt = pmv_plugIE("Quicktime.Quicktime"); // Old : "QuickTimeCheckObject.QuickTimeCheck.1" pmv_rea = pmv_plugIE("rmocx.RealPlayer G2 Control.1"); pmv_wma = pmv_plugIE("wmplayer.ocx"); // Old : "MediaPlayer.MediaPlayer.1"} var pmv_do = document;var pmv_rtu = '';try {pmv_rtu = top.pmv_do.referrer;} catch(e) { if (parent) { if (parent.pmv_getReferer) { try {pmv_rtu = parent.pmv_getReferer;} catch(E3) {pmv_rtu = '';} } else { try {pmv_rtu = parent.document.referrer;} catch(E) { try {pmv_rtu = document.referrer;} catch(E2) {pmv_rtu = '';} } } parent.pmv_getReferer = document.location.href; } else { try {pmv_rtu = document.referrer;} catch(E3) {pmv_rtu = '';} }}// Get the url to call phpmyvisitesfunction pmv_getUrlStat(pmv_urlPmv, pmv_site, pmv_urlDoc, pmv_pname, pmv_typeClick, pmv_vars){ var pmv_getvars=''; if (pmv_vars) { for (var i in pmv_vars){ if (!Array.prototype[i]){ pmv_getvars = pmv_getvars + '&a_vars['+ escape(i) + ']' + "=" + escape(pmv_vars[i]); } } } var pmv_da = new Date(); var pmv_src = pmv_urlPmv; pmv_src += '?url='+escape(pmv_urlDoc)+'&pagename='+escape(pmv_pname)+pmv_getvars; pmv_src += '&id='+pmv_site+'&res='+screen.width+'x'+screen.height+'&col='+screen.colorDepth; pmv_src += '&h='+pmv_da.getHours()+'&m='+pmv_da.getMinutes()+'&s='+pmv_da.getSeconds(); pmv_src += '&flash='+pmv_fla+'&director='+pmv_dir+'&quicktime='+pmv_qt+'&realplayer='+pmv_rea; pmv_src += '&pdf='+pmv_pdf+'&windowsmedia='+pmv_wma+'&java='+pmv_jav+'&cookie='+pmv_cookie; if ((pmv_typeClick) && (pmv_typeClick != "")) pmv_src += '&type='+escape(pmv_typeClick); pmv_src += '&ref='+escape(pmv_rtu); return pmv_src;}// log action : pmv_typeClick = empty like a page, FILE ans in the futur RSS, PODCASTfunction pmv_click (pmv_urlPmv, pmv_site, pmv_urlDoc, pmv_pname, pmv_typeClick, pmv_vars){ var pmv_src = pmv_getUrlStat(pmv_urlPmv, pmv_site, pmv_urlDoc, pmv_pname, pmv_typeClick, pmv_vars); var pmv_img = new Image(); pmv_img.src = pmv_src;}// Log current pagefunction pmv_log(pmv_urlPmv, pmv_site, pmv_pname, pmv_vars){ var pmv_urlCur = pmv_do.location.href; var pmv_pos = pmv_urlCur.indexOf("//"); if (pmv_pos > 0) { pmv_urlCur = pmv_urlCur.substr(pmv_pos); } var pmv_src = pmv_getUrlStat(pmv_urlPmv, pmv_site, pmv_urlCur, pmv_pname, "", pmv_vars);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 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" />');
// Místo toho přednačteme obrázek