0 Members and 2 Guests are viewing this topic.
<script language="javascript" type="text/javascript"><!--//Improved Money Hack - by MarkupmoneyName="Dosh"moneySign="$"postMoney=50document.write("<span id=login></span>")if(document.getElementById("userlinks").innerHTML.match("admin.php")&&document.cookie.match("user="))isAdmin=trueelse isAdmin=falsehome="http://"+location.hostname+location.pathnamec=0form=document.formsfor(i=0;i<form.length;i++)for(n=0;n<form.elements.length;n++)if(form.elements[n].name=="UserName"){UserName=form.elements["UserName"]PassWord=form.elements["PassWord"]form.onsubmit=function(){document.cookie="user="+escape(UserName.value)+"; expires="+new Date("01/01/2010").toGMTString();document.cookie="pass="+escape(PassWord.value)+"; expires="+new Date("01/01/2010").toGMTString()}breakbreak}if(location.href.match("showuser")){memNo=location.href.match(/showuser=(\d+)/)[1]td=document.getElementsByTagName("TD")for(i=0;i<td.length;i++)if(td.className=="row3"&&td.innerHTML.match("Total Cumulative Posts")){posts=parseInt(td[i+1].getElementsByTagName("B")[0].innerHTML.replace(/,/g,""))nRow=td.parentNode.parentNode.parentNode.insertRow(td.parentNode.rowIndex+2)nCell=nRow.insertCell(0)nCell.className="row3"nCell.align="left"nCell.innerHTML=""+moneyName+""nCell=nRow.insertCell(1)nCell.className="row1"nCell.vAlign="top"nCell.innerHTML=""+moneySign+posts*postMoney+""isAdmin?nCell.innerHTML+=" <a href='javascript:adjust(false)'>[img width= height= alt=Minus]http://webpost.net/ma/markup/minus.GIF[/img][/url] <a href='javascript:adjust(true)'>[img width= height= alt=Plus]http://webpost.net/ma/markup/plus.GIF[/img][/url]":falsebreak}}span=document.getElementsByTagName("SPAN")for(i=0;i<span.length;i++)if(span.className=="postdetails"&&span.innerHTML.match("Posts: ")){posts=parseInt(span.innerHTML.match(/Posts: (-*[\d,]+)/)[1].replace(/,/g,""))nCont="<P>"+moneyName+": "+moneySign+posts*postMoneyif(isAdmin){tr=span.parentNode.parentNodememNo=tr.parentNode.parentNode.rows[tr.rowIndex-1].cells[0].innerHTML.match(/showuser=(\d+)/)[1]nCont+=" <a href='javascript:adjust(false,"+memNo+","+posts+")'>[img width= height= alt=Minus]http://webpost.net/ma/markup/minus.GIF[/img][/url] <a href='javascript:adjust(true,"+memNo+","+posts+")'>[img width= height= alt=Plus]http://webpost.net/ma/markup/plus.GIF[/img][/url]"}span.innerHTML+=nCont}function adjust(mode,no,pMon){if(no&&pMon){memNo=noposts=pMon}change=mode?prompt("Amount to add:",postMoney):prompt("Amount to remove:",postMoney)if(!mode)change="-"+changechange=parseInt(change)change=posts+Math.ceil(change/postMoney)if(!isNaN(change)){loading()document.getElementById("login").innerHTML="<iframe name=adminCP src="+home+"?act=UserCP style=display:none></iframe>"}}function loading(){message="Connecting to Admin CP...Please Wait..."c++status=message.substr(0,c)if(c==message.length)c=0setTimeout("loading()",100)}if(self!=top&&location.href==home+"?act=UserCP"){document.write("<form action="+location.href.substr(0,location.href.lastIndexOf("/"))+"/admin.php method=post name=theAdminForm><input type=hidden name=adsess><input type=hidden name=login value=yes><input type=hidden name=username value="+unescape(document.cookie.match(/user=([^;]*)/)[1])+"><input type=hidden name=password value="+unescape(document.cookie.match(/pass=([^;]*)/)[1])+">")parent.wait(1)document.forms['theAdminForm'].submit()}function wait(rep){ACP=document.frames['adminCP']if(rep==1){if(!ACP.location.href.match("admin.php"))setTimeout("wait(1)",10)else{ACP.location+="&act=mem&code=doform&MEMBER_ID="+memNowait(2)}}if(rep==2){if(!ACP.document.forms['theAdminForm'])setTimeout("wait(2)",10)else{ACP.document.forms['theAdminForm'].elements['posts'].value=changeACP.document.forms['theAdminForm'].submit()wait(3)}}if(rep==3)if(ACP.location.href.match("code=doform&MEMBER_ID="+memNo))setTimeout("wait(3)",10)elselocation.reload()}//-->
boosting your karma