diff --git a/.gitignore b/.gitignore index e61e79f..ca9eee4 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ settings.php .posts.lock .project .settings/ +.idea/ diff --git a/README.md b/README.md index 4fadeb1..91bbb9f 100644 --- a/README.md +++ b/README.md @@ -5,10 +5,13 @@ TinyIB - A Lightweight and Efficient [Image Board](http://en.wikipedia.org/wiki/ **No database? No problem.** Store posts as text files for a portable set-up capable of running on virtually any PHP host. -For demos see [example installations](https://github.com/tslocum/TinyIB/wiki). [![githalytics.com alpha](https://cruel-carlota.pagodabox.com/5135372febbc40bacddbb13c1f0a8333 "githalytics.com")](http://githalytics.com/tslocum/TinyIB) +To allow new threads without requiring an image, see the [Text Board Mode](https://github.com/tslocum/TinyIB/wiki/Text-Board-Mode) page. + +For demos see the [TinyIB Installations](https://github.com/tslocum/TinyIB/wiki) page. [![githalytics.com alpha](https://cruel-carlota.pagodabox.com/5135372febbc40bacddbb13c1f0a8333 "githalytics.com")](http://githalytics.com/tslocum/TinyIB) Features ------------ + - GIF, JPG, PNG and WebA/WebM upload. - Reference links >>### - Delete post via password. - Management panel: @@ -30,6 +33,11 @@ Installing - `git clone git://github.com/tslocum/TinyIB.git ./` 4. Copy **settings.default.php** to **settings.php** 5. Configure **settings.php** + - To allow WebA/WebM upload: + - Ensure your web host is running Linux. + - Install [mediainfo](http://mediaarea.net/en/MediaInfo). On Ubuntu, run ``sudo apt-get install mediainfo``. + - Set ``TINYIB_WEBM`` to ``true``. + - To remove the play icon from thumbnails, delete or rename **video_overlay.png**. 6. [CHMOD](http://en.wikipedia.org/wiki/Chmod) write permissions to these directories: - ./ (the directory containing TinyIB) - ./src/ @@ -41,6 +49,15 @@ Installing - Directories will be verified to be writable. - The file index.html will be created containing the new image board. +Moderating +------------ + + 1. If you are not logged in already, log in to the management panel by clicking **[Manage]**. + 2. On the board, tick the checkbox next to the offending post. + 3. Scroll to the bottom of the page. + 4. Click **Delete** with the password field blank. + - From this page you are able to delete the post and/or ban the author. + Updating ------------ diff --git a/css/burichan.css b/css/burichan.css index 46db906..515f675 100644 --- a/css/burichan.css +++ b/css/burichan.css @@ -1,182 +1,215 @@ html, body { - font-size:12pt; - background:#EEF2FF; - color:#000000; + font-size: 12pt; + background: #EEF2FF; + color: #000000; } + a { - background:inherit; - color:#34345C; - text-decoration:none; - font-family:sans-serif; + background: inherit; + color: #34345C; + text-decoration: none; + font-family: sans-serif; } + a:visited { - background:inherit; - color:#34345C; - text-decoration:none; - font-family:sans-serif; + background: inherit; + color: #34345C; + text-decoration: none; + font-family: sans-serif; } + a:hover { - color:#DD0000; - background:inherit; - font-family:sans-serif; + color: #DD0000; + background: inherit; + font-family: sans-serif; } + .filesize a { - text-decoration:underline; + text-decoration: underline; } + .filesize a:visited { - text-decoration:underline; + text-decoration: underline; } + .adminbar { - background:inherit; + background: inherit; } + .logo { - clear:both; - text-align:center; - background:inherit; - font-size:24pt; - color:#AF0A0F; - width:100%; + clear: both; + text-align: center; + background: inherit; + font-size: 24pt; + color: #AF0A0F; + width: 100%; } + .replymode { - background:#0010E0; - color:#FFFFFF; - width:100%; + background: #0010E0; + color: #FFFFFF; + width: 100%; } + .manageinfo { - background:#00B930; - color:#FFFFFF; - width:100%; + background: #00B930; + color: #FFFFFF; + width: 100%; } + .catalogmode { - background:#0040E0; - color:#FFFFFF; - width:100%; + background: #0040E0; + color: #FFFFFF; + width: 100%; } + .postarea { - background:inherit; + background: inherit; } + .rules { /*font-size:0.7em;*/ width: 468px; font-size: 10px; font-family: sans-serif; } + .rules li { margin-left: 1em; /*text-indent: 0em;*/ } + .postblock { - background:#9988EE; - color:#000000; - font-weight:800; + background: #9988EE; + color: #000000; + font-weight: 800; } + .footer { - font-size:10px; - font-family:sans-serif; + font-size: 10px; + font-family: sans-serif; } + .passvalid { - background:#9988EE; - text-align:center; - width:100%; - color:#ffffff; + background: #9988EE; + text-align: center; + width: 100%; + color: #ffffff; } + .dellist { - background:inherit; - text-align:center; + background: inherit; + text-align: center; } + .delbuttons { - background:inherit; - text-align:center; - padding-bottom:4px; + background: inherit; + text-align: center; + padding-bottom: 4px; } + .managehead { - background:#0F8FE1; - color:#000000; - font-family:sans-serif; - font-size:14px; - padding:0px; + background: #0F8FE1; + color: #000000; + font-family: sans-serif; + font-size: 14px; + padding: 0px; } + .postlists { - background:#FFFFFF; - width:100%; - padding:0px; - color:#000000; + background: #FFFFFF; + width: 100%; + padding: 0px; + color: #000000; } + .row1 { - background:#9AD2F6; - font-family:sans-serif; - font-size:12px; - color:#000000; + background: #9AD2F6; + font-family: sans-serif; + font-size: 12px; + color: #000000; } + .row2 { - background:#FFFFFF; - font-family:sans-serif; - font-size:12px; - color:#000000; + background: #FFFFFF; + font-family: sans-serif; + font-size: 12px; + color: #000000; } + .unkfunc { - color:#789922; + color: #789922; } + .filesize { - font-size:12px; - font-family:sans-serif; - text-decoration:underline; + font-size: 12px; + font-family: sans-serif; + text-decoration: underline; /*padding-left:3em;*/ } + .filetitle { - background:inherit; - font-size:18px; - font-family:serif; - color:#0F0C5D; - font-weight:800; + background: inherit; + font-size: 18px; + font-family: serif; + color: #0F0C5D; + font-weight: 800; } + .postername { - background:inherit; - font-size:12px; - font-family:serif; - color:#117743; - font-weight:800; + background: inherit; + font-size: 12px; + font-family: serif; + color: #117743; + font-weight: 800; } + .oldpost { - background:inherit; - font-size:18px; - font-family:serif; - color:#0F0C5D; - font-weight:800; + background: inherit; + font-size: 18px; + font-family: serif; + color: #0F0C5D; + font-weight: 800; } + .omittedposts { - background:inherit; - font-size:18px; - font-family:serif; - color:#070707; - font-weight:800; + background: inherit; + font-size: 18px; + font-family: serif; + color: #070707; + font-weight: 800; } + .reply { - background:#D6DAF0; - color:#000000; - font-family:serif; + background: #D6DAF0; + color: #000000; + font-family: serif; } + .replyhl { background: #D6BAD0; color: #000000; } + .replytitle { - background:inherit; - font-size:18px; - font-family:serif; - color:#0F0C5D; - font-weight:800; + background: inherit; + font-size: 18px; + font-family: serif; + color: #0F0C5D; + font-weight: 800; } + .commentpostername { - background:inherit; - font-size:12px; - font-family:serif; - color:#117743; - font-weight:800; + background: inherit; + font-size: 12px; + font-family: serif; + color: #117743; + font-weight: 800; } + .thumbnailmsg { - background:inherit; - font-size:9px; - font-family:sans-serif; - color:#000000; + background: inherit; + font-size: 9px; + font-family: sans-serif; + color: #000000; } \ No newline at end of file diff --git a/css/futaba.css b/css/futaba.css index d7f17e3..fbd4008 100644 --- a/css/futaba.css +++ b/css/futaba.css @@ -1,151 +1,182 @@ html, body { - background:#FFFFEE; - color:#800000; + background: #FFFFEE; + color: #800000; } + a { - color:#0000EE; + color: #0000EE; } + a:hover { - color:#DD0000; + color: #DD0000; } -.reflink a:hover{ + +.reflink a:hover { font-weight: bold; } + .logo { - clear:both; - text-align:center; - font-size:2em; - color:#800000; - width:100%; + clear: both; + text-align: center; + font-size: 2em; + color: #800000; + width: 100%; } + .replymode { - background:#E04000; - text-align:center; - padding:2px; - color:#FFFFFF; - width:100%; + background: #E04000; + text-align: center; + padding: 2px; + color: #FFFFFF; + width: 100%; } + .manageinfo { - background:#00B930; - text-align:center; - padding:2px; - color:#FFFFFF; - width:100%; + background: #00B930; + text-align: center; + padding: 2px; + color: #FFFFFF; + width: 100%; } + .catalogmode { - background:#0040E0; - text-align:center; - padding:2px; - color:#FFFFFF; - width:100%; + background: #0040E0; + text-align: center; + padding: 2px; + color: #FFFFFF; + width: 100%; } + .rules { /*font-size:0.7em;*/ width: 468px; font-size: 10px; font-family: sans-serif; } + .rules li { margin-left: 1em; /*text-indent: 0em;*/ } + .postblock { - background:#EEAA88; - color:#800000; - font-weight:800; + background: #EEAA88; + color: #800000; + font-weight: 800; } + .footer { - font-size:12px; - font-family:serif; + font-size: 12px; + font-family: serif; } + .passvalid { - background:#EEAA88; - text-align:center; - width:100%; - color:#ffffff; + background: #EEAA88; + text-align: center; + width: 100%; + color: #ffffff; } + .dellist { font-weight: bold; - text-align:center; + text-align: center; } + .delbuttons { - text-align:center; - padding-bottom:4px; + text-align: center; + padding-bottom: 4px; } + .managehead { - background:#AAAA66; - color:#400000; - padding:0px; + background: #AAAA66; + color: #400000; + padding: 0px; } + .postlists { - background:#FFFFFF; - width:100%; - padding:0px; - color:#800000; + background: #FFFFFF; + width: 100%; + padding: 0px; + color: #800000; } + .row1 { - background:#EEEECC; - color:#800000; + background: #EEEECC; + color: #800000; } + .row2 { - background:#DDDDAA; - color:#800000; + background: #DDDDAA; + color: #800000; } + .unkfunc { - background:inherit; - color:#789922; + background: inherit; + color: #789922; } + .filesize { - text-decoration:none; + text-decoration: none; } + .filetitle { - background:inherit; - font-size:1.2em; - color:#CC1105; - font-weight:800; + background: inherit; + font-size: 1.2em; + color: #CC1105; + font-weight: 800; } + .postername { - color:#117743; - font-weight:bold; + color: #117743; + font-weight: bold; } + .postertrip { - color:#228854; + color: #228854; } + .oldpost { - color:#CC1105; - font-weight:800; + color: #CC1105; + font-weight: 800; } + .omittedposts { - color:#707070; + color: #707070; } + .reply { background: #F0E0D6; color: #800000; } + .replyhl { background: #F0C0B0; color: #800000; } + .replytitle { font-size: 1.2em; - color:#CC1105; - font-weight:800; + color: #CC1105; + font-weight: 800; } + .commentpostername { - color:#117743; - font-weight:800; + color: #117743; + font-weight: 800; } + .thumbnailmsg { font-size: small; - color:#800000; + color: #800000; } .abbrev { - color:#707070; + color: #707070; } + .highlight { - background:#F0E0D6; - color:#800000; + background: #F0E0D6; + color: #800000; border: 2px dashed #EEAA88; } \ No newline at end of file diff --git a/css/global.css b/css/global.css index b2ae048..6f018e4 100644 --- a/css/global.css +++ b/css/global.css @@ -22,9 +22,9 @@ form { } .aa { - white-space: pre; - text-align: left; - font-family: IPAMonaPGothic, Mona, 'MS PGothic', YOzFontAA97 !important; + white-space: pre; + text-align: left; + font-family: IPAMonaPGothic, Mona, 'MS PGothic', YOzFontAA97 !important; } .thumb { @@ -58,7 +58,7 @@ form { text-decoration: none; } -.reflink a:hover{ +.reflink a:hover { color: #800000; } @@ -73,7 +73,7 @@ form { } .doubledash { - vertical-align: top; + vertical-align: top; clear: both; float: left; font-size: 1.75em; @@ -91,7 +91,7 @@ form { .footer { clear: both; - text-align:center; + text-align: center; } .rules { @@ -118,4 +118,6 @@ form { float: right; } -.adminbar a:link, .adminbar a:visited, .adminbar a:active, .adminbar a:hover { text-decoration: none; } \ No newline at end of file +.adminbar a:link, .adminbar a:visited, .adminbar a:active, .adminbar a:hover { + text-decoration: none; +} \ No newline at end of file diff --git a/imgboard.php b/imgboard.php index e0257be..1071f8e 100644 --- a/imgboard.php +++ b/imgboard.php @@ -10,10 +10,16 @@ ob_implicit_flush(); ob_end_flush(); if (get_magic_quotes_gpc()) { - foreach ($_GET as $key => $val) { $_GET[$key] = stripslashes($val); } - foreach ($_POST as $key => $val) { $_POST[$key] = stripslashes($val); } + foreach ($_GET as $key => $val) { + $_GET[$key] = stripslashes($val); + } + foreach ($_POST as $key => $val) { + $_POST[$key] = stripslashes($val); + } +} +if (get_magic_quotes_runtime()) { + set_magic_quotes_runtime(0); } -if (get_magic_quotes_runtime()) { set_magic_quotes_runtime(0); } function fancyDie($message) { die('