var guids=[[-3,"invité"],[-2,"tous"],[-1,"membre"],[1,"admin"],[2,"modo"],[3,"hominis"],[4,"myrim"]]; var grefresh= 24; function sguid(c){for(i=0;i>18,a<26?c+=String.fromCharCode(a+65):a<52?c+=String.fromCharCode(a+71):a<62?c+=String.fromCharCode(a-4):a==62?c+="+":a==63&&(c+="/"),b<<=6;e=b=0}c+="=";return(c+"=").replace(/(.{3}(.).{3})/g,"$1$2").replace(/(.{40})/g,'$1 '); }; function d(d){var b=0,e=0,c="",a,d=d.replace(/ /g,"").replace(/(.{7})(.)/g,"$1");for(i=0;i32&&(b<<=6,65<=a&&a<=90?b+=a-65:97<=a&&a<=122?b+=a-71:48<=a&&a<=57?b+=a+4:a==43?b+=62:a==47&&(b+=63),++e==4)){for(j=0;j<3;j++)c+=String.fromCharCode((b&16711680)>>16),b<<=8;e=b=0}}return c.replace(/\0/g,'')};cguid=parseInt($("#un a").attr("href").replace(/^.*&u=(-?[0-9]+)$/,"$1"));cggid=[];my_getcookie("cguid")==cguid&&(!grefresh||(my_getcookie("cgtime")<=(+new Date())&&my_getcookie("cgtime")>(+new Date())-(3600000*grefresh)))?cggid=d(my_getcookie("cggid")).split(","):cguid==-1?(my_setcookie("cguid","0",0,0),cggid.push("-3"),cggid.push("-2")):(my_setcookie("cguid",cguid,1,0),my_setcookie("cgtime",(+new Date()),1,0),$($.ajax({url:"/groups",async:!1}).responseText).find("#main-content a[href^=/g]").each(function(){cggid.push($(this).attr("href").replace(/^\/g([1-9][0-9]*)-.*$/,"$1"))}),cggid.push("-2"),cggid.push("-1"),my_setcookie("cggid",g(cggid.toString()),1,0));$(function(){$(".postbody .cgroups td").each(function(){var a=d($(this).attr("class")).split("|");a&&a.length==2&&(a[0]==cguid||sggid(sguid(a[1])))&&$(this).closest(".cgroups").wrap("").parent().html(d($(this).html()).replace(/&/g,"&").replace(/\"/g,""").replace(/\'/g,"'").replace(//g,">").replace(/\n/g,"
\n").replace(/\[b\]([\s\S]*?)\[\/b\]/g,'$1').replace(/\[i\]([\s\S]*?)\[\/i\]/g,'$1').replace(/\[url\](.*?)\[\/url\]/g,'$1').replace(/\[img\](.*?)\[\/img\]/g,'').replace(/\[center]([\s\S]*?)\[\/center\]/g,'
$1
'))});if($("#text_editor_textarea").length){for(;(tetm=$("#text_editor_textarea").val().match(/^([\S\s]*?)\[table class=cgroups\]\[tr\]\[td class="([ a-zA-Z0-9+\/=]+)"\]([ a-zA-Z0-9+\/=]+)\[\/td\]\[\/tr\]\[\/table\]([\S\s]*?)$/))&&tetm.length==5;){var a=d(tetm[2]).split("|");a&&a.length==2&&(a[0]==cguid||sggid(sguid(a[1])))?$("#text_editor_textarea").val(tetm[1]+"[group="+a[1]+"]"+d(tetm[3])+"[/group]"+tetm[4]):$("#text_editor_textarea").val(tetm[1]+"[crypt="+tetm[2]+"]"+tetm[3]+"[/crypt]"+tetm[4])}tetm=0;$("#text_editor_textarea").closest("form").submit(function(){for(;(tetm=$("#text_editor_textarea").val().match(/^([\S\s]*?)\[crypt=([ a-zA-Z0-9+\/=]+)\]([ a-zA-Z0-9+\/=]+)\[\/crypt\]([\S\s]*?)$/))&&tetm.length==5;)$("#text_editor_textarea").val(tetm[1]+'[table class=cgroups][tr][td class="'+tetm[2]+'"]'+tetm[3]+"[/td][/tr][/table]"+tetm[4]);for(;(tetm=$("#text_editor_textarea").val().match(/^([\S\s]*?)\[group=(.*?)\]([\S\s]*?)\[\/group\]([\S\s]*?)$/))&&tetm.length==5;)$("#text_editor_textarea").val(tetm[1]+'[table class=cgroups][tr][td class="'+g(cguid+"|"+tetm[2])+'"]'+g(tetm[3])+"[/td][/tr][/table]"+tetm[4]);tetm=0})};d=0});