Rev 1473 Rev 1474
Line 1... Line 1...
1 // History: 1 // History:
2 // Oprava parametrů obrázku v hlavičce, oprava odkazu na stránku údržby 2 // Oprava parametrů obrázku v hlavičce, oprava odkazu na stránku údržby
3 // Doplněna detekce jazyka dokumentu (ve značce body) 3 // Doplněna detekce jazyka dokumentu (ve značce body)
4 // Předěláno na jinou strukturu adresářů, doplněno poukování odkazů 4 // Předěláno na jinou strukturu adresářů, doplněno poukování odkazů
5 // Oprava regulárního výrazu tak, aby nekazil odkaz Nahoru v patičce 5 // Oprava regulárního výrazu tak, aby nekazil odkaz Nahoru v patičce
6 // Změna kódování na UTF-8 6 // Změna kódování na UTF-8
Line 124... Line 124...
124 Content+=' <li> <a href="Web/Modules.cs.html" title="Jednotlivé moduly MLAB">Moduly</a> </li>'; 124 Content+=' <li> <a href="Web/Modules.cs.html" title="Jednotlivé moduly MLAB">Moduly</a> </li>';
125 Content+=' <li> <a href="Web/Designs.cs.html" title="Samostatné konstrukce">Konstrukce</a> </li>'; 125 Content+=' <li> <a href="Web/Designs.cs.html" title="Samostatné konstrukce">Konstrukce</a> </li>';
126 Content+=' <li> <a href="Web/News.cs.html" title="Novinky">Novinky</a> </li>'; 126 Content+=' <li> <a href="Web/News.cs.html" title="Novinky">Novinky</a> </li>';
127 Content+=' <li> <a href="Web/FAQ.cs.html" title="Nejčastější dotazy">FAQ</a> </li>'; 127 Content+=' <li> <a href="Web/FAQ.cs.html" title="Nejčastější dotazy">FAQ</a> </li>';
128 Content+=' <li> <a href="Web/Downloads.cs.html" title="Ke stažení">Downloads</a> </li>'; 128 Content+=' <li> <a href="Web/Downloads.cs.html" title="Ke stažení">Downloads</a> </li>';
129 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>'; 129 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>';
130 Content+=' <li> <a href="http://wiki.mlab.cz" title="Stránka Wiki">Wiki</a> </li>'; 130 Content+=' <li> <a href= "http://wiki.mlab.cz" title="Stránka Wiki">Wiki</a> </li>';
131 Content+=' <li> <a href="Web/About.cs.html" title="O webu, stavebnici MLAB atd.">O projektu</a> </li>'; 131 Content+=' <li> <a href="Web/About.cs.html" title="O webu, stavebnici MLAB atd.">O projektu</a> </li>';
132 Content+='</ul>'; 132 Content+='</ul>';
133 } 133 }
134 else 134 else
135 { // English text 135 { // English text
Line 140... Line 140...
140 Content+=' <li> <a href="Web/Modules.en.html" title="Individual MLAB Modules">Modules</a> </li>'; 140 Content+=' <li> <a href="Web/Modules.en.html" title="Individual MLAB Modules">Modules</a> </li>';
141 Content+=' <li> <a href="Web/Designs.en.html" title="Independed Designs">Designs</a> </li>'; 141 Content+=' <li> <a href="Web/Designs.en.html" title="Independed Designs">Designs</a> </li>';
142 Content+=' <li> <a href="Web/News.en.html" title="News">News</a> </li>'; 142 Content+=' <li> <a href="Web/News.en.html" title="News">News</a> </li>';
143 Content+=' <li> <a href="Web/FAQ.en.html" title="Frequently Asked Questions">FAQ</a> </li>'; 143 Content+=' <li> <a href="Web/FAQ.en.html" title="Frequently Asked Questions">FAQ</a> </li>';
144 Content+=' <li> <a href="Web/Downloads.en.html" title="For download">Downloads</a> </li>'; 144 Content+=' <li> <a href="Web/Downloads.en.html" title="For download">Downloads</a> </li>';
145 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>'; 145 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>';
146 Content+=' <li> <a href="http://wiki.mlab.cz" title="Wiki web">Wiki</a> </li>'; 146 Content+=' <li> <a href= "http://wiki.mlab.cz" title="Wiki web">Wiki</a> </li>';
147 Content+=' <li> <a href="Web/About.en.html" title="About Project">About</a> </li>'; 147 Content+=' <li> <a href="Web/About.en.html" title="About Project">About</a> </li>';
148 Content+='</ul>'; 148 Content+='</ul>';
149 } 149 }
150 Content+=' </div>'; 150 Content+=' </div>';
151 Content+='</div> '; 151 Content+='</div> ';
Line 332... Line 332...
332   332  
333   333  
334 //============================================= 334 //=============================================
335 // Skript pro sbírání statistiky návštěvnosti stránek 335 // Skript pro sbírání statistiky návštěvnosti stránek
336 // 336 //
337 // http://www.phpmyvisites.net/ -  
338 // License GNU/GPL (http://www.gnu.org/copyleft/gpl.html) -  
339 function pmv_plugMoz(pmv_pl) { -  
340 if (pmv_tm.indexOf(pmv_pl) != -1 && (navigator.mimeTypes[pmv_pl].enabledPlugin != null)) -  
341 return '1'; -  
342 return '0'; -  
343 } -  
344 function pmv_plugIE(pmv_plug){ -  
345 pmv_find = false; -  
346 document.write('<SCR' + 'IPT LANGUAGE=VBScript>\n on error resume next \n pmv_find = IsObject(CreateObject("' + pmv_plug + '")) </SCR' + 'IPT>\n'); 337 // 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);
347 if (pmv_find) return '1'; -  
348 return '0'; -  
349 } -  
350 var pmv_jav='0'; if(navigator.javaEnabled()) pmv_jav='1'; -  
351 var pmv_agent = navigator.userAgent.toLowerCase(); -  
352 var pmv_moz = (navigator.appName.indexOf("Netscape") != -1); -  
353 var pmv_ie= (pmv_agent.indexOf("msie") != -1); -  
354 var pmv_win = ((pmv_agent.indexOf("win") != -1) || (pmv_agent.indexOf("32bit") != -1)); -  
355 // Determine if cookie enabled -  
356 var pmv_cookie=(navigator.cookieEnabled)? '1' : '0'; -  
357   -  
358 //if not IE4+ nor NS6+ -  
359 if ((typeof (navigator.cookieEnabled) =="undefined") && (pmv_cookie == '0')) { -  
360 document.cookie="pmv_testcookie" -  
361 pmv_cookie=(document.cookie.indexOf("pmv_testcookie")!=-1)? '1' : '0'; -  
362 } -  
363   -  
364 var pmv_dir = '0'; -  
365 var pmv_fla = '0'; -  
366 var pmv_pdf = '0'; -  
367 var pmv_qt = '0'; -  
368 var pmv_rea = '0'; -  
369 var pmv_wma = '0'; -  
370   -  
371 if (!pmv_win || pmv_moz){ -  
372 var pmv_tm = ''; -  
373 for (var i=0; i < navigator.mimeTypes.length; i++) -  
374 pmv_tm += navigator.mimeTypes[i].type.toLowerCase(); -  
375 pmv_dir = pmv_plugMoz("application/x-director"); -  
376 pmv_fla = pmv_plugMoz("application/x-shockwave-flash"); -  
377 pmv_pdf = pmv_plugMoz("application/pdf"); -  
378 pmv_qt = pmv_plugMoz("video/quicktime"); -  
379 pmv_rea = pmv_plugMoz("audio/x-pn-realaudio-plugin"); -  
380 pmv_wma = pmv_plugMoz("application/x-mplayer2"); -  
381 } else if (pmv_win && pmv_ie){ -  
382 pmv_dir = pmv_plugIE("SWCtl.SWCtl.1"); -  
383 pmv_fla = pmv_plugIE("ShockwaveFlash.ShockwaveFlash.1"); -  
384 if (pmv_plugIE("PDF.PdfCtrl.1") == '1' || pmv_plugIE('PDF.PdfCtrl.5') == '1' || pmv_plugIE('PDF.PdfCtrl.6') == '1') -  
385 pmv_pdf = '1'; -  
386 pmv_qt = pmv_plugIE("Quicktime.Quicktime"); // Old : "QuickTimeCheckObject.QuickTimeCheck.1" -  
387 pmv_rea = pmv_plugIE("rmocx.RealPlayer G2 Control.1"); -  
388 pmv_wma = pmv_plugIE("wmplayer.ocx"); // Old : "MediaPlayer.MediaPlayer.1" -  
389   -  
390 } -  
391 -  
392 var pmv_do = document; -  
393 var pmv_rtu = ''; -  
394 try {pmv_rtu = top.pmv_do.referrer;} catch(e) { -  
395 if (parent) { -  
396 if (parent.pmv_getReferer) { -  
397 try {pmv_rtu = parent.pmv_getReferer;} catch(E3) {pmv_rtu = '';} -  
398 } -  
399 else { -  
400 try {pmv_rtu = parent.document.referrer;} catch(E) { -  
401 try {pmv_rtu = document.referrer;} catch(E2) {pmv_rtu = '';} -  
402 } -  
403 } -  
404 parent.pmv_getReferer = document.location.href; -  
405 } -  
406 else { -  
407 try {pmv_rtu = document.referrer;} catch(E3) {pmv_rtu = '';} -  
408 } -  
409 } -  
410 // Get the url to call phpmyvisites -  
411 function pmv_getUrlStat(pmv_urlPmv, pmv_site, pmv_urlDoc, pmv_pname, pmv_typeClick, pmv_vars) -  
412 { -  
413 var pmv_getvars=''; -  
414 if (pmv_vars) { -  
415 for (var i in pmv_vars){ -  
416 if (!Array.prototype[i]){ -  
417 pmv_getvars = pmv_getvars + '&a_vars['+ escape(i) + ']' + "=" + escape(pmv_vars[i]); -  
418 } -  
419 } -  
420 } -  
421 -  
422 var pmv_da = new Date(); -  
423 var pmv_src = pmv_urlPmv; -  
424 pmv_src += '?url='+escape(pmv_urlDoc)+'&pagename='+escape(pmv_pname)+pmv_getvars; -  
425 pmv_src += '&id='+pmv_site+'&res='+screen.width+'x'+screen.height+'&col='+screen.colorDepth; -  
426 pmv_src += '&h='+pmv_da.getHours()+'&m='+pmv_da.getMinutes()+'&s='+pmv_da.getSeconds(); -  
427 pmv_src += '&flash='+pmv_fla+'&director='+pmv_dir+'&quicktime='+pmv_qt+'&realplayer='+pmv_rea; -  
428 pmv_src += '&pdf='+pmv_pdf+'&windowsmedia='+pmv_wma+'&java='+pmv_jav+'&cookie='+pmv_cookie; -  
429 if ((pmv_typeClick) && (pmv_typeClick != "")) pmv_src += '&type='+escape(pmv_typeClick); -  
430 pmv_src += '&ref='+escape(pmv_rtu); -  
431 -  
432 return pmv_src; -  
433 } -  
434 // log action : pmv_typeClick = empty like a page, FILE ans in the futur RSS, PODCAST -  
435 function pmv_click (pmv_urlPmv, pmv_site, pmv_urlDoc, pmv_pname, pmv_typeClick, pmv_vars) -  
436 { -  
437 var pmv_src = pmv_getUrlStat(pmv_urlPmv, pmv_site, pmv_urlDoc, pmv_pname, pmv_typeClick, pmv_vars); -  
438 var pmv_img = new Image(); -  
439 pmv_img.src = pmv_src; -  
440 } -  
441 // Log current page -  
442 function pmv_log(pmv_urlPmv, pmv_site, pmv_pname, pmv_vars) -  
443 { -  
444 var pmv_urlCur = pmv_do.location.href; -  
445 var pmv_pos = pmv_urlCur.indexOf("//"); -  
446 if (pmv_pos > 0) { -  
447 pmv_urlCur = pmv_urlCur.substr(pmv_pos); -  
448 } -  
449 var pmv_src = pmv_getUrlStat(pmv_urlPmv, pmv_site, pmv_urlCur, pmv_pname, "", pmv_vars); -  
450   338  
451 // Do již načteného dokumentu se nesmí zapisovat (vznikla by nová stránka) 339 // Do již načteného dokumentu se nesmí zapisovat (vznikla by nová stránka)
452 //pmv_do.writeln('<img src="'+pmv_src+'" alt="phpMyVisites" style="border:0" />'); 340 //pmv_do.writeln('<img src="'+pmv_src+'" alt="phpMyVisites" style="border:0" />');
453 // Místo toho přednačteme obrázek 341 // Místo toho přednačteme obrázek
454   342