diff --git a/.gitignore b/.gitignore index 65b0cbc..e61e79f 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,4 @@ settings.php .posts .posts.lock .project - +.settings/ diff --git a/inc/html.php b/inc/html.php index df4d690..c852c16 100644 --- a/inc/html.php +++ b/inc/html.php @@ -125,7 +125,6 @@ function buildPage($htmlposts, $parent, $pages=0, $thispage=0) { if (TINYIB_MAXW != TINYIB_MAXWOP || TINYIB_MAXH != TINYIB_MAXHOP) { $maxdimensions .= ' (new thread) or ' . TINYIB_MAXW . 'x' . TINYIB_MAXH . ' (reply)'; } - $maxfilesize = TINYIB_MAXKB * 1024; $postingmode = ""; $pagenavigator = ""; @@ -168,9 +167,11 @@ EOF; $unique_posts_html = "
  • Currently $unique_posts unique user posts.
  • \n"; } + $max_file_size_input = ''; $max_file_size_html = ''; if (TINYIB_MAXKB > 0) { - $max_file_size_html = "
  • Maximum file size allowed is " . TINYIB_MAXKBDESC . ".
  • \n"; + $max_file_size_input_html = ''; + $max_file_size_rules_html = '
  • Maximum file size allowed is ' . TINYIB_MAXKBDESC . '.
  • '; } $body = <<
    - + $max_file_size_input @@ -243,7 +244,7 @@ EOF;
    • Supported file types are GIF, JPG, and PNG.
    • - $max_file_size_html + $max_file_size_rules_html
    • Images greater than $maxdimensions will be thumbnailed.
    • $unique_posts_html
    @@ -416,11 +417,16 @@ EOF; } function manageRawPostForm() { + $max_file_size_input_html = ''; + if (TINYIB_MAXKB > 0) { + $max_file_size_input_html = ''; + } + return << - + $max_file_size_input_html