'; function getCookie(key){ key+="=";MyCookie=document.cookie+";";start=MyCookie.indexOf(key); if(start!=-1){end=MyCookie.indexOf(";",start);return(unescape(MyCookie.substring(start+key.length,end)));} return(""); } function setCookie(key,val) { nowtime=parseInt((new Date()).getTime()/1000);LimitDate = new Date();LimitDate.setTime(nowtime*1000+31536000000); document.cookie= key + "=" + escape(val) + "; expires=" + LimitDate.toGMTString(); } function iconview(){ ivw=window.open("about:blank","","width=350, height=350, scrollbars"); with(ivw.document){ write(header+""); for(i=0;i'); write(''); } write("
'+img(iconurl[i],100,100)+'
"+footer); } } function dec_eql_scln(str) { str = str.split('&EQL');str = str.join('='); str = str.split('&SCLN');str = str.join(';'); return (str); } function dec_all(str) { str = str.split('>');str = str.join('>'); str = str.split('<');str = str.join('<'); str = str.split('"');str = str.join('"'); str = str.split('&');str = str.join('&'); str = str.split(''');str = str.join('\''); return (str); } function inp(t,n,v,c,e){ o=""; if(t!=null) o+=' type="'+t+'"'; if(n!=null) o+=' name="'+n+'"'; if(v!=null) o+=' value="'+v+'"'; if(c!=null) o+=' class="'+c+'"'; if(e!=null) o+=' '+e; return (''); } function img(src,maxw,maxh){ if(src.length==0) return(' '); ico=new Image();ico.src=src;addw="";addh=""; if(maxw>0){if(ico.width>maxw){addw=' width='+maxw;}} if(maxh>0){if(ico.height>maxh){addh=' height='+maxh;}} return (''); } function chkwords(){ with(parent.l.document.forms[0]){ setCookie("B5NM",n.value);setCookie("B5ML",m.value);setCookie("B5DL",d.value); setCookie("B5HP",w.value);setCookie("B5IC",i.value);setCookie("B5CL",c.value); } if(denywords.length==0) return true; words=new Array();words=denywords.split(",");o="";o1="に禁止用語「";o2="」が含まれています\n"; for(i=0;i<(words.length);i++){ var rgexp = new RegExp(words[i], "ig"); if(parent.l.document.forms[0].n.value.match(rgexp)!=null){o+=rstring[2]+o1+words[i]+o2;parent.l.document.forms[0].n.value="";} if(parent.l.document.forms[0].m.value.match(rgexp)!=null){o+=rstring[3]+o1+words[i]+o2;parent.l.document.forms[0].m.value="";} if(parent.l.document.forms[0].w.value.match(rgexp)!=null){o+=rstring[4]+o1+words[i]+o2;parent.l.document.forms[0].w.value="";} if(parent.l.document.forms[0].t.value.match(rgexp)!=null){o+=rstring[7]+o1+words[i]+o2;parent.l.document.forms[0].t.value="";} if(parent.l.document.forms[0].b.value.match(rgexp)!=null){o+=rstring[8]+o1+words[i]+o2;parent.l.document.forms[0].b.value="";} } o = dec_all(dec_eql_scln(o)); if(o.length>0){alert(o);return false;} return true; } function resreload(i){ res=new Array();res=copy[i].split("<"); b=new Array(10);b=res[0].split("\t");restm=b[0];resip=b[1]; setTimeout('',100); with(parent.l.document){ write(header+header2+cm+'
'); main(copy[i],i,1); write("ここに返信します。
"+get_top(1,restm,resip,0)+'
'+footer2+footer); } setvalue(); } function del(i){ res=new Array();res=copy[i].split("<"); b=new Array(10);b=res[0].split("\t");restm=b[0];resip=b[1]; ui=new Date();ui.setTime(parseInt(b[0])*1000); tmp_r="
"+inp("hidden","tm",restm)+inp("hidden","ip",resip)+inp("checkbox","del0")+b[8].substr(0,50)+"("+ui.toLocaleString()+")
"+b[9].substr(0,50)+"
"; for(j=1;j"+b[8]+ui.toLocaleString()+"
"+b[9].substr(0,50)+"
"; } tmp_r+=inp("hidden","bbs5userid",bbs5userid); tmp_r+=inp("hidden","pageno",pageno); tmp_r+=inp("hidden","a",i); tmp_r+="
"+rstring[9]+" or MasterPasswd: "+inp("submit","",bdel,"b"); if(allowmdf==1) tmp_r+=inp("submit","modify",bmdf,"b"); tmp_r+="
"; setTimeout('',100); tmp_r = dec_eql_scln(tmp_r); parent.l.document.write(header+cm+header2+tmp_r+footer2+footer); } function modify(tm,ip,i,no){ res=new Array();res=copy[i].split("<"); b=new Array(10);b=res[no].split("\t");restm=b[0];resip=b[1]; b[9]=b[9].replace(/>/ig,"\n"); b[9] = dec_all(b[9]); b[2] = dec_all(b[2]); b[8] = dec_all(b[8]); if((iconurl.length-1) < b[5]) b[5]=0; with(parent.l.document){ write(header+header2+cm+'
'); write(get_top(2,tm,ip,no)); write('
'+footer2+footer); forms[0].n.value=b[2];forms[0].m.value=b[3];forms[0].w.value=b[4];forms[0].t.value=b[8];forms[0].b.value=b[9];forms[0].i.value=b[5];forms[0].c[b[6]].checked=true; } } function main(a,i,hoge){ nowtime=parseInt((new Date()).getTime()/1000); res=new Array();res=a.split("<"); b=new Array(10);b=res[0].split("\t");restm=b[0];resip=b[1]; b[8]=""+b[8]+""; if(recnewh!=""){if((nowtime-b[0])<=(recnewh*3600)){if(recnew!="") b[8]=img(recnew)+b[8];else b[8]="NEW! "+b[8];}} b[9]=b[9].replace(/>/ig,"
"); if(allowtag!=1) b[9]=b[9].replace(/(https?|ftp|gopher|telnet|whois|news):([\w|\:\!\#\$\%\=\&\-\^\`\\\|\@\~\[\{\]\}\;\+\*\,\.\?\/]+)/ig,"$1\:$2<\/a>"); if(b[5]=="") b[5]="0";if(b[6]=="") b[6]="0"; ui=new Date();ui.setTime(parseInt(b[0])*1000); if(recbmail!="") mail=img(recbmail); else mail="MAIL"; if(recbweb!="") web=img(recbweb); else web="WEB"; iurl=new String(); if(iconurl[b[5]]==null) iurl="";else iurl=iconurl[b[5]]; ico=new Image();if(iurl==""){icow=0;}else{ico.src=iurl;icow=ico.width;} tmp_r=b[8]+"
"+ui.toLocaleString()+" "+b[2]+""; if(b[3]!="") tmp_r+=" "+mail+""; if(b[4]!="") tmp_r+=" "+web+""; tmp_r+="
"; body="
"+tmp_r+"
"+img(iurl)+" "+b[9]+"
"; for(j=1;j"; if(recnewh!=""){if((nowtime-b[0])<=(recnewh*3600)){if(recnew!="") b[8]=img(recnew)+b[8];else b[8]="NEW! "+b[8];}} b[9]=b[9].replace(/>/ig,"
"); if(allowtag!=1) b[9]=b[9].replace(/(https?|ftp|gopher|telnet|whois|news):([\w|\:\!\#\$\%\=\&\-\^\`\\\|\@\~\[\{\]\}\;\+\*\,\.\?\/]+)/ig,"$1\:$2<\/a>"); if(b[5]=="") b[5]="0";if(b[6]=="") b[6]="0"; ui=new Date();ui.setTime(parseInt(b[0])*1000); iurl=new String(); if(iconurl[b[5]]==null) iurl="";else iurl=iconurl[b[5]]; ico=new Image();if(iurl==""){icow=0;}else{ico.src=iurl;icow=ico.width;} tmp_r=new String(); if(j==1) tmp_r="
";else tmp_r="
"; tmp_r+=b[8]+"
"+ui.toLocaleString()+" "+b[2]+""; if(b[3]!="") tmp_r+=" "+mail+""; if(b[4]!="") tmp_r+=" "+web+""; tmp_r+="
"; body+="
"; if(resicnlay==1) body+=""; if(resicnlay==2) body+=""; body+="
"+tmp_r+"
"+b[9]+" "+img(iurl)+""+img(iurl)+" "+b[9]+"
"; } jumpurl='parent.l.location.href=\'/bin/res.cgi?'+i+'\'';deljumpurl='parent.l.location.href=\'/bin/dlm.cgi?'+i+'\''; if(!hoge){ if(allowres==1) body+=inp("button","",bres,"b",'onClick="javascript:'+jumpurl+'"')+' '; if(allowdel==1) body+=inp("button","",bdel,"b",'onClick="javascript:'+deljumpurl+'"'); body="
"+lay(body,recblay)+"
"; } if(allowtag==1){ body = body.split('<');body = body.join('<'); body = body.split('>');body = body.join('>'); body = body.split('"');body = body.join('"'); } body=body.replace(/<(\/?script.*)>/ig,"<$1>"); body=body.replace(/<(\/?style.*)>/ig,"<$1>"); body=body.replace(/<(\/?xml.*)>/ig,"<$1>"); body=body.replace(/<(\/?xmp.*)>/ig,"<$1>"); b1="

"; b2="
"; body = dec_eql_scln(body); b1 = dec_eql_scln(b1); b2 = dec_eql_scln(b2); body=b1+body+b2; parent.l.document.write(lay(body,reclay)); } function toptr(i,e){ if(topicon.length==0) topiconurl='';else topiconurl=''; return (""+topiconurl+""+rstring[i]+""+e+""); } function get_top(res,tm,ip,rno){ action="";if(res==1) action="r";if(res==2) action="m"; body=new String();body2=new String(); body3=new String();body3=freearea; body3 = body3.split('\\n');body3 = body3.join('\n'); body3 = body3.split('&EQL');body3 = body3.join('='); body3 = body3.split('&SCLN');body3 = body3.join(';'); body3 = body3.split('>');body3 = body3.join('>'); body3 = body3.split('<');body3 = body3.join('<'); body3 = body3.split('"');body3 = body3.join('"'); body3 = body3.split('&');body3 = body3.join('&'); body3 = body3.split(''');body3 = body3.join('\''); if(res!=1) body+=body3; body+="
"; body+=''; body+=toptr(2,"")+toptr(7,"")+toptr(8,"")+toptr(3,"")+toptr(4,""); puticon=0;for(j=0;j"+iconname[j]; else body2+="
ホームページへ戻る
"; if(res==1 && allowage==1) body+="記事を上げる"+inp("checkbox","age")+"

"; if(autoage==1) body+=inp("hidden","age","on"); body+=inp("submit","",bwrite,"b")+"
"+inp("hidden","bbs5userid",bbs5userid)+"
"; body = dec_eql_scln(body); return lay(body,rectlay); } function lay(str,num){ o='';if(num==0) o='center';else if(num==1) o='left';else if(num==2) o='right'; return ('
'+str+'
'); } function bottom(){ with(parent.l.document){ if(parent.f.searchrt==0){ bback = dec_eql_scln(bback); bnext = dec_eql_scln(bnext); write("

"); if(pageno > 0) write(inp("button","",bback,"b","onclick='parent.f.page(0)'")); if(recno > (pageno+1)*20) write(inp("button","",bnext,"b","onclick='parent.f.page(1)'")); write("

"); srch=inp("text","str","","sc")+inp("hidden","bbs5userid",bbs5userid)+inp("submit","","検索","b"); }else{ parent.f.searchrt=0; srch=""+inp("button","",bback,"b","onclick='parent.l.location.href=parent.f.baseurl;'")+"
"; } write(lay(srch,0)); } } function page(i){ if(i) pageno++;else pageno--; url=baseurl+'?'+pageno; parent.l.location.href=url; } function setvalue(){ with(parent.l.document.forms[0]){ n.value=getCookie("B5NM");m.value=getCookie("B5ML");d.value=getCookie("B5DL"); w.value=getCookie("B5HP");i.value=getCookie("B5IC");c.value=getCookie("B5CL"); } } function reload(a){ copy=a; setTimeout('',100); with(parent.l.document){ write(header+header2+cm+'
'); write(get_top(0,0,0,0));for(i=0;i<(a.length-1);i++){main(a[i],i,0);}bottom(); write('
'+footer2+footer); } setvalue(); } baseurl='/l/'+bbs5userid+'.cgi'; //if(ad!=null) baseurl+='?'+ad; parent.l.location.href=baseurl+'?0';