diff --git a/post.php b/post.php index 9905c607..918bba04 100644 --- a/post.php +++ b/post.php @@ -332,7 +332,7 @@ if (isset($_POST['delete'])) { } // Check for a file - if ($post['op'] && !isset($post['no_longer_require_an_image_for_op'])) { + if ($post['op'] && !$config['disable_images'] && !isset($post['no_longer_require_an_image_for_op'])) { if (!isset($_FILES['file']['tmp_name']) || $_FILES['file']['tmp_name'] == '' && $config['force_image_op']) error($config['error']['noimage']); } @@ -342,7 +342,7 @@ if (isset($_POST['delete'])) { $post['email'] = str_replace(' ', '%20', htmlspecialchars($_POST['email'])); $post['body'] = $_POST['body']; $post['password'] = $_POST['password']; - $post['has_file'] = !isset($post['embed']) && (($post['op'] && !isset($post['no_longer_require_an_image_for_op']) && $config['force_image_op']) || (isset($_FILES['file']) && $_FILES['file']['tmp_name'] != '')); + $post['has_file'] = !isset($post['embed']) && !$config['disable_images'] && (($post['op'] && !isset($post['no_longer_require_an_image_for_op']) && $config['force_image_op']) || (isset($_FILES['file']) && $_FILES['file']['tmp_name'] != '')); if ($post['has_file']) $post['filename'] = urldecode(get_magic_quotes_gpc() ? stripslashes($_FILES['file']['name']) : $_FILES['file']['name']); diff --git a/stylesheets/style.css b/stylesheets/style.css index 31b866ef..5488f78a 100644 --- a/stylesheets/style.css +++ b/stylesheets/style.css @@ -430,4 +430,10 @@ form.ban-appeal { } form.ban-appeal textarea { display: block; -} \ No newline at end of file +} +.MathJax_Display { + display:inline!important +} +pre { + margin:0 +} diff --git a/templates/post_form.html b/templates/post_form.html index 7c8894c1..19fc3e19 100644 --- a/templates/post_form.html +++ b/templates/post_form.html @@ -67,6 +67,7 @@ {% endif %} + {% if not config.disable_images %} {% trans %}File{% endtrans %} @@ -83,6 +84,7 @@ {{ antibot.html() }} + {% endif %} {% if config.enable_embedding %}