forked from GithubBackups/tinyib
Typos and minor cleanup
This commit is contained in:
parent
21e8b5884d
commit
9b41846002
@ -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.
|
||||
|
||||
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.
|
||||
|
||||
|
@ -113,13 +113,13 @@ a:hover {
|
||||
color: #000000;
|
||||
font-family: sans-serif;
|
||||
font-size: 14px;
|
||||
padding: 0px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.postlists {
|
||||
background: #FFFFFF;
|
||||
width: 100%;
|
||||
padding: 0px;
|
||||
padding: 0;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
|
@ -91,13 +91,13 @@ a:hover {
|
||||
.managehead {
|
||||
background: #AAAA66;
|
||||
color: #400000;
|
||||
padding: 0px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.postlists {
|
||||
background: #FFFFFF;
|
||||
width: 100%;
|
||||
padding: 0px;
|
||||
padding: 0;
|
||||
color: #800000;
|
||||
}
|
||||
|
||||
|
@ -1,15 +1,14 @@
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 8px;
|
||||
margin-bottom: auto;
|
||||
margin: 0 0 auto;
|
||||
}
|
||||
|
||||
blockquote blockquote {
|
||||
margin-left: 0em;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
form {
|
||||
margin-bottom: 0px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.postarea {
|
||||
@ -17,7 +16,7 @@ form {
|
||||
}
|
||||
|
||||
.postarea table {
|
||||
margin: 0px auto;
|
||||
margin: 0 auto;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
@ -43,10 +42,7 @@ form {
|
||||
}
|
||||
|
||||
.message {
|
||||
margin-top: 1em;
|
||||
margin-bottom: 1em;
|
||||
margin-left: 25px;
|
||||
margin-right: 25px;
|
||||
margin: 1em 25px;
|
||||
}
|
||||
|
||||
.reply .message {
|
||||
@ -100,7 +96,7 @@ form {
|
||||
|
||||
.rules ul {
|
||||
margin: 0;
|
||||
padding-left: 0px;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.floatpost {
|
||||
|
@ -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'))) {
|
||||
$includes[] = 'inc/database_' . TINYIB_DBMODE . '.php';
|
||||
} else {
|
||||
fancyDie("Unknown database mode specificed");
|
||||
fancyDie("Unknown database mode specified");
|
||||
}
|
||||
|
||||
foreach ($includes as $include) {
|
||||
@ -183,7 +183,7 @@ if (isset($_POST['message']) || isset($_POST['file'])) {
|
||||
|
||||
if ($file_mime == "video/webm") {
|
||||
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);
|
||||
$post['thumb_width'] = $thumb_info[0];
|
||||
@ -361,7 +361,7 @@ if (isset($_POST['message']) || isset($_POST['file'])) {
|
||||
if (is_dir('.git')) {
|
||||
$git_output = shell_exec('git pull 2>&1');
|
||||
$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>
|
||||
<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.
|
||||
|
@ -32,7 +32,7 @@ class SimpleCaptcha {
|
||||
* Path for resource files (fonts, words, etc.)
|
||||
*
|
||||
* "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';
|
||||
@ -80,7 +80,7 @@ class SimpleCaptcha {
|
||||
'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 $Yamplitude = 14;
|
||||
public $Xperiod = 11;
|
||||
@ -254,7 +254,7 @@ class SimpleCaptcha {
|
||||
$text = trim(fgets($fp));
|
||||
fclose($fp);
|
||||
|
||||
/** Change ramdom volcals */
|
||||
/** Change random volcals */
|
||||
if ($extended) {
|
||||
$text = preg_split('//', $text, -1, PREG_SPLIT_NO_EMPTY);
|
||||
$vocals = array('a', 'e', 'i', 'o', 'u');
|
||||
|
@ -701,7 +701,6 @@ EOF;
|
||||
|
||||
$post_html = '';
|
||||
$posts = latestPosts(true);
|
||||
$i = 0;
|
||||
foreach ($posts as $post) {
|
||||
if ($post_html != '') {
|
||||
$post_html .= '<tr><td colspan="2"><hr></td></tr>';
|
||||
|
@ -5,6 +5,7 @@
|
||||
#
|
||||
# Contact the author via tslocum@gmail.com if you need support.
|
||||
# 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.
|
||||
|
||||
// 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_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.
|
||||
// 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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user