Typos and minor cleanup

This commit is contained in:
Trevor Slocum 2015-06-25 00:10:12 -07:00
parent 21e8b5884d
commit 9b41846002
8 changed files with 402 additions and 406 deletions

View File

@ -5,7 +5,7 @@ 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. **No database? No problem.** Store posts as text files for a portable set-up capable of running on virtually any PHP host.
To allow new threads without requiring an image, see the [Text Board Mode](https://github.com/tslocum/TinyIB/wiki/Text-Board-Mode) page. **Not looking for an image board script?** TinyIB is able to allow new threads without requiring an image, or even disallow images entirely. See the [Text Board Mode](https://github.com/tslocum/TinyIB/wiki/Text-Board-Mode) wiki page for instructions.
For demos see the [TinyIB Installations](https://github.com/tslocum/TinyIB/wiki) page. For demos see the [TinyIB Installations](https://github.com/tslocum/TinyIB/wiki) page.

View File

@ -113,13 +113,13 @@ a:hover {
color: #000000; color: #000000;
font-family: sans-serif; font-family: sans-serif;
font-size: 14px; font-size: 14px;
padding: 0px; padding: 0;
} }
.postlists { .postlists {
background: #FFFFFF; background: #FFFFFF;
width: 100%; width: 100%;
padding: 0px; padding: 0;
color: #000000; color: #000000;
} }

View File

@ -91,13 +91,13 @@ a:hover {
.managehead { .managehead {
background: #AAAA66; background: #AAAA66;
color: #400000; color: #400000;
padding: 0px; padding: 0;
} }
.postlists { .postlists {
background: #FFFFFF; background: #FFFFFF;
width: 100%; width: 100%;
padding: 0px; padding: 0;
color: #800000; color: #800000;
} }

View File

@ -1,15 +1,14 @@
body { body {
margin: 0;
padding: 8px; padding: 8px;
margin-bottom: auto; margin: 0 0 auto;
} }
blockquote blockquote { blockquote blockquote {
margin-left: 0em; margin-left: 0;
} }
form { form {
margin-bottom: 0px; margin-bottom: 0;
} }
.postarea { .postarea {
@ -17,7 +16,7 @@ form {
} }
.postarea table { .postarea table {
margin: 0px auto; margin: 0 auto;
text-align: left; text-align: left;
} }
@ -43,10 +42,7 @@ form {
} }
.message { .message {
margin-top: 1em; margin: 1em 25px;
margin-bottom: 1em;
margin-left: 25px;
margin-right: 25px;
} }
.reply .message { .reply .message {
@ -100,7 +96,7 @@ form {
.rules ul { .rules ul {
margin: 0; margin: 0;
padding-left: 0px; padding-left: 0;
} }
.floatpost { .floatpost {

View File

@ -49,7 +49,7 @@ $includes = array("inc/defines.php", "inc/functions.php", "inc/html.php");
if (in_array(TINYIB_DBMODE, array('flatfile', 'mysql', 'mysqli', 'sqlite', 'pdo'))) { if (in_array(TINYIB_DBMODE, array('flatfile', 'mysql', 'mysqli', 'sqlite', 'pdo'))) {
$includes[] = 'inc/database_' . TINYIB_DBMODE . '.php'; $includes[] = 'inc/database_' . TINYIB_DBMODE . '.php';
} else { } else {
fancyDie("Unknown database mode specificed"); fancyDie("Unknown database mode specified");
} }
foreach ($includes as $include) { foreach ($includes as $include) {
@ -183,7 +183,7 @@ if (isset($_POST['message']) || isset($_POST['file'])) {
if ($file_mime == "video/webm") { if ($file_mime == "video/webm") {
list($thumb_maxwidth, $thumb_maxheight) = thumbnailDimensions($post); list($thumb_maxwidth, $thumb_maxheight) = thumbnailDimensions($post);
shell_exec("ffmpegthumbnailer -s " . max($thumb_maxwidth, $thumb_maxheight) . " -i $file_location -o $thumb_location") . '!'; shell_exec("ffmpegthumbnailer -s " . max($thumb_maxwidth, $thumb_maxheight) . " -i $file_location -o $thumb_location");
$thumb_info = getimagesize($thumb_location); $thumb_info = getimagesize($thumb_location);
$post['thumb_width'] = $thumb_info[0]; $post['thumb_width'] = $thumb_info[0];
@ -361,7 +361,7 @@ if (isset($_POST['message']) || isset($_POST['file'])) {
if (is_dir('.git')) { if (is_dir('.git')) {
$git_output = shell_exec('git pull 2>&1'); $git_output = shell_exec('git pull 2>&1');
$text .= '<blockquote class="reply" style="padding: 7px;font-size: 1.25em;"> $text .= '<blockquote class="reply" style="padding: 7px;font-size: 1.25em;">
<pre style="margin: 0px;padding: 0px;">Attempting update...' . "\n\n" . $git_output . '</pre> <pre style="margin: 0;padding: 0;">Attempting update...' . "\n\n" . $git_output . '</pre>
</blockquote> </blockquote>
<p><b>Note:</b> If TinyIB updates and you have made custom modifications, <a href="https://github.com/tslocum/TinyIB/commits/master">review the changes</a> which have been merged into your installation. <p><b>Note:</b> If TinyIB updates and you have made custom modifications, <a href="https://github.com/tslocum/TinyIB/commits/master">review the changes</a> which have been merged into your installation.
Ensure that your modifications do not interfere with any new/modified files. Ensure that your modifications do not interfere with any new/modified files.

View File

@ -32,7 +32,7 @@ class SimpleCaptcha {
* Path for resource files (fonts, words, etc.) * Path for resource files (fonts, words, etc.)
* *
* "resources" by default. For security reasons, is better move this * "resources" by default. For security reasons, is better move this
* directory to another location outise the web server * directory to another location outside the web server
* *
*/ */
public $resourcesPath = './fonts'; public $resourcesPath = './fonts';
@ -80,7 +80,7 @@ class SimpleCaptcha {
'Roboto-Bold' => array('spacing' => 0, 'minSize' => 27, 'maxSize' => 27, 'font' => 'roboto_bold.ttf') 'Roboto-Bold' => array('spacing' => 0, 'minSize' => 27, 'maxSize' => 27, 'font' => 'roboto_bold.ttf')
); );
/** Wave configuracion in X and Y axes */ /** Wave configuration in X and Y axes */
public $Yperiod = 12; public $Yperiod = 12;
public $Yamplitude = 14; public $Yamplitude = 14;
public $Xperiod = 11; public $Xperiod = 11;
@ -254,7 +254,7 @@ class SimpleCaptcha {
$text = trim(fgets($fp)); $text = trim(fgets($fp));
fclose($fp); fclose($fp);
/** Change ramdom volcals */ /** Change random volcals */
if ($extended) { if ($extended) {
$text = preg_split('//', $text, -1, PREG_SPLIT_NO_EMPTY); $text = preg_split('//', $text, -1, PREG_SPLIT_NO_EMPTY);
$vocals = array('a', 'e', 'i', 'o', 'u'); $vocals = array('a', 'e', 'i', 'o', 'u');

View File

@ -701,7 +701,6 @@ EOF;
$post_html = ''; $post_html = '';
$posts = latestPosts(true); $posts = latestPosts(true);
$i = 0;
foreach ($posts as $post) { foreach ($posts as $post) {
if ($post_html != '') { if ($post_html != '') {
$post_html .= '<tr><td colspan="2"><hr></td></tr>'; $post_html .= '<tr><td colspan="2"><hr></td></tr>';

View File

@ -5,6 +5,7 @@
# #
# Contact the author via tslocum@gmail.com if you need support. # Contact the author via tslocum@gmail.com if you need support.
# See README for instructions on configuring, moderating and upgrading your board. # See README for instructions on configuring, moderating and upgrading your board.
#
# Set TINYIB_DBMODE to a MySQL-related mode if it's available. By default it's set to flatfile, which can be very slow. # Set TINYIB_DBMODE to a MySQL-related mode if it's available. By default it's set to flatfile, which can be very slow.
// Administrator/moderator credentials // Administrator/moderator credentials
@ -70,4 +71,4 @@ define('TINYIB_DBNAME', ""); // Database
define('TINYIB_DBDRIVER', "mysql"); // PDO driver to use (mysql / sqlite / pgsql / etc.) define('TINYIB_DBDRIVER', "mysql"); // PDO driver to use (mysql / sqlite / pgsql / etc.)
define('TINYIB_DBDSN', ""); // Enter a custom DSN to override all of the connection/driver settings above (see README for instructions) define('TINYIB_DBDSN', ""); // Enter a custom DSN to override all of the connection/driver settings above (see README for instructions)
// When changing this, you should still set TINYIB_DBDRIVER appropriately. // When changing this, you should still set TINYIB_DBDRIVER appropriately.
// If you're using PDO with MySQL, you should leave this blank so TinyIB can build the DSN. // If you're using PDO with a MySQL database, you should leave this blank.