Browse Source

playing

adminpanel
153 5 years ago
parent
commit
c8fcd6ba86
18 changed files with 682 additions and 6 deletions
  1. +122
    -0
      css/0ch.css
  2. +125
    -0
      css/4x13.css
  3. BIN
      css/ba.gif
  4. +128
    -0
      css/mob.css
  5. BIN
      css/mona.ttf
  6. +62
    -0
      css/style.css
  7. +17
    -0
      html/create.html
  8. +2
    -0
      html/foot.html
  9. +8
    -0
      html/head.html
  10. +29
    -0
      html/motd.html
  11. +19
    -0
      html/reply.html
  12. BIN
      img/rss.png
  13. +7
    -6
      index.py3
  14. +2
    -0
      ips.txt
  15. +1
    -0
      ips2.txt
  16. +117
    -0
      js/style.js
  17. +3
    -0
      list.txt
  18. +40
    -0
      settings.txt

+ 122
- 0
css/0ch.css View File

@@ -0,0 +1,122 @@
@font-face {
font-family: "mona";
src: url('mona.tff');
}

pre {background-color: #eee; border:1px solid black}
a {color:#153}
h2 {text-align:center}
.front {background-image: url('ba.gif');
padding-left: 2.5%;
padding-right: 2.5%;
position:absolute;
width: 95%;
top:0;}
body {margin:0;padding:0; background-color: #efefef}
table {border-collapse: seperate;
border-spacing: 0;
border: 0px solid #000;
margin-left: 4%}
th {background-color: #444; color: #e4e4e4}
td {background-color: #f4f4f4}
th, td {border: 1px solid #000;
padding: 3px;}

.front > .thread {
margin-left: 2.5%;
margin-right: 2.5%;
border: inset 1px black;
outline: solid 5px #efefef;}

.thread {
background-color: #EFEFEF;
padding: 7px;
margin-bottom: 2em;
clear: both;
text-align: justify;
word-wrap: break-word;
hyphens: auto;
}

div.thread > h3 > a {color:#CC1105;
font-size: 25px;}

.thread > hr {
width: 96%;
height: 2px;
color: black; background-color: black;
text-align: center;
margin-left: 0;
margin-right: 0;
}

div.thread > p {padding-left: 4%; padding-right:4%; line-height: 1.4em}

div.thread > i {padding-left: 0%}

.bump {color: #117743; font-weight: bold}
.sage {color: blue; font-weight: bold;}
.trip {color: #889; font-weight: normal}
.admin{color: #0cc; font-weight: bold}
.rmr {padding-top:0.5em;
padding-left: 2em;
height: 1.6em;
width: 40%;
border: 2px dotted #888;
background-color:#ffc;
font-style: italic;}

.quote {color: #580}
a.thread {color: #153; font-weight:bold}
.post {background-color: #f2f2f2}
pre { max-width: 500px;
font-size-adjust:none;
background-color: #fff;
border:1px solid black;
white-space: pre;
margin-left:5%}

pre > hr {max-width: 500px;}

.spoiler, .spoiler > .quote {color: black; background-color:black !important}
.spoiler:hover, .spoiler:hover > .quote {color: white; background-color: black !important}

.youtube {
background-size: 480px 320px;
background-position: center;
background-repeat: no-repeat;
position: relative;
display: block;
overflow: hidden;
transition: all 200ms ease-out;
cursor: pointer;
margin:0 0 0 4%;
}

iframe {
margin: 9px 0 0 4%;
display:block;
background-position:center;
}

.youtube .play {
background:
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAERklEQVR4nOWbTWhcVRTHb1IJVoxGtNCNdal2JYJReC6GWuO83PM/59yUS3FRFARdFlwYP1CfiojQWt36sRCUurRIdVFXIn41lAoVdRGrG1M01YpKrWjiYmaSl8ybZJL3cd+YA//NLObd3++eO8x79z5jSq5Gw+8kov0AP8vMR5l1BtBZQM4B8ks75wCdZdYZZj5qLZ4hov2Nht9Z9vhKKSIaB/gI4M4w62KeAO6Mte4lYOq20FxrlqqOibhHmeWbvNC9ZfDX1mLae391aN6limO/gwgvAPJbWeAZuSDingdwXTBw7/0IsyaA/Fkh+KqOkD+YNfHej1QKD+y7iVlOhgLvFqFfNJvNGyuBJ+KDAF8MDd0tgS8y64OlgSdJMsysL4cG7SOHkyQZLhTee7+d2R2rAVy/S+Jd7/32ouBHAP4gNNRGQyTHc/84NhqNywZp5rvjjnnvt21aABFeCQ+RLwAf2hQ8s7sv9OCLk6AHNgQvIrvbfzKCD76g/O6cu7lf/iER/aQGgy448pExZmhdegAPhR9sObFWH1gT3lp7DaA/5bkIgJhZPgsNmz02novj+KqeApj1ubwXWe4kdyeznAgNvTpE/HQmvKqOMeuFogTUVQSRno+iaLRLAJF7uIgL9O4ubgL8aWgB7S44mNX+35YpICUiAvS9sBLkq1WzT+NFffl6AuoiApi6NT37h6sWkBIRZGkQ8YtLgyji6e1mBYTqCEBPG2Naz+0BWQgtoGoRgCzEsd9hAN1X5BfnFZASUfrSAFQNsyZ1FJASUVpHiLinDJG8U2cBZYogkrcNs5waBAGdstbeU9zdqpw0gPwwSAI6VUxHyFlDpOcHUUBBIuYNs14aZAE5RVwyzPr3/0EAEY0TyfGNjBWQvwZ+CTSbehfAH29mrID8bET0+0EUkAd8WYDOmqJ3ecsG30yr9wqRfm6Y+a1BEFDEjHfHvWmY9ck6CygHvBVr8Xhtb4ZE5HZA3y8DvBNA1TjnrmXWf+sioMwZX5V/VHXMGGMMoKdDCxCRvRWBdzKzdHEO+EisilbPyopHYqp6S9UCAsz4iojI7hUDAtyXVQgIDd6KnOoaWNkbI6FaPSuZGyMArsi7MZoloB4zviI/Nhr3X95jltwTRQmoIfgisy5ai+me67OI7fE4nrqjrqfK1t0eby0FPRB6oGVlchL3rgnfrq19RKbVBdhV9IOSwJmfmJi4vi/4ThERitwyCxVAFqydshuCX5awhQ9KtmuIWd8IDZED/nXT77rvVVv6sHRKwjYi91poqP7Dr+Y6JJ1VSZIMA3wkPNy6bX+o8Bcm0sXMdwM8Fxo0A3xORPaWBp6uPXsmbxCRD0NDL0dOANhVCXy6iAjMcjbcrMt3RITKwdMVRdFo+y5yvkL4eWZ+zHt/ZVD4dEVRNGotpst+dZZZH8k86lqn2pIvT/eqrNfn2xuyqYPZ8mv7s8pfn/8Pybm4TIjanscAAAAASUVORK5CYII=")
no-repeat center center;
background-size: 64px 64px;
position: absolute;
height: 100%;
width: 100%;
opacity: .8;
filter: alpha(opacity=80);
-webkit-transition: all 0.2s ease-out;
-moz-transition: all 0.2s ease-out;
-o-transition: all 0.2s ease-out;
transition: all 0.2s ease-out;
}

.youtube .play:hover {
opacity: 1;
filter: alpha(opacity=100);
}

+ 125
- 0
css/4x13.css View File

@@ -0,0 +1,125 @@
@font-face {
font-family: "mona";
src: url('mona.tff');
}

pre {background-color: #eee; border:1px solid black; width: 45em;}
pre > hr {width: 45em;}
pre > b {font-size: 120%;}
a {color:#153}
body {padding:2% 5%; background-color:#e0e4e9; max-width: 850px;}
table {border-collapse: seperate;
border-spacing: 0;
border: 0px solid #000;}
th {background-color: #444; color: #e4e4e4}
td {background-color: #f4f4f4}
th, td {border: 1px solid #000;
padding: 3px;}

div.thread{
max-width: 680px;
padding-right: 28px;
padding-bottom: 0;
text-align: justify;
word-wrap: break-word;
hyphens: auto;
border-right: 10px solid black;
}

.front > .thread
{ border-top: 5px solid black;
padding-top: 7px; }


hr {
max-width: 620px;
text-align: left;
margin-left: 0;
}

div.thread > p {padding-left: 4%; line-height: 1.6em}

div.thread > i {padding-left: 0%}

.motd {background-color:white;
padding-left: 30px;
max-width:580px;
border:1px dashed black
text-align: justify;}

.reply {width: 800px; background-color:#e0e4e9; border: 0;
padding-bottom: 35px;}

.bump {color: #153; font-weight: bold}
.sage {color: #444; font-weight: bold; font-style: italic}
.trip {color: #889; font-weight: normal}
.admin{color: #0cc; font-weight: bold}
.rmr {padding-top:0.5em;
padding-left: 2em;
height: 1.4em;
background-color:#ffc;
font-style: italic;}

.closed {padding-top:0.5em;
padding-left: 2em;
padding-right: 2em;
padding-bottom:0.2em;
line-height: 2em;
background-color:#fff;
width: 620px;
}
.closed > img {background-color: #fff;
border: 1px solid black;
padding: 2px;
padding-right:4px;}

.quote {color: #580}
a.thread {color: #153; font-weight:bold}
.post {background-color: #f2f2f2}
.aa {
font-size-adjust:none;
background-color: #eee;
border:1px solid black;
white-space: pre}

.spoiler, .spoiler > .quote {color: black; background-color:black !important}
.spoiler:hover, .spoiler:hover > .quote {color: white; background-color: black !important}

.youtube {
background-size: 480px 320px;
background-position: center;
background-repeat: no-repeat;
position: relative;
display: block;
overflow: hidden;
transition: all 200ms ease-out;
cursor: pointer;
margin:9px auto;
}

iframe {
margin: 5px auto;
display:block;
background-position:center;
}

.youtube .play {
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CxCRvRWBdzKzdHEO+EisilbPyopHYqp6S9UCAsz4iojI7hUDAtyXVQgIDd6KnOoaWNkbI6FaPSuZGyMArsi7MZoloB4zviI/Nhr3X95jltwTRQmoIfgisy5ai+me67OI7fE4nrqjrqfK1t0eby0FPRB6oGVlchL3rgnfrq19RKbVBdhV9IOSwJmfmJi4vi/4ThERitwyCxVAFqydshuCX5awhQ9KtmuIWd8IDZED/nXT77rvVVv6sHRKwjYi91poqP7Dr+Y6JJ1VSZIMA3wkPNy6bX+o8Bcm0sXMdwM8Fxo0A3xORPaWBp6uPXsmbxCRD0NDL0dOANhVCXy6iAjMcjbcrMt3RITKwdMVRdFo+y5yvkL4eWZ+zHt/ZVD4dEVRNGotpst+dZZZH8k86lqn2pIvT/eqrNfn2xuyqYPZ8mv7s8pfn/8Pybm4TIjanscAAAAASUVORK5CYII=")
no-repeat center center;
background-size: 64px 64px;
position: absolute;
height: 100%;
width: 100%;
opacity: .8;
filter: alpha(opacity=80);
-webkit-transition: all 0.2s ease-out;
-moz-transition: all 0.2s ease-out;
-o-transition: all 0.2s ease-out;
transition: all 0.2s ease-out;
}

.youtube .play:hover {
opacity: 1;
filter: alpha(opacity=100);
}

BIN
css/ba.gif View File

Before After
Width: 60  |  Height: 60  |  Size: 856 B

+ 128
- 0
css/mob.css View File

@@ -0,0 +1,128 @@
@font-face {
font-family: "mona";
src: url('mona.tff');
}

pre {background-color: #eee; border:1px solid black;} #width: 45em;}
pre > hr {width: 45em;}
pre > b {font-size: 120%;}
a {color:#153}
body {padding:0 0; background-color:#ddd}
table {border-collapse: seperate;
border-spacing: 0;
border: 0px solid #000;
width: 100% !important}
th {background-color: #444; color: #e4e4e4}
td {background-color: #f4f4f4}
th, td {border: 1px solid #000;
padding: 3px;
font-size: 160% !important}

input {font-size: 140% !important}
form {width: 100% !important}

div.thread{
background-color: #222;
color: #eee;
padding: 4px;
word-wrap: break-word;
hyphens: auto;
width: 100%;
}

.front > .thread {}

div.thread > p {padding: 4%; color: black}

div.thread > a, h3 > a {color: #0b0}

p { width: auto; background-color: #eee}

div.thread > i {padding-left: 0%}

.motd {background-color:white;
width: 90%;
border:1px dashed black
text-align: justify;
padding-right: 4%;}

.reply {background-color:#e0e4e9; border: 0;
padding-top: 35px;
padding-bottom: 35px;}

td < .reply {font-size: 200% !important}

.bump {color: #153; font-weight: bold; display: none}
.sage {color: #444; font-weight: bold; display: none}
.trip {color: #889; font-weight: normal; display: none}
.admin{color: #0cc; font-weight: bold;}
.rmr {padding-top:0.5em;
padding-left: 2em;
font-size: 140%;}

.closed {padding-top:0.5em;
background: #000;
height: 3em;
width: 100%;
margin: 0 auto auto;
padding-left: 2em;
padding-right: 2em;
padding-bottom:0.2em;
line-height: 2em;
width: 620px;
}
.closed > img {background-color: #fff;
border: 1px solid black;
padding: 2px;
padding-right:4px;}

.quote {color: #580}
a.thread {color: #153; font-weight:bold}
.post {background-color: #f2f2f2}
.aa {
## font-size-adjust:none;
background-color: #eee;
border:1px solid black;
white-space: pre}

.spoiler, .spoiler > .quote {color: black; background-color:black !important}
.spoiler:hover, .spoiler:hover > .quote {color: white; background-color: black !important}

.youtube {
background-size: 480px 320px;
background-position: center;
background-repeat: no-repeat;
position: relative;
display: block;
overflow: hidden;
transition: all 200ms ease-out;
cursor: pointer;
margin:9px auto;
}

iframe {
margin: 5px auto;
display:block;
background-position:center;
}

.youtube .play {
background:
url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAERklEQVR4nOWbTWhcVRTHb1IJVoxGtNCNdal2JYJReC6GWuO83PM/59yUS3FRFARdFlwYP1CfiojQWt36sRCUurRIdVFXIn41lAoVdRGrG1M01YpKrWjiYmaSl8ybZJL3cd+YA//NLObd3++eO8x79z5jSq5Gw+8kov0AP8vMR5l1BtBZQM4B8ks75wCdZdYZZj5qLZ4hov2Nht9Z9vhKKSIaB/gI4M4w62KeAO6Mte4lYOq20FxrlqqOibhHmeWbvNC9ZfDX1mLae391aN6limO/gw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6iAjMcjbcrMt3RITKwdMVRdFo+y5yvkL4eWZ+zHt/ZVD4dEVRNGotpst+dZZZH8k86lqn2pIvT/eqrNfn2xuyqYPZ8mv7s8pfn/8Pybm4TIjanscAAAAASUVORK5CYII=")
no-repeat center center;
background-size: 64px 64px;
position: absolute;
height: 100%;
width: 100%;
opacity: .8;
filter: alpha(opacity=80);
-webkit-transition: all 0.2s ease-out;
-moz-transition: all 0.2s ease-out;
-o-transition: all 0.2s ease-out;
transition: all 0.2s ease-out;
}

.youtube .play:hover {
opacity: 1;
filter: alpha(opacity=100);
}

BIN
css/mona.ttf View File


+ 62
- 0
css/style.css View File

@@ -0,0 +1,62 @@
@font-face {
font-family: "mona";
src: url('mona.tff');
}

pre {background-color: #eee; border:1px solid black}
a {color:#153}
body {padding:2% 5%; background-color:#e0e4e9}
table {border-collapse: seperate;
border-spacing: 0;
border: 0px solid #000;}
th {background-color: #444; color: #e4e4e4}
td {background-color: #f4f4f4}
th, td {border: 1px solid #000;
padding: 3px;}

div.thread {
width: 680px;
border-right: 13px solid black;
padding-right: 28px;
text-align: justify;
word-wrap: break-word;
hyphens: auto;
}

hr {
width: 620px;
text-align: left;
margin-left: 0;
}

div.thread > p {padding-left: 4%; line-height: 1.4em}

div.thread > i {padding-left: 0%}

.motd {background-color:white;
padding-left: 30px;
width:580px;
border:1px dashed black
text-align: justify;}

.bump {color: #153; font-weight: bold}
.sage {color: #444; font-weight: bold; font-style: italic}
.trip {color: #889; font-weight: normal}
.admin{color: #0cc; font-weight: bold}
.rmr {padding-top:0.5em;
padding-left: 2em;
height: 1.6em;
background-color:#ffc;
font-style: italic;}

.quote {color: #580}
a.thread {color: #153; font-weight:bold}
.post {background-color: #f2f2f2}
.aa {
font-size-adjust:none;
background-color: #eee;
border:1px solid black;
white-space: pre}

.spoiler {color: black; background-color:black}
.spoiler:hover {color: white; background-color: black}

+ 17
- 0
html/create.html View File

@@ -0,0 +1,17 @@
<form method='post' action='.'><a name='create'></a>
<input type='hidden' name='m' value='create'>
<table style='width:420px'>
<tr><td colspan='3' style='padding: 0.7em 0 0.7em 10%;
background-color: #444; color: #efefef'>
<b>Create a new thread</b>
<tr><td style='width:18%'>
Title: <td colspan='3'>
<input type='text' name='title' maxlength='30' style='width:95%'>
<tr><td>
Name: <td>
<input type='text' name='name' maxlength='18'
placeholder="Anonymous" style="width:85%">
<td colspan='2'><input type='submit' value='Post' />
<tr><td colspan='3'><textarea name='content' rows='9' style='width:100%'></textarea>
</table>
</form>

+ 2
- 0
html/foot.html View File

@@ -0,0 +1,2 @@
<p><div style="padding: 9px 0 0 40%; text-align:left;
font-style: italic"><a href="//github.com/153/iyagi-bbs">[iyagi bbs]</a></div>

+ 8
- 0
html/head.html View File

@@ -0,0 +1,8 @@
<title>{0}</title>
<link rel='stylesheet' href='./css/0ch.css' title='0ch'>
<link rel='alternate stylesheet' href='./css/4x13.css' title='4x13'>
<link rel='alternate stylesheet' href='./css/mob.css' title='mob'>
<link rel='alternate' type='application/atom+xml' title='threads' href='?m=atom;r=t'>
<link rel='alternate' type='application/atom+xml' title='posts' href='?m=atom;r=p'>
<meta name=viewport content='width=850px;initial-scale:auto'>
<script language='javascript' src='./js/style.js'></script>

+ 29
- 0
html/motd.html View File

@@ -0,0 +1,29 @@
<div class='thread' id="motd">
<br>
Affiliates: <a href="//tablecat.ipyo.heliohost.org/lounge/">
Tablecat Lounge</a> &diams; <img src='./img/rss.png'> <a href='?m=atom;r=t'>Threads</a>
/ <img src='./img/rss.png'> <a href='?m=atom;r=p'>Posts</a><br><br>
<br>This is an early version of 4x13's own BBS, iyagi.
You can browse the source code and follow updates / contribute
to the project <a href="//github.com/153/iyagi-bbs">on Github</a>.

<p>Please <i>don't</i> spam or post illegal content. Please <i>do</i>
talk about current events, technology, philosophy, everyday life, or
similar topics; or, share music, videos, or links that might spark
interesting conversation.
<br><br>If your post gets eaten, try inputting your post into <a
href="http://savanttools.com/unicode-entity">this tool</a>, and copy
what it spits out into the reply box. For some reason, a random bug is
getting triggered for some posts...

</p><a href="//tanasinn.info/wiki/A_Guide_to_Anonymous_Boards">
This article</a> is a good introduction to this kind of board.

<br><br><b>Formatting:</b> <ul>
<li> [yt]youtube link[/yt]
<li> [code]<code>code</code>[/code]
<li> [spoiler]<span class='spoiler'>spoiler</span>[/spoiler]
<li> >># at the front of a line to reply to a post #
<li> > at the front of a line to quote
</ul>
</div><p>

+ 19
- 0
html/reply.html View File

@@ -0,0 +1,19 @@
<a name="reply"></a><div class="reply">
<form method='post' action='.' style='width:520px'>
<input type='hidden' name='m' value='reply'>
<input type='hidden' name='t' value='{0}'>
<table style='width:420px'>
<tr><td colspan='3' style='padding: 0.7em 0 0.7em 10%;
background-color: #444; color: #efefef'>
<b>Reply</b>
<tr><td style='width:64%; height: 2.6em'>
Name: &nbsp; <input type='text' name='name' maxlength='18'
placeholder="Anonymous" style="width:69%;">
<td style='width:22%'>
Bump: <input type='checkbox' name='bump' checked>
<td style='width:14%'>
<input type='submit' value='Post'>
<tr><td colspan='3'>
<textarea name='comment' rows='9' style='width:100%' id='{1}'></textarea>
</table>
</form></div></div>

BIN
img/rss.png View File

Before After
Width: 16  |  Height: 16  |  Size: 609 B

+ 7
- 6
index.py3 View File

@@ -52,6 +52,7 @@ def main():
bbs_atom()
return
bbs_header()
print(b_conf)
if select_func:
if select_func in functions:
print("<a href='.'>&lt;&lt; back</a><br>")
@@ -76,7 +77,6 @@ def main():
if not select_func:
bbs_main()

bbs_foot()

def bbs_header():
@@ -160,6 +160,7 @@ def bbs_thread(t_id='', prev=0):
else:
bbs_list()
return
if os.path.isfile(t_fn):
with open(t_fn, "r") as the_thread:
the_thread = the_thread.readlines()
@@ -369,7 +370,6 @@ def bbs_reply(t_fn='', t_id=''):
with open("./html/reply.html") as r_thread:
print(r_thread.read().format(t_fn, t_id))


def bbs_atom(m='t'):
amode = form.getvalue('r')
if amode == 'p':
@@ -468,10 +468,11 @@ def do_reply():
local_dt = time.localtime()
date_str = "%Y-%m-%d [%a] %H:%M"
reply_attrs['ldt'] = time.strftime(date_str, local_dt)
reply_string = reply_attrs['name'] + " >< " \
+ reply_attrs['ldt'] + " >< " \
+ reply_attrs['bump'] + " >< " \
+ reply_attrs['comment'] + "\n"

reply_string = " >< ".join([reply_attrs['name'], \
reply_attrs['ldt'], reply_attrs['bump'], \
reply_attrs['comment'] + "\n"])
fale = 0
with open(reply_attrs['t'], "r") as the_thread:
ter = the_thread.read().splitlines()


+ 2
- 0
ips.txt View File

@@ -0,0 +1,2 @@
:)
127.0.0.1 | ./threads/02.txt | Anonymous >< now >< 1 >< Example post to display in ./threads/ips.txt

+ 1
- 0
ips2.txt View File

@@ -0,0 +1 @@


+ 117
- 0
js/style.js View File

@@ -0,0 +1,117 @@
function setActiveStyleSheet(title) {
var i, a, main;
for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
a.disabled = true;
if(a.getAttribute("title") == title) a.disabled = false;
}
}
}

function getActiveStyleSheet() {
var i, a;
for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) return a.getAttribute("title");
}
return null;
}

function getPreferredStyleSheet() {
var i, a;
for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
if(a.getAttribute("rel").indexOf("style") != -1
&& a.getAttribute("rel").indexOf("alt") == -1
&& a.getAttribute("title")
) return a.getAttribute("title");
}
return null;
}

function createCookie(name,value,days) {
if (days) {
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
var expires = "; expires="+date.toGMTString();
}
else expires = "";
document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
return null;
}

window.onload = function(e) {
var cookie = readCookie("style");
var title = cookie ? cookie : getPreferredStyleSheet();
setActiveStyleSheet(title);
}

window.onunload = function(e) {
var title = getActiveStyleSheet();
createCookie("style", title, 365);
}

var cookie = readCookie("style");
var title = cookie ? cookie : getPreferredStyleSheet();
setActiveStyleSheet(title);

function addText(elId,text) {
text = ">>" + text + " \\r";
document.getElementById(elId).value += text;
}


"use strict";
function r(f){/in/.test(document.readyState)?setTimeout('r('+f+')',9):f()}
r(function(){
if(!document.getElementsByClassName) {
// IE8 support
var getElementsByClassName = function(node, classname) {
var a = [];
var re = new RegExp('(^| )'+classname+'( |$)');
var els = node.getElementsByTagName("*");
for(var i=0,j=els.length; i<j; i++)
if(re.test(els[i].className))a.push(els[i]);
return a;
}
var videos = getElementsByClassName(document.body,"youtube");
}
else {
var videos = document.getElementsByClassName("youtube");
}

var nb_videos = videos.length;
for (var i=0; i<nb_videos; i++) {
// Based on the YouTube ID, we can easily find the thumbnail image
videos[i].style.backgroundImage = 'url(http://i.ytimg.com/vi/' + videos[i].id + '/mqdefault.jpg)';

// Overlay the Play icon to make it look like a video player
var play = document.createElement("div");
play.setAttribute("class","play");
videos[i].appendChild(play);

videos[i].onclick = function() {
// Create an iFrame with autoplay set to true
var iframe = document.createElement("iframe");
var iframe_url = "https://www.youtube.com/embed/" + this.id + "?autoplay=1&autohide=1";
if (this.getAttribute("data-params")) iframe_url+='&'+this.getAttribute("data-params");
iframe.setAttribute("src",iframe_url);
iframe.setAttribute("frameborder",'0');

// The height and width of the iFrame should be the same as parent
iframe.style.width = this.style.width;
iframe.style.height = this.style.height;

// Replace the YouTube thumbnail with YouTube Player
this.parentNode.replaceChild(iframe, this);
}
}
});

+ 3
- 0
list.txt View File

@@ -0,0 +1,3 @@
01 >< 0 >< To get started... >< 1 >< 1
02 >< 2015-12-30 [Wed] 21:07 >< post shortening >< 5 >< 1
00 >< 0 >< placeholder thread >< 5 >< 1

+ 40
- 0
settings.txt View File

@@ -0,0 +1,40 @@
#0 This is used in the header / RSS
Board name: iyagi bbs

#1 Absolute path on the web
Board URL: /bbs/

#2 Admin's displayed name
Mod username: Admin

#3 The tripcoded version of your password
Mod pw: tyF/EWEkIY

#4 Unused
Theme: alpha

#5 Relative, on disk
Thread storage: ./threads/

#6 Relative, on disk
Thread list: list.txt

#7 Maximum number of replies a thread can have
# (suggested: 100 - 1000)
Reply limit: 100

#8 Used for the RSS
Full board URL: http://127.0.0.1/bbs/

#9 Used for the RSS
Time zone: :00-0800

#10, 11 Relative locations on disk
Post IP log: ips.txt
Thread IP log: ips2.txt

#12 Threads to display on front page
Show recent: 7

#13 Replies to show in the front page's threads
Show replies: 3

Loading…
Cancel
Save