Guest User

http://s301826463.onlinehome.fr/fdf/viewtopic.php?pid=32

a guest
Apr 15th, 2011
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var guids=[[-3,"invité"],[-2,"tous"],[-1,"membre"],[1,"admin"],[2,"modo"]];
  2. var grefresh= 24;
  3.  
  4. function sguid(c){c=c.replace('\0','');for(i=0;i<guids.length;i++)if(c==guids[i][1])return guids[i][0];return 0};function sggid(c){for(i=0;i<cggid.length;i++)if(parseInt(c)==parseInt(cggid[i]))return cggid[i];return 0};function g(d){var b=0,e=0,c="",a;for(i=0;i<3*((d.length+2)/3);i++)if(a=i<d.length?d.charCodeAt(i):0,b<<=8,b+=a,++e==3){for(j=0;j<4;j++)a=(b&16515072)>>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;i<d.length;i++){a=d.charCodeAt(i);if(a==61)break;if(a>32&&(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};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("<span></span>").parent().html(d($(this).html()).replace(/&/g,"&amp;").replace(/\"/g,"&quot;").replace(/\'/g,"&#039;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\n/g,"<br />\n").replace(/\[b\]([\s\S]*?)\[\/b\]/g,'<strong>$1</strong>').replace(/\[i\]([\s\S]*?)\[\/i\]/g,'<em>$1</em>').replace(/\[url\](.*?)\[\/url\]/g,'<a href="$1">$1</a>').replace(/\[img\](.*?)\[\/img\]/g,'<img src="$1" />').replace(/\[center]([\s\S]*?)\[\/center\]/g,'<div style="text-align:center">$1</div>'))});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});
Add Comment
Please, Sign In to add comment