Post by Trip on Nov 22, 2014 10:44:55 GMT -5
BoardWorks
-I did not release this code because I did not finish it entirely, infact, I never had the chance to finish it.
Boardworks component script:
-I did not release this code because I did not finish it entirely, infact, I never had the chance to finish it.
<script>
//Board Works
//Created by Trip
//It's Legal, lol, but ermm, BATTLE TIME! :D
//Main Footer ONLY!!!!
//Creation Panel
if(location.href.match(/action=admin/gi)){
kuru = document.getElementsByTagName('table')[6];
alive = kuru.insertRow(-1).insertCell(-1);
alive.className="windowbg2";
alive.align="center";
alive.innerHTML="<b><em><a href='/index.cgi?action=headersfooters&bwacp'>Board Works Administration Area</a></em></b>";
}
//Admin Panel
if(location.href.match(/rs&bwacp/)){
document.title = "Board Works ACP";
//Info Components
var widthInfo = "";
var heightInfo = "";
var topOne = "";
var topTwo = "";
var topThree = "";
var topFour = "";
var theNotes = "";
//Gather Info
var kazo = document.getElementsByTagName('textarea');
for(e=0;e<kazo.length;e++){
if(kazo[e].name=="footer"){
mercury = kazo[e].value.match(/mTB(.+?)dth="(\d+)%"/);
widthInfo = RegExp.$2;
venus = kazo[e].value.match(/mTB(.+?)ght="(\d+)%"/);
heightInfo = RegExp.$2;
earth = kazo[e].value.match(/ettes\[0\] = "(.+?)"/);
topOne = RegExp.$1;
mars = kazo[e].value.match(/ettes\[1\] = "(.+?)"/);
topTwo = RegExp.$1;
jupiter = kazo[e].value.match(/ettes\[2\] = "(.+?)"/);
topThree = RegExp.$1;
saturn = kazo[e].value.match(/ettes\[3\] = "(.+?)"/);
topFour = RegExp.$1;
pluto = kazo[e].value.match(/var(\s)notes(\s)=(\s)"(.*)"/i);
theNotes = RegExp.$4;
}
}
//HTML components
var sun = '<scr'+'ipt src="http://www.tripmachina.com/Misc/bwriter.js">';
sun+='</scr'+'ipt>';
var zForm = document.getElementsByTagName('form');
for(r=0;r<zForm.length;r++){
if(zForm[r].method=="post"){
zForm[r].style.display = 'none';
document.write(sun);
}
}
}
//Find the Main Table
if(location.href.match(/(=login2|=logout|.com$|.cgi$|.com\/$)/)){
var mTB = document.getElementsByTagName('table');
for(v=0;v<mTB.length;v++){
if(mTB[v].className=="bordercolor" && mTB[v].innerHTML.match(/General/)){
//Main Table Type
mTB[v].width="100%";
mTB[v].height="100%";
//Let Guests See?
var gstBuild = "<br /><br />";
gstBuild+="<table class='bordercolor' width='100%' ";
gstBuild+="align='center' cellPadding='3'>";
gstBuild+="<td align='center' class='titlebg'><b>";
gstBuild+="<font size=-2>Forum Information Log</font>";
gstBuild+="</b></td><tr>";
gstBuild+="<td align='center' class='catbg'>";
gstBuild+="Only Members May View The Forums";
gstBuild+="</td></tr></table><br /><br />";
mTx = document.getElementsByTagName('td')[2];
if(mTx.innerHTML.match(/Welcome/gi) && !location.href.match(/(registe(r|r2)|=login)/)){
//mTB[v].parentNode.innerHTML = gstBuild;
}
//Change the Top Features
tFeatures = mTB[v].getElementsByTagName('td');
var features = new Array(4);
features[0] = "Forum Name";
features[1] = "Topics";
features[2] = "Posts";
features[3] = "Last Post";
var featurettes = new Array(4);
featurettes[0] = "Forum Name";
featurettes[1] = "Topics";
featurettes[2] = "Posts";
featurettes[3] = "Last Post";
for(x=0;x<tFeatures.length;x++){
for(w=0;w<features.length;w++){
for(y=0;y<featurettes.length;y++){
if(tFeatures[x].className=="titlebg" && tFeatures[x].innerHTML.match(features[w])){
tFeatures[x].innerHTML = tFeatures[x].innerHTML.replace(features[w],featurettes[w]);
}
}
}
}
//Kill Mods with gun?
var kaiko = mTB[v].getElementsByTagName('i');
for(s=0;s<kaiko.length;s++){
//kaiko[s].innerHTML = "";
}
//Add Important Messages
var notes = "See our wonderful boards";
var kiki = mTB[v].insertRow(-1).insertCell(-1);
kiki.className="windowbg2";
kiki.align = "center";
kiki.border = "3";
kiki.innerHTML = "<hr width='100%'>";
kiki.innerHTML+= notes.bold();
kiki.innerHTML+="<hr width='100%'>";
}
}
}
function WHSubber(){
var kazo = document.getElementsByTagName('textarea');
var mazo = document.getElementsByTagName('input');
for(e=0;e<kazo.length;e++){
for(y=0;y<mazo.length;y++){
for(z=0;z<mazo.length;z++){
if(kazo[e].name=="footer"){
if(mazo[y].name=="fw"){
ercury = kazo[e].value.match(/mTB(.+?)dth="(\d+)%"/);
kazo[e].value = kazo[e].value.replace(RegExp.$2,mazo[y].value);
if(mazo[z].name=="fh"){
enus = kazo[e].value.match(/mTB(.+?)ght="(\d+)%"/);
kazo[e].value = kazo[e].value.replace(RegExp.$2,mazo[z].value);
}
}
}
}
}
}
}
function BMods(){
var kazo = document.getElementsByTagName('textarea');
var mazo = document.getElementsByTagName('input');
for(e=0;e<kazo.length;e++){
for(y=0;y<mazo.length;y++){
if(kazo[e].name=="footer"){
if(mazo[y].name=="showmod"){
if(mazo[y].checked==true){
kazo[e].value = kazo[e].value.replace('//kaiko[s]','kaiko[s]');
if(mazo[y].checked==false){
kazo[e].value = kazo[e].value.replace('kaiko[s]','//kaiko[s]');
}
}
}
}
}
}
}
function BGuest(){
var kazo = document.getElementsByTagName('textarea');
var mazo = document.getElementsByTagName('select');
for(e=0;e<kazo.length;e++){
for(y=0;y<mazo.length;y++){
if(kazo[e].name=="footer"){
if(mazo[y].name=="fview"){
if(mazo[y].options.selectedIndex==0){
kazo[e].value = kazo[e].value.replace("//mTB[v].parentNode.innerHTML = gstBuild","mTB[v].parentNode.innerHTML = gstBuild");
if(mazo[y].options.selectedIndex==1){
kazo[e].value = kazo[e].value.replace("mTB[v].parentNode.innerHTML = gstBuild","//mTB[v].parentNode.innerHTML = gstBuild");
}
}
}
}
}
}
}
//This is gonna slow your browser to fuck XD
function LadiiiiiiiiiiiiiiesesAndGentleMen(){
var kazo = document.getElementsByTagName('textarea');
var mazo = document.getElementsByTagName('input');
for(e=0;e<kazo.length;e++){
for(y=0;y<mazo.length;y++){
for(z=0;z<mazo.length;z++){
if(kazo[e].name=="footer"){
if(mazo[y].name=="sn"){
earth = kazo[e].value.match(/ettes\[0\] = "(.+?)"/);
kazo[e].value = kazo[e].value.replace(RegExp.$1,mazo[y].value);
if(mazo[z].name=="st"){
mars = kazo[e].value.match(/ettes\[1\] = "(.+?)"/);
kazo[e].value = kazo[e].value.replace(RegExp.$1,mazo[z].value);
}
}
}
}
}
}
}
function oohhhItsRaiiningMeeeeen_HallelujahXD(){
var kazo = document.getElementsByTagName('textarea');
var mazo = document.getElementsByTagName('input');
for(e=0;e<kazo.length;e++){
for(a=0;a<mazo.length;a++){
for(c=0;c<mazo.length;c++){
if(kazo[e].name=="footer"){
if(mazo[a].name=="sp"){
jupiter = kazo[e].value.match(/ettes\[2\] = "(.+?)"/);
kazo[e].value = kazo[e].value.replace(RegExp.$1,mazo[a].value);
if(mazo[c].name=="sl"){
uranu = kazo[e].value.match(/ettes\[3\] = "(.+?)"/);
kazo[e].value = kazo[e].value.replace(RegExp.$1,mazo[c].value);
}
}
}
}
}
}
}
function whoNotes(){
var kazo = document.getElementsByTagName('textarea');
var mazo = document.getElementsByTagName('input');
for(e=0;e<kazo.length;e++){
for(y=0;y<mazo.length;y++){
if(kazo[e].name=="footer"){
if(mazo[y].name=="notery"){
luto = kazo[e].value.match(/var(\s)notes(\s)=(\s)"(.*)"/i);
kazo[e].value = kazo[e].value.replace(RegExp.$4,mazo[y].value);
}
}
}
}
}
function savemod(){
alert('Please wait while data saves securely...');
LadiiiiiiiiiiiiiiesesAndGentleMen();
oohhhItsRaiiningMeeeeen_HallelujahXD();
alert('Data Securely Save, now you may properly Full Save');
}
function fullSave(){
WHSubber();BMods();BGuest();BGuest();whoNotes();
alert('Save Complete!! Please wait while we redirect you...');
setTimeout('document.forms[0].submit();',1200);
}
</script>
Boardworks component script:
var acpBuild = "<table class='bordercolor' align='center' width='92%'>";
acpBuild+="<td align='center' class='catbg'>Board Works Administration Panel";
acpBuild+="</td><tr><tr><tr><td align='left' class='windowbg2'><b>Main ";
acpBuild+="Forum Table Size Modifications</b></td></tr></tr></tr><tr>";
acpBuild+="<td align='left' class='windowbg'><b>Forums Width: <input type='text' name='fw' value='"+widthInfo+"'><b style='float:right'>Forums Height: <input type='text' name='fh' value='"+heightInfo+"'></b></td></tr><tr>";
acpBuild+="<td align='left' class='windowbg2'><b>Viewing - Board Access Administration</b></td><tr>";
acpBuild+="<td align='center' class='windowbg'><u>Forum Viewing Personnel</u> <select name='fview'><option value='memonly'>Members Only<option value='gmem' selected>Guests and Members</select></td></tr><tr>";
acpBuild+="<td align='center' class='windowbg2'><b>Forum Statistical Affiliation Administration</b></td></tr><tr>";
acpBuild+="<td class='windowbg'><b>Statistical Name:</b> <input type='text' value='"+topOne+"' name='sn'><br /><b style='float:right'>Statistical Topics: <input type='text' value='"+topTwo+"' name='st'></b><br /><b>Statistical Posts:</b> <input type='text' value='"+topThree+"' name='sp'><br /><b style='float:right'>Statistical Last Post: <input type='text' value='"+topFour+"' name='sl'></b></td></tr><tr>";
acpBuild+="<td align='left' class='windowbg2'><b>Forum Moderators Show Administration</b></td></tr><tr>";
acpBuild+="<td align='center' class='windowbg'>Hide Forum Moderators? <input type='checkbox' name='showmod'> (<i>Leave unchecked to Show Forum Moderators</i>)";
acpBuild+="</td></tr><tr>";
acpBuild+="<td align='left' class='windowbg2'><b>Daily Forum Notes Incorporation</b></td></tr><tr>";
acpBuild+="<td align='center' class='catbg'><u>Forum Notes Will Appear Under Forum Table</u></td></tr><tr><td align='left' class='windowbg'>Notes: <input type='text' value='"+theNotes+"' name='notery' size='100'></td></tr><tr><tr><tr><td align='center' class='titlebg'><input type='button' value='Save Modifications' onClick='savemod();this.disabled=true;'><input type='button' value='Full Save' name='suba' onClick='fullSave();this.disabled=true;'></td></tr></tr></tr></table>";
document.body.innerHTML+=acpBuild;
[PREVIEW]