function Compter(Target, max, nomchamp) { StrLen = Target.value.length if (StrLen > max ) { Target.value = Target.value.substring(0,max); CharsLeft = max; } else { CharsLeft = StrLen; } nomchamp.value = max - CharsLeft; } // script ANTI ADBLOCK adblockblock = function() { if (window.addEventListener) { window.addEventListener('load', this.bind(this.initialize), false); } else if (window.attachEvent) { window.attachEvent('onload', this.bind(this.initialize)); } }; adblockblock.prototype = { initialize: function() { this.interval = setInterval(this.bind(this.test), 1000); this.test(); }, test: function() { var element=document.getElementById('adblocktest'); /* On test si l'element a été supprimé par le bloqueur * Maxthon?, Konqueror */ if(!element) { this.logger('Element image non trouvé'); return this.block(); } /* On test si l'image n'a tout pas été chargée dutout * Adblock, /etc/hosts, proxies, etc * Gecko: element.complete==true, même si image non trouvée / mauvaise image et onerror||onload appellée * IE: element.complete==false quand image non trouvée. */ if (element.complete && !element.imgloaded) { this.logger('Image non chargée'); return this.block(); } /* On test si l'element a été caché par le bloqueur * (display:none, ou visibility:hidden, ou position:absolute et top/left hors de la page) * Old adblock */ var display = this.getStyle(element, 'display'); var visibility = this.getStyle(element, 'visibility'); var position = this.getStyle(element, 'position'); if (display != 'inline' || (visibility != 'visible' && visibility != 'inherit') || position != 'static') { this.logger('Image cachée: display='+display+' visibility='+visibility+' position='+position); return this.block(); } /* On test si l'image a été remplacée * Pour une image non chargée, naturalWidth/Height doit être indéfini ou 0 */ if ((element.naturalWidth && element.naturalWidth > 0) || (element.naturalHeight && element.naturalHeight > 0)) { this.logger('Image remplacée'); return this.block(); } /* Pour Konqueror */ if (element.width && element.width == 64) { this.logger('Image remplacée (Konqueror)'); return this.block(); } }, getStyle: function(element, key) { if (document.defaultView && document.defaultView.getComputedStyle) { return document.defaultView.getComputedStyle(element, '').getPropertyValue(key); } else { return element.currentStyle[key]; } }, block: function(blockMethod) { // Ne pas supprimer cette ligne if (this.interval) clearInterval(this.interval); // Mettez ce que vous voulez ici // alert('Adblock activé ! '); if (document.getElementById('Panneau_vote')) { document.getElementById('Panneau_vote').style.display="none"; } if (document.getElementById('blockstatus2')) { var status_div2 = document.getElementById('blockstatus2'); // document.getElementById('blockstatus2'); status_div2.innerHTML = "
Veuillez désactiver

Il semblerait que vous utilisiez un bloqueur de publicité !

Root-top.com se finance avec la publicité.
Merci de bien vouloir Root-top.com en exception de votre bloqueur de publicité.

"; // status_div2.innerHTML = "
Veuillez désactiver

Il semblerait que vous utilisiez un bloqueur de publicité !


Root-top.com se finance avec la publicité et partage les entrées publicitaires avec des centaines de compositeurs membres sur ce site.
Merci de bien vouloir ajouter Root-top.com en exception de votre bloqueur de publicité.

"; //Faire un don.
"; status_div2.style.color = '#c00'; } // partitions_telecharger.php if (document.getElementById('blockstatus_r')) { var status_pub1 = document.getElementById('remplace_pub'); //status_pub1.innerHTML = ""; status_pub1.innerHTML = "TEST ANTI AD-BLOCK"; } }, bind: function(func) { var obj = this; return function() { return func.apply(obj, []); }; }, logger: function(str) { if (typeof console == 'undefined') return; if (typeof console.log == 'undefined') return; console.log(str); } }; // new adblockblock(); // Désactivé 31/08/2020 // FIN ANTI ADBLOCK function del_entry_details(entry, action, message) { if (window.confirm(message)) //"")) { page = "http://www.root-top.com/detailsv2.php?action="+action+"&ID="+entry; Modalbox.show(page, {title: "Configuration member "+entry, width: 800}); } } function del_entry2_details(entry, action, message) { if (window.confirm(message)) //"")) { page = "http://www.root-top.com/detailsv2.php?action="+action+"&ID="+entry; Modalbox.show(page, {title: "Configuration member "+entry, width: 800}); } } function lecture(langue, Log_fenetre, page, nbre_par_page) { var url = "./ajax/serveur/edit_log_ajax.php"; Params= new Hash(); Params.set('langue', langue); Params.set('page', page); var myAjax = new Ajax.Request(url, { method: 'post', evalScripts: false, parameters:Params, onLoading: function (xhr) { // Après appel méthode open $(Log_fenetre).innerHTML=""; }, onFailure: function (xhr) { // Réponse HTTP != 2xx }, onComplete: function (xhr, json) { // Requête totalement terminée var resultat = xhr.responseText; $(Log_fenetre).innerHTML=resultat; Effect.SlideDown(Log_fenetre); for (i=0; i<(nbre_par_page+1); i++) { switch_invisible((i+page*nbre_par_page),1); } } } ); } function lecture_event(langue, Log_fenetre, page, nbre_par_page) { var url = "./ajax/serveur/last_event_ajax.php"; Params= new Hash(); Params.set('langue', langue); Params.set('page', page); var myAjax = new Ajax.Request(url, { method: 'post', evalScripts: false, parameters:Params, onLoading: function (xhr) { // Après appel méthode open $(Log_fenetre).innerHTML=""; }, onFailure: function (xhr) { // Réponse HTTP != 2xx }, onComplete: function (xhr, json) { // Requête totalement terminée var resultat = xhr.responseText; $(Log_fenetre).innerHTML=resultat; Effect.SlideDown(Log_fenetre); } } ); } function createCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else var expires = ""; document.cookie = name+"="+value+expires+"; path=/"; } function readCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; } function eraseCookie(name) { createCookie(name,"",-1); }