Compare commits

...

27 Commits

Author SHA1 Message Date
towards-a-new-leftypol 62e7a4b22e undo instance-config.php settings changes 2024-12-22 00:42:38 -05:00
towards-a-new-leftypol 29d429bd55 retab image.php (use vim, convert tabs to space) 2024-12-22 00:42:38 -05:00
towards-a-new-leftypol 221faac75b Improve posting error handling
- if spamnoticer was contacted, add cleanup callback to error handler if
  something goes wrong during the rest of the process (like thumbnail
  creation for example)

- add another allowed warning (string) that gm may safely report back
  and don't call error if we see it.
2024-12-22 00:42:38 -05:00
towards-a-new-leftypol f5a073f0b1 bunker_like: heading and subtitle font sizes 2024-12-01 13:07:37 +00:00
towards-a-new-leftypol a8be2a3fc3 Up the font sizes for bunker_like a little bit 2024-12-01 12:42:21 +00:00
towards-a-new-leftypol 66fe2659c7 Fix textarea size in bunker_like theme 2024-11-29 04:24:54 -05:00
towards-a-new-leftypol eb89db5246 bunker_like: submit button color 2024-11-27 19:23:13 -05:00
towards-a-new-leftypol 132aa54b84 bunker_like: submit button color 2024-11-27 19:21:31 -05:00
towards-a-new-leftypol 709b4ff32d bunker-like css fix 2024-11-27 19:17:23 -05:00
towards-a-new-leftypol 9f26de080e fix bunker-like css tweaks 2024-11-27 19:15:07 -05:00
towards-a-new-leftypol 7e189349a3 bunker_like: padding adjust 2024-11-27 19:12:41 -05:00
towards-a-new-leftypol 9fe1cf8713 bunker-like: form tweaks 2024-11-27 18:55:25 -05:00
towards-a-new-leftypol c864f3701e bunkerlike form css tweaks (by 1px) 2024-11-27 18:37:38 -05:00
towards-a-new-leftypol 958a58f016 retab 2024-11-27 18:37:28 -05:00
towards-a-new-leftypol 929e00675f bunker_like css form field padding tweak 2024-11-27 18:16:32 -05:00
towards-a-new-leftypol 91a0b3017b bunkerlike - fix form padding 2024-11-27 18:02:21 -05:00
towards-a-new-leftypol df01d50275 Bunker-like theme changes
- change post body font to 'serif'
- change border radius's to 2px (down from 5px, which was silly)
2024-11-27 14:18:25 -05:00
towards-a-new-leftypol d3fa904e11 Replace flag instead of creating a new one 2024-11-27 11:51:20 -05:00
towards-a-new-leftypol f39a7f6282 Add flags 2024-11-27 11:40:13 -05:00
towards-a-new-leftypol 6b7c7b6c6a Add music board and a link to nukechan 2024-09-17 15:41:38 -04:00
towards-a-new-leftypol e9fa6303ac expand.js: don't add weird spacing 2024-09-17 15:41:38 -04:00
towards-a-new-leftypol 8763b2cf40 Fix log.php 2024-08-25 17:24:34 -04:00
towards-a-new-leftypol ab1f4e3ca7 Make headings bolder and brighter for better readability 2024-08-25 15:09:24 -04:00
towards-a-new-leftypol 585029dbca Fix a rebuilding when moving (targetBoard -> originBoard) 2024-08-12 16:54:19 -04:00
towards-a-new-leftypol b989686b2c 8 new banners 2024-08-08 01:25:30 -04:00
towards-a-new-leftypol 66636df702 anti-bot: do not flag missing hash values as spam 2024-07-19 15:40:41 -04:00
towards-a-new-leftypol 3415319698 add banners 2024-07-19 15:22:11 -04:00
23 changed files with 671 additions and 540 deletions

BIN
banners/BANNER _d.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

BIN
banners/BANNER_58.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

BIN
banners/banner_pepe_che.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

View File

@ -295,13 +295,19 @@ function checkSpam(array $extra_salt = array()) {
#print_err("checkSpam start"); #print_err("checkSpam start");
$extra_salt_orig = $extra_salt; $extra_salt_orig = $extra_salt;
/*
if (!isset($_POST['hash'])) { if (!isset($_POST['hash'])) {
print_err("checkSpam: _POST array doesn't have key 'hash', check failed."); print_err("checkSpam: _POST array doesn't have key 'hash', check failed.");
dumpVars($extra_salt_orig); dumpVars($extra_salt_orig);
return true; return true;
} }
*/
$hash = $_POST['hash']; if (isset($_POST['hash'])) {
$hash = $_POST['hash'];
} else {
$hash = "";
}
if (!empty($extra_salt)) { if (!empty($extra_salt)) {
// create a salted hash of the "extra salt" // create a salted hash of the "extra salt"
@ -336,7 +342,12 @@ function checkSpam(array $extra_salt = array()) {
// Use SHA1 for the hash // Use SHA1 for the hash
$_hash = sha1($_hash . $extra_salt); $_hash = sha1($_hash . $extra_salt);
if ($hash != $_hash) { if (empty($hash)) {
print_err("checkSpam: hash is either empty or was never present, check failed. Not flagging as spam however.");
dumpVars($extra_salt_orig);
// Ignore missing hash, because it was missing for some legitimate posters and bots tend to fill in any field.
return false;
} else if ($hash != $_hash) {
print_err("checkSpam: Hash values do not match! submitted hash value from POST data: $hash ; Computed hash value: $_hash"); print_err("checkSpam: Hash values do not match! submitted hash value from POST data: $hash ; Computed hash value: $_hash");
dumpVars($extra_salt_orig); dumpVars($extra_salt_orig);
return true; return true;

View File

@ -24,6 +24,42 @@ register_shutdown_function('fatal_error_handler');
$error_recursion=false; $error_recursion=false;
/*
* Global anything is always a bad idea, but since all of this website's error handling comes
* down to calling this error function and quitting, we have no way of catching exceptions, for example
* during thumbnail creation.
*
* So push things to run in case of a crash into a list, and then run all of them in error.
*
* This will be exclusive to callbacks for posting a post callflow, not mod actions or anything else.
*/
function global_post_cleanup() {
global $post_cleanup_list;
foreach ($post_cleanup_list as $f) {
$f();
}
unset($post_cleanup_list);
}
function push_global_post_cleanup($f) {
global $post_cleanup_list;
if (!isset($post_cleanup_list)) {
$post_cleanup_list = array($f);
} else {
array_push($post_cleanup_list, $f);
}
}
function init_global_post_cleanup() {
global $post_cleanup_list;
$post_cleanup_list = array();
}
function error($message, $priority = true, $debug_stuff = false) { function error($message, $priority = true, $debug_stuff = false) {
global $board, $mod, $config, $db_error, $error_recursion; global $board, $mod, $config, $db_error, $error_recursion;
@ -75,11 +111,14 @@ function error($message, $priority = true, $debug_stuff = false) {
$data['debug']=$debug_stuff; $data['debug']=$debug_stuff;
} }
print json_encode($data); print json_encode($data);
global_post_cleanup();
exit(); exit();
} }
header($_SERVER['SERVER_PROTOCOL'] . ' 500 Internal Server Error'); header($_SERVER['SERVER_PROTOCOL'] . ' 500 Internal Server Error');
global_post_cleanup();
die(Element('page.html', array( die(Element('page.html', array(
'config' => $config, 'config' => $config,
'title' => _('Error'), 'title' => _('Error'),

View File

@ -8,98 +8,98 @@ defined('TINYBOARD') or exit;
require_once 'inc/polyfill.php'; require_once 'inc/polyfill.php';
class Image { class Image {
public $src, $format, $image, $size; public $src, $format, $image, $size;
public function __construct($src, $format = false, $size = false) { public function __construct($src, $format = false, $size = false) {
global $config; global $config;
$this->src = $src; $this->src = $src;
$this->format = $format; $this->format = $format;
if ($config['thumb_method'] == 'imagick') { if ($config['thumb_method'] == 'imagick') {
$classname = 'ImageImagick'; $classname = 'ImageImagick';
} elseif (in_array($config['thumb_method'], array('convert', 'convert+gifsicle', 'gm', 'gm+gifsicle'))) { } elseif (in_array($config['thumb_method'], array('convert', 'convert+gifsicle', 'gm', 'gm+gifsicle'))) {
$classname = 'ImageConvert'; $classname = 'ImageConvert';
} else { } else {
$classname = 'Image' . strtoupper($this->format); $classname = 'Image' . strtoupper($this->format);
if (!class_exists($classname)) { if (!class_exists($classname)) {
error(_('Unsupported file format: ') . $this->format); error(_('Unsupported file format: ') . $this->format);
} }
} }
$this->image = new $classname($this, $size); $this->image = new $classname($this, $size);
if (!$this->image->valid()) { if (!$this->image->valid()) {
$this->delete(); $this->delete();
error($config['error']['invalidimg4']); error($config['error']['invalidimg4']);
} }
$this->size = (object)array('width' => $this->image->_width(), 'height' => $this->image->_height()); $this->size = (object)array('width' => $this->image->_width(), 'height' => $this->image->_height());
if ($this->size->width < 1 || $this->size->height < 1) { if ($this->size->width < 1 || $this->size->height < 1) {
$this->delete(); $this->delete();
error($config['error']['invalidimg5']); error($config['error']['invalidimg5']);
} }
} }
public function resize($extension, $max_width, $max_height) { public function resize($extension, $max_width, $max_height) {
global $config; global $config;
if ($config['thumb_method'] == 'imagick') { if ($config['thumb_method'] == 'imagick') {
$classname = 'ImageImagick'; $classname = 'ImageImagick';
} elseif ($config['thumb_method'] == 'convert') { } elseif ($config['thumb_method'] == 'convert') {
$classname = 'ImageConvert'; $classname = 'ImageConvert';
} elseif ($config['thumb_method'] == 'convert+gifsicle') { } elseif ($config['thumb_method'] == 'convert+gifsicle') {
$classname = 'ImageConvert'; $classname = 'ImageConvert';
$gifsicle = true; $gifsicle = true;
} elseif ($config['thumb_method'] == 'gm') { } elseif ($config['thumb_method'] == 'gm') {
$classname = 'ImageConvert'; $classname = 'ImageConvert';
$gm = true; $gm = true;
} elseif ($config['thumb_method'] == 'gm+gifsicle') { } elseif ($config['thumb_method'] == 'gm+gifsicle') {
$classname = 'ImageConvert'; $classname = 'ImageConvert';
$gm = true; $gm = true;
$gifsicle = true; $gifsicle = true;
} else { } else {
$classname = 'Image' . strtoupper($extension); $classname = 'Image' . strtoupper($extension);
if (!class_exists($classname)) { if (!class_exists($classname)) {
error(_('Unsupported file format: ') . $extension); error(_('Unsupported file format: ') . $extension);
} }
} }
$thumb = new $classname(false); $thumb = new $classname(false);
$thumb->src = $this->src; $thumb->src = $this->src;
$thumb->format = $this->format; $thumb->format = $this->format;
$thumb->original_width = $this->size->width; $thumb->original_width = $this->size->width;
$thumb->original_height = $this->size->height; $thumb->original_height = $this->size->height;
$x_ratio = $max_width / $this->size->width; $x_ratio = $max_width / $this->size->width;
$y_ratio = $max_height / $this->size->height; $y_ratio = $max_height / $this->size->height;
if (($this->size->width <= $max_width) && ($this->size->height <= $max_height)) { if (($this->size->width <= $max_width) && ($this->size->height <= $max_height)) {
$width = $this->size->width; $width = $this->size->width;
$height = $this->size->height; $height = $this->size->height;
} elseif (($x_ratio * $this->size->height) < $max_height) { } elseif (($x_ratio * $this->size->height) < $max_height) {
$height = ceil($x_ratio * $this->size->height); $height = ceil($x_ratio * $this->size->height);
$width = $max_width; $width = $max_width;
} else { } else {
$width = ceil($y_ratio * $this->size->width); $width = ceil($y_ratio * $this->size->width);
$height = $max_height; $height = $max_height;
} }
$thumb->_resize($this->image->image, $width, $height); $thumb->_resize($this->image->image, $width, $height);
return $thumb; return $thumb;
} }
public function to($dst) { public function to($dst) {
$this->image->to($dst); $this->image->to($dst);
} }
public function delete() { public function delete() {
file_unlink($this->src); file_unlink($this->src);
} }
public function destroy() { public function destroy() {
$this->image->_destroy(); $this->image->_destroy();
} }
} }
class ImageGD { class ImageGD {
@ -111,422 +111,446 @@ class ImageGD {
public $original_height; public $original_height;
public $format; public $format;
public function GD_create() { public function GD_create() {
$this->image = imagecreatetruecolor($this->width, $this->height); $this->image = imagecreatetruecolor($this->width, $this->height);
} }
public function GD_copyresampled() { public function GD_copyresampled() {
imagecopyresampled($this->image, $this->original, 0, 0, 0, 0, $this->width, $this->height, $this->original_width, $this->original_height); imagecopyresampled($this->image, $this->original, 0, 0, 0, 0, $this->width, $this->height, $this->original_width, $this->original_height);
} }
public function GD_resize() { public function GD_resize() {
$this->GD_create(); $this->GD_create();
$this->GD_copyresampled(); $this->GD_copyresampled();
} }
} }
class ImageBase extends ImageGD { class ImageBase extends ImageGD {
public $image, $src, $original, $original_width, $original_height, $width, $height; public $image, $src, $original, $original_width, $original_height, $width, $height;
public function __construct($img, $size = false) { public function __construct($img, $size = false) {
if (method_exists($this, 'init')) if (method_exists($this, 'init'))
$this->init(); $this->init();
if ($size && $size[0] > 0 && $size[1] > 0) { if ($size && $size[0] > 0 && $size[1] > 0) {
$this->width = $size[0]; $this->width = $size[0];
$this->height = $size[1]; $this->height = $size[1];
} }
if ($img !== false) { if ($img !== false) {
$this->src = $img->src; $this->src = $img->src;
$this->from(); $this->from();
} }
} }
public function valid() { public function valid() {
return (bool)$this->image; return (bool)$this->image;
} }
public function _width() { public function _width() {
if (method_exists($this, 'width')) if (method_exists($this, 'width'))
return $this->width(); return $this->width();
// use default GD functions // use default GD functions
return imagesx($this->image); return imagesx($this->image);
} }
public function _height() { public function _height() {
if (method_exists($this, 'height')) if (method_exists($this, 'height'))
return $this->height(); return $this->height();
// use default GD functions // use default GD functions
return imagesy($this->image); return imagesy($this->image);
} }
public function _destroy() { public function _destroy() {
if (method_exists($this, 'destroy')) if (method_exists($this, 'destroy'))
return $this->destroy(); return $this->destroy();
// use default GD functions // use default GD functions
return imagedestroy($this->image); return imagedestroy($this->image);
} }
public function _resize($original, $width, $height) { public function _resize($original, $width, $height) {
$this->original = &$original; $this->original = &$original;
$this->width = $width; $this->width = $width;
$this->height = $height; $this->height = $height;
if (method_exists($this, 'resize')) if (method_exists($this, 'resize')) {
$this->resize(); $this->resize();
else } else {
// use default GD functions // use default GD functions
$this->GD_resize(); $this->GD_resize();
} }
}
} }
class ImageImagick extends ImageBase { class ImageImagick extends ImageBase {
public function init() { public function init() {
$this->image = new Imagick(); $this->image = new Imagick();
$this->image->setBackgroundColor(new ImagickPixel('transparent')); $this->image->setBackgroundColor(new ImagickPixel('transparent'));
} }
public function from() { public function from() {
try { try {
$this->image->readImage($this->src); $this->image->readImage($this->src);
} catch(ImagickException $e) { } catch(ImagickException $e) {
// invalid image // invalid image
$this->image = false; $this->image = false;
} }
} }
public function to($src) { public function to($src) {
global $config; global $config;
if ($config['strip_exif']) { if ($config['strip_exif']) {
$this->image->stripImage(); $this->image->stripImage();
} }
if (preg_match('/\.gif$/i', $src)) { if (preg_match('/\.gif$/i', $src)) {
$this->image->writeImages($src, true); $this->image->writeImages($src, true);
} }
else { else {
$this->image->writeImage($src); $this->image->writeImage($src);
} }
} }
public function width() { public function width() {
return $this->image->getImageWidth(); return $this->image->getImageWidth();
} }
public function height() { public function height() {
return $this->image->getImageHeight(); return $this->image->getImageHeight();
} }
public function destroy() { public function destroy() {
return $this->image->destroy(); return $this->image->destroy();
} }
public function resize() { public function resize() {
global $config; global $config;
if ($this->format == 'gif' && ($config['thumb_ext'] == 'gif' || $config['thumb_ext'] == '')) { if ($this->format == 'gif' && ($config['thumb_ext'] == 'gif' || $config['thumb_ext'] == '')) {
$this->image = new Imagick(); $this->image = new Imagick();
$this->image->setFormat('gif'); $this->image->setFormat('gif');
$keep_frames = array(); $keep_frames = array();
for ($i = 0; $i < $this->original->getNumberImages(); $i += floor($this->original->getNumberImages() / $config['thumb_keep_animation_frames'])) { for ($i = 0; $i < $this->original->getNumberImages(); $i += floor($this->original->getNumberImages() / $config['thumb_keep_animation_frames'])) {
$keep_frames[] = $i; $keep_frames[] = $i;
} }
$i = 0; $i = 0;
$delay = 0; $delay = 0;
foreach ($this->original as $frame) { foreach ($this->original as $frame) {
$delay += $frame->getImageDelay(); $delay += $frame->getImageDelay();
if (in_array($i, $keep_frames)) { if (in_array($i, $keep_frames)) {
// $frame->scaleImage($this->width, $this->height, false); // $frame->scaleImage($this->width, $this->height, false);
$frame->sampleImage($this->width, $this->height); $frame->sampleImage($this->width, $this->height);
$frame->setImagePage($this->width, $this->height, 0, 0); $frame->setImagePage($this->width, $this->height, 0, 0);
$frame->setImageDelay($delay); $frame->setImageDelay($delay);
$delay = 0; $delay = 0;
$this->image->addImage($frame->getImage()); $this->image->addImage($frame->getImage());
} }
$i++; $i++;
} }
} else { } else {
$this->image = clone $this->original; $this->image = clone $this->original;
$this->image->scaleImage($this->width, $this->height, false); $this->image->scaleImage($this->width, $this->height, false);
} }
} }
} }
class ImageConvert extends ImageBase { class ImageConvert extends ImageBase {
public $width, $height, $temp, $gm = false, $gifsicle = false; public $width, $height, $temp, $gm = false, $gifsicle = false;
public function init() { public function init() {
global $config; global $config;
if ($config['thumb_method'] == 'gm' || $config['thumb_method'] == 'gm+gifsicle') if ($config['thumb_method'] == 'gm' || $config['thumb_method'] == 'gm+gifsicle')
$this->gm = true; $this->gm = true;
if ($config['thumb_method'] == 'convert+gifsicle' || $config['thumb_method'] == 'gm+gifsicle') if ($config['thumb_method'] == 'convert+gifsicle' || $config['thumb_method'] == 'gm+gifsicle')
$this->gifsicle = true; $this->gifsicle = true;
$this->temp = false; $this->temp = false;
} }
public function get_size($src, $try_gd_first = true) { public function get_size($src, $try_gd_first = true) {
if ($try_gd_first) { if ($try_gd_first) {
if ($size = @getimagesize($src)) if ($size = @getimagesize($src))
return $size; return $size;
} }
$size = shell_exec_error(($this->gm ? 'gm ' : '') . 'identify -format "%w %h" ' . escapeshellarg($src . '[0]')); $size = shell_exec_error(($this->gm ? 'gm ' : '') . 'identify -format "%w %h" ' . escapeshellarg($src . '[0]'));
if (preg_match('/^(\d+) (\d+)$/', $size, $m)) if (preg_match('/^(\d+) (\d+)$/', $size, $m))
return array($m[1], $m[2]); return array($m[1], $m[2]);
return false; return false;
} }
public function from() { public function from() {
if ($this->width > 0 && $this->height > 0) { if ($this->width > 0 && $this->height > 0) {
$this->image = true; $this->image = true;
return; return;
} }
$size = $this->get_size($this->src, false); $size = $this->get_size($this->src, false);
if ($size) { if ($size) {
$this->width = $size[0]; $this->width = $size[0];
$this->height = $size[1]; $this->height = $size[1];
$this->image = true; $this->image = true;
} else { } else {
// mark as invalid // mark as invalid
$this->image = false; $this->image = false;
} }
} }
public function to($src) { public function to($src) {
global $config; global $config;
if (!$this->temp) { if (!$this->temp) {
if ($config['strip_exif']) { if ($config['strip_exif']) {
if($error = shell_exec_error(($this->gm ? 'gm ' : '') . 'convert ' . if($error = shell_exec_error(($this->gm ? 'gm ' : '') . 'convert ' .
escapeshellarg($this->src) . ' -auto-orient -strip ' . escapeshellarg($src))) { escapeshellarg($this->src) . ' -auto-orient -strip ' . escapeshellarg($src))) {
$this->destroy(); $this->destroy();
error(_('Failed to redraw image!'), null, $error); error(_('Failed to redraw image!'), null, $error);
} }
} else { } else {
if($error = shell_exec_error(($this->gm ? 'gm ' : '') . 'convert ' . if($error = shell_exec_error(($this->gm ? 'gm ' : '') . 'convert ' .
escapeshellarg($this->src) . ' -auto-orient ' . escapeshellarg($src))) { escapeshellarg($this->src) . ' -auto-orient ' . escapeshellarg($src))) {
$this->destroy(); $this->destroy();
error(_('Failed to redraw image!'), null, $error); error(_('Failed to redraw image!'), null, $error);
} }
} }
} else { } else {
rename($this->temp, $src); rename($this->temp, $src);
chmod($src, 0664); chmod($src, 0664);
} }
} }
public function width() { public function width() {
return $this->width; return $this->width;
} }
public function height() { public function height() {
return $this->height; return $this->height;
} }
public function destroy() { public function destroy() {
@unlink($this->temp); @unlink($this->temp);
$this->temp = false; $this->temp = false;
} }
public function resize() { // Returns true if there is a real error and false if it's just a warning
global $config; // (appilcable to the return text of the `gm convert` command only)
public static function actualErrorOrJustWarning($message_string) {
$warnings = array(
"known incorrect sRGB profile",
"iCCP: Not recognizing known sRGB profile that has been edited",
"sRGB: cHRM chunk does not match sRGB"
);
if ($this->temp) { foreach ($warnings as $w) {
// remove old if (strpos($message_string, $w) !== False) {
$this->destroy(); return False;
} }
}
$this->temp = tempnam($config['tmp'], 'convert') . ($config['thumb_ext'] == '' ? '' : '.' . $config['thumb_ext']); return True;
}
$config['thumb_keep_animation_frames'] = (int)$config['thumb_keep_animation_frames']; public function resize() {
global $config;
if ($this->format == 'gif' && ($config['thumb_ext'] == 'gif' || $config['thumb_ext'] == '') && $config['thumb_keep_animation_frames'] > 1) { if ($this->temp) {
if ($this->gifsicle) { // remove old
if (($error = shell_exec("gifsicle -w --unoptimize -O2 --resize {$this->width}x{$this->height} < " . $this->destroy();
escapeshellarg($this->src . '') . " \"#0-{$config['thumb_keep_animation_frames']}\" -o " . }
escapeshellarg($this->temp))) || !file_exists($this->temp)) {
$this->destroy();
error(_('Failed to resize image!'), null, $error);
}
} else {
if ($config['convert_manual_orient'] && ($this->format == 'jpg' || $this->format == 'jpeg'))
$convert_args = str_replace('-auto-orient', ImageConvert::jpeg_exif_orientation($this->src), $config['convert_args']);
elseif ($config['convert_manual_orient'])
$convert_args = str_replace('-auto-orient', '', $config['convert_args']);
else
$convert_args = &$config['convert_args'];
if (($error = shell_exec_error(($this->gm ? 'gm ' : '') . 'convert ' . $this->temp = tempnam($config['tmp'], 'convert') . ($config['thumb_ext'] == '' ? '' : '.' . $config['thumb_ext']);
sprintf($convert_args,
$this->width,
$this->height,
escapeshellarg($this->src),
$this->width,
$this->height,
escapeshellarg($this->temp)))) || !file_exists($this->temp)) {
$this->destroy();
error(_('Failed to resize image!'), null, $error);
}
if ($size = $this->get_size($this->temp)) {
$this->width = $size[0];
$this->height = $size[1];
}
}
} else {
if ($config['convert_manual_orient'] && ($this->format == 'jpg' || $this->format == 'jpeg'))
$convert_args = str_replace('-auto-orient', ImageConvert::jpeg_exif_orientation($this->src), $config['convert_args']);
elseif ($config['convert_manual_orient'])
$convert_args = str_replace('-auto-orient', '', $config['convert_args']);
else
$convert_args = &$config['convert_args'];
if (($error = shell_exec_error(($this->gm ? 'gm ' : '') . 'convert ' .
sprintf($convert_args,
$this->width,
$this->height,
escapeshellarg($this->src . '[0]'),
$this->width,
$this->height,
escapeshellarg($this->temp)))) || !file_exists($this->temp)) {
if (strpos($error, "known incorrect sRGB profile") === false && $config['thumb_keep_animation_frames'] = (int)$config['thumb_keep_animation_frames'];
strpos($error, "iCCP: Not recognizing known sRGB profile that has been edited") === false) {
$this->destroy();
error(_('Failed to resize image!')." "._('Details: ').nl2br(htmlspecialchars($error)), null, array('convert_error' => $error));
}
if (!file_exists($this->temp)) {
$this->destroy();
error(_('Failed to resize image!'), null, $error);
}
}
if ($size = $this->get_size($this->temp)) {
$this->width = $size[0];
$this->height = $size[1];
}
}
}
// For when -auto-orient doesn't exist (older versions) if ($this->format == 'gif' && ($config['thumb_ext'] == 'gif' || $config['thumb_ext'] == '') && $config['thumb_keep_animation_frames'] > 1) {
static public function jpeg_exif_orientation($src, $exif = false) { if ($this->gifsicle) {
if (!$exif) { if (($error = shell_exec("gifsicle -w --unoptimize -O2 --resize {$this->width}x{$this->height} < " .
$exif = @exif_read_data($src); escapeshellarg($this->src . '') . " \"#0-{$config['thumb_keep_animation_frames']}\" -o " .
if (!isset($exif['Orientation'])) escapeshellarg($this->temp))) || !file_exists($this->temp)) {
return false; $this->destroy();
} error(_('Failed to resize image!'), null, $error);
switch($exif['Orientation']) { }
case 1: } else {
// Normal if ($config['convert_manual_orient'] && ($this->format == 'jpg' || $this->format == 'jpeg'))
return false; $convert_args = str_replace('-auto-orient', ImageConvert::jpeg_exif_orientation($this->src), $config['convert_args']);
case 2: elseif ($config['convert_manual_orient'])
// 888888 $convert_args = str_replace('-auto-orient', '', $config['convert_args']);
// 88 else
// 8888 $convert_args = &$config['convert_args'];
// 88
// 88
return '-flop'; if (($error = shell_exec_error(($this->gm ? 'gm ' : '') . 'convert ' .
case 3: sprintf($convert_args,
$this->width,
$this->height,
escapeshellarg($this->src),
$this->width,
$this->height,
escapeshellarg($this->temp)))) || !file_exists($this->temp)) {
$this->destroy();
error(_('Failed to resize image!'), null, $error);
}
if ($size = $this->get_size($this->temp)) {
$this->width = $size[0];
$this->height = $size[1];
}
}
} else {
if ($config['convert_manual_orient'] && ($this->format == 'jpg' || $this->format == 'jpeg'))
$convert_args = str_replace('-auto-orient', ImageConvert::jpeg_exif_orientation($this->src), $config['convert_args']);
elseif ($config['convert_manual_orient'])
$convert_args = str_replace('-auto-orient', '', $config['convert_args']);
else
$convert_args = &$config['convert_args'];
// 88 $full_convert_cmd =
// 88 ($this->gm ? 'gm ' : '') . 'convert ' .
// 8888 sprintf(
// 88 $convert_args,
// 888888 $this->width,
$this->height,
escapeshellarg($this->src . '[0]'),
$this->width,
$this->height,
escapeshellarg($this->temp)
);
return '-flip -flop'; if (($error = shell_exec_error($full_convert_cmd)) || !file_exists($this->temp)) {
case 4: if (ImageConvert::actualErrorOrJustWarning($error)) {
// 88 $this->destroy();
// 88 error(_('Failed to resize image!')." "._('Details: ').nl2br(htmlspecialchars($error)), null, array('convert_error' => $error));
// 8888 }
// 88
// 888888
return '-flip'; if (!file_exists($this->temp)) {
case 5: $this->destroy();
// 8888888888 error(_('Failed to resize image!'), null, $error);
// 88 88 }
// 88 }
if ($size = $this->get_size($this->temp)) {
$this->width = $size[0];
$this->height = $size[1];
}
}
}
return '-rotate 90 -flop'; // For when -auto-orient doesn't exist (older versions)
case 6: static public function jpeg_exif_orientation($src, $exif = false) {
// 88 if (!$exif) {
// 88 88 $exif = @exif_read_data($src);
// 8888888888 if (!isset($exif['Orientation']))
return false;
}
switch($exif['Orientation']) {
case 1:
// Normal
return false;
case 2:
// 888888
// 88
// 8888
// 88
// 88
return '-rotate 90'; return '-flop';
case 7: case 3:
// 88
// 88 88
// 8888888888
return '-rotate "-90" -flop'; // 88
case 8: // 88
// 8888888888 // 8888
// 88 88 // 88
// 88 // 888888
return '-rotate "-90"'; return '-flip -flop';
} case 4:
} // 88
// 88
// 8888
// 88
// 888888
return '-flip';
case 5:
// 8888888888
// 88 88
// 88
return '-rotate 90 -flop';
case 6:
// 88
// 88 88
// 8888888888
return '-rotate 90';
case 7:
// 88
// 88 88
// 8888888888
return '-rotate "-90" -flop';
case 8:
// 8888888888
// 88 88
// 88
return '-rotate "-90"';
}
}
} }
class ImagePNG extends ImageBase { class ImagePNG extends ImageBase {
public function from() { public function from() {
$this->image = @imagecreatefrompng($this->src); $this->image = @imagecreatefrompng($this->src);
} }
public function to($src) { public function to($src) {
global $config; global $config;
imagepng($this->image, $src); imagepng($this->image, $src);
} }
public function resize() { public function resize() {
$this->GD_create(); $this->GD_create();
imagecolortransparent($this->image, imagecolorallocatealpha($this->image, 0, 0, 0, 0)); imagecolortransparent($this->image, imagecolorallocatealpha($this->image, 0, 0, 0, 0));
imagesavealpha($this->image, true); imagesavealpha($this->image, true);
imagealphablending($this->image, false); imagealphablending($this->image, false);
$this->GD_copyresampled(); $this->GD_copyresampled();
} }
} }
class ImageGIF extends ImageBase { class ImageGIF extends ImageBase {
public function from() { public function from() {
$this->image = @imagecreatefromgif($this->src); $this->image = @imagecreatefromgif($this->src);
} }
public function to($src) { public function to($src) {
imagegif ($this->image, $src); imagegif ($this->image, $src);
} }
public function resize() { public function resize() {
$this->GD_create(); $this->GD_create();
imagecolortransparent($this->image, imagecolorallocatealpha($this->image, 0, 0, 0, 0)); imagecolortransparent($this->image, imagecolorallocatealpha($this->image, 0, 0, 0, 0));
imagesavealpha($this->image, true); imagesavealpha($this->image, true);
$this->GD_copyresampled(); $this->GD_copyresampled();
} }
} }
class ImageJPG extends ImageBase { class ImageJPG extends ImageBase {
public function from() { public function from() {
$this->image = @imagecreatefromjpeg($this->src); $this->image = @imagecreatefromjpeg($this->src);
} }
public function to($src) { public function to($src) {
imagejpeg($this->image, $src); imagejpeg($this->image, $src);
} }
} }
class ImageJPEG extends ImageJPG { class ImageJPEG extends ImageJPG {
@ -534,11 +558,11 @@ class ImageJPEG extends ImageJPG {
class ImageBMP extends ImageBase { class ImageBMP extends ImageBase {
public function from() { public function from() {
$this->image = @imagecreatefrombmp($this->src); $this->image = @imagecreatefrombmp($this->src);
} }
public function to($src) { public function to($src) {
imagebmp($this->image, $src); imagebmp($this->image, $src);
} }
} }

View File

@ -22,6 +22,7 @@ $config['boards'] = array(
'edu', 'edu',
'ga', 'ga',
'ent', 'ent',
'music',
'777', '777',
'posad', 'posad',
'i', 'i',
@ -50,6 +51,7 @@ $config['categories'] = array(
'edu', 'edu',
'ga', 'ga',
'ent', 'ent',
'music',
'777', '777',
'posad', 'posad',
'i', 'i',
@ -67,7 +69,8 @@ $config['custom_categories'] = array(
'New Multitude' => 'https://newmultitude.org', 'New Multitude' => 'https://newmultitude.org',
'Booru image repository' => 'https://lefty.pictures', 'Booru image repository' => 'https://lefty.pictures',
'Official chat room' => 'https://talk.leftychan.net/#/room/#welcome:matrix.leftychan.net', 'Official chat room' => 'https://talk.leftychan.net/#/room/#welcome:matrix.leftychan.net',
'Gitea instance' => 'https://git.leftychan.net', 'Nukechan' => 'https://nukechan.net',
#'Gitea instance' => 'https://git.leftychan.net',
'Rules' => 'rules.html', 'Rules' => 'rules.html',
'Search' => 'search.php', 'Search' => 'search.php',
), ),
@ -259,6 +262,7 @@ $config['user_flags'] = array (
'egalitarianism' => 'Egalitarianism', 'egalitarianism' => 'Egalitarianism',
'egoism' => 'Egoism', 'egoism' => 'Egoism',
'eristocracy' => 'Έριστοκρατία', 'eristocracy' => 'Έριστοκρατία',
'Eurasianism' => 'Eurasianism',
'eureka' => 'Eureka', 'eureka' => 'Eureka',
'eurocommunism' => 'Eurocommunism', 'eurocommunism' => 'Eurocommunism',
'farc' => 'Las FARC', 'farc' => 'Las FARC',
@ -285,7 +289,7 @@ $config['user_flags'] = array (
'marxism_blackpilism' => 'Marxism Blackpillism', 'marxism_blackpilism' => 'Marxism Blackpillism',
'mutualism' => 'Mutualism', 'mutualism' => 'Mutualism',
'naxalite' => 'Naxalite', 'naxalite' => 'Naxalite',
'nazbol' => 'Nazbol', 'nazbol' => 'National Bolshevik',
'nazi' => 'Nazi', 'nazi' => 'Nazi',
'ndfp' => 'NDFP', 'ndfp' => 'NDFP',
'palestine' => 'Palestine', 'palestine' => 'Palestine',
@ -312,12 +316,14 @@ $config['user_flags'] = array (
'syndicalism' => 'Syndicalism', 'syndicalism' => 'Syndicalism',
'tankie' => 'Tankie', 'tankie' => 'Tankie',
'technocracy' => 'Technocracy', 'technocracy' => 'Technocracy',
'The_Other_Russia' => 'The Other Russia',
'think' => 'Think', 'think' => 'Think',
'transhumanism' => 'Transhumanism', 'transhumanism' => 'Transhumanism',
'united_farm_workers' => 'United Farm Workers', 'united_farm_workers' => 'United Farm Workers',
'viet_cong' => 'Viet Cong', 'viet_cong' => 'Viet Cong',
'ypg' => 'YPG', 'ypg' => 'YPG',
'yugoslavia' => 'Yugoslavia' 'yugoslavia' => 'Yugoslavia',
'zgang' => 'Z Gang'
); );
@ -591,5 +597,5 @@ $config['filters'][] = array(
'message' => 'New threads are being created too quickly. Wait [at most] 10 minutes' 'message' => 'New threads are being created too quickly. Wait [at most] 10 minutes'
); );
$config['global_message'] = '<span><a href="https://talk.leftychan.net/#/room/#welcome:matrix.leftychan.net">Matrix</a></span> &nbsp; <span><a href="ircs://irc.leftychan.net:6697/#leftychan">IRC Chat</a></span> &nbsp; <span><a href="mumble://leftychan.net">Mumble</a></span> &nbsp; <span><a href="https://t.me/+RegtyzzrE0M1NDMx">Telegram</a></span> &nbsp; <span><a href="https://discord.gg/AcZeFKXPmZ">Discord</a></span><br/><br/><span>We will be performing scheduled maintenance from 2-3am UTC, May 30th. The board will be read only during this time.</span>'; $config['global_message'] = '<span><a href="https://talk.leftychan.net/#/room/#welcome:matrix.leftychan.net">Matrix</a></span> &nbsp; <span><a href="ircs://irc.leftychan.net:6697/#leftychan">IRC Chat</a></span> &nbsp; <span><a href="mumble://leftychan.net">Mumble</a></span> &nbsp; <span><a href="https://t.me/+RegtyzzrE0M1NDMx">Telegram</a></span> &nbsp; <span><a href="https://discord.gg/AcZeFKXPmZ">Discord</a></span>';
$config['debug'] = false; $config['debug'] = false;

View File

@ -1501,7 +1501,7 @@ function mod_move($originBoard, $postID) {
} else { } else {
deletePost($postID); deletePost($postID);
buildIndex(); buildIndex();
rebuildThemes('post', $targetBoard); rebuildThemes('post', $originBoard);
openBoard($targetBoard); openBoard($targetBoard);
header('Location: ?/' . sprintf($config['board_path'], $newboard['uri']) . $config['dir']['res'] . link_for($op, false, $newboard), true, $config['redirect_http']); header('Location: ?/' . sprintf($config['board_path'], $newboard['uri']) . $config['dir']['res'] . link_for($op, false, $newboard), true, $config['redirect_http']);

View File

@ -32,11 +32,13 @@ $(document).ready(function(){
thread.find('div.hidden').remove(); thread.find('div.hidden').remove();
var post_in_doc = thread.find('#' + $(this).attr('id')); var post_in_doc = thread.find('#' + $(this).attr('id'));
if(post_in_doc.length == 0) { if(post_in_doc.length == 0) {
/*
if(last_expanded) { if(last_expanded) {
$(this).addClass('expanded').insertAfter(last_expanded).before('<br class="expanded">'); $(this).addClass('expanded').insertAfter(last_expanded).before('<br class="expanded">');
} else { } else {
$(this).addClass('expanded').insertAfter(thread.find('div.post:first')).after('<br class="expanded">'); $(this).addClass('expanded').insertAfter(thread.find('div.post:first')).after('<br class="expanded">');
} }
*/
last_expanded = $(this); last_expanded = $(this);
$(document).trigger('new_post', this); $(document).trigger('new_post', this);
} else { } else {

View File

@ -1,6 +1,6 @@
<?php <?php
include 'inc/functions.php'; require_once 'inc/functions.php';
include 'inc/mod/pages.php'; require_once 'inc/mod/pages.php';
if (!isset($_GET['board']) || !preg_match("/{$config['board_regex']}/u", $_GET['board'])) { if (!isset($_GET['board']) || !preg_match("/{$config['board_regex']}/u", $_GET['board'])) {
http_response_code(400); http_response_code(400);

View File

@ -457,6 +457,8 @@ function validate_images(array $post_array) {
function handle_post(){ function handle_post(){
global $config,$dropped_post,$board, $mod,$pdo; global $config,$dropped_post,$board, $mod,$pdo;
init_global_post_cleanup();
if (!isset($_POST['body'], $_POST['board']) && !$dropped_post) { if (!isset($_POST['body'], $_POST['board']) && !$dropped_post) {
error($config['error']['bot']); error($config['error']['bot']);
} }
@ -1036,6 +1038,17 @@ function handle_post(){
$spam_noticer_result = checkWithSpamNoticer($config, $post, $board['uri']); $spam_noticer_result = checkWithSpamNoticer($config, $post, $board['uri']);
/*
* If we have an error with posting this later, send back the
* delete token to spamnoticer to remove the post from the recent
* posts table. (see error.php for the error cleanup function)
*/
$f_spamnoticer_cleanup_on_err = function() use ($config, $delete_token) {
removeRecentPostFromSpamnoticer($config, array($delete_token));
};
push_global_post_cleanup($f_spamnoticer_cleanup_on_err);
if ($spam_noticer_result->succeeded && $spam_noticer_result->noticed) { if ($spam_noticer_result->succeeded && $spam_noticer_result->noticed) {
error($config['error']['spam_noticer'] . $spam_noticer_result->reason); error($config['error']['spam_noticer'] . $spam_noticer_result->reason);
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 669 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 625 B

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
static/flags/zgang.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 327 B

View File

@ -3,184 +3,220 @@ div.sidearrows {
} }
body { body {
background: #1D1F21; background: #1D1F21;
color: #ACACAC; color: #ACACAC;
font-family: Courier, monospace; font-family: Courier, monospace;
font-size: 13px; font-size: 15px;
}
.theme-catalog .replies {
font-family: serif;
}
div.post div.body {
font-family: serif;
}
span.heading {
font-size: 15px;
}
.theme-catalog .replies .meta,
.theme-catalog .replies .intro,
div.post div.body a,
div.post div.body .toolong {
font-family: Courier, monospace;
} }
/* LINKS */ /* LINKS */
a, a:link, a:visited, .intro a.email span.name { a, a:link, a:visited, .intro a.email span.name {
color: #FFB300; color: #FFB300;
text-decoration: none; text-decoration: none;
} }
a:link:hover, a:visited:hover { a:link:hover, a:visited:hover {
color: #FFB300; color: #FFB300;
text-shadow: 0px 0px 5px #117743; text-shadow: 0px 0px 5px #117743;
} }
div.pages a.selected { div.pages a.selected {
color: #FFB300; color: #FFB300;
} }
/* INTRO */ /* INTRO */
h1, div.title, header div.subtitle { h1, div.title, header div.subtitle {
color: #663E11; color: #FFB300;
font-family: Courier, monospace; font-family: Courier, monospace;
} }
h1 { h1 {
font-size: 24pt; font-size: 18pt;
font-weight: normal; font-weight: bold;
letter-spacing: 0px; letter-spacing: 0px;
} }
header div.subtitle { header div.subtitle {
font-size: 12pt; font-size: 10pt;
} }
/* FORMS AND BUTTONS */ /* FORMS AND BUTTONS */
div.banner { div.banner {
background-color: inherit; background-color: inherit;
color: #ACACAC; color: #ACACAC;
} }
form table { form table {
border: 1px dashed #117743; border: 1px dashed #117743;
padding-right: 1px; padding-right: 1px;
border-radius: 3px;
} }
form table tr th { form table tr th {
background: #282A2E; background: #282A2E;
border: 1px solid #117743; border: 1px solid #117743;
border-radius: 5px; border-radius: 2px;
padding: 3px;
} }
input[type="text"], input[type="password"], textarea, select { input[type="text"], input[type="password"], textarea, select {
border: 1px double #07371F; border: 1px double #07371F;
border-radius: 5px; border-radius: 2px;
background: #282A2E; background: #282A2E;
color: #ACACAC; color: #ACACAC;
font-family: Courier, monospace; font-family: Courier, monospace;
margin: 0 1px;
padding: 3px !important;
box-sizing: border-box;
} }
input[type="text"]:focus, input[type="password"]:focus, textarea:focus { input[type="text"]:focus, input[type="password"]:focus, textarea:focus {
box-shadow: 0px 0px 5px 2px #117743; box-shadow: 0px 0px 5px 2px #117743;
} }
input[type="submit"] { input[type="submit"] {
border: 3px double #07371F; border: 3px double #07371F;
border-radius: 5px; border-radius: 2px;
background: #16171A; background-color: #07371F;
color: #ACACAC; color: #ACACAC;
font-family: Courier, monospace; font-family: Courier, monospace;
font-weight: bold; font-weight: bold;
font-size: 16px;
} }
input[type="submit"]:hover {
border-color: #117743;
background-color: #117743;
}
.dropzone { .dropzone {
background: #16171A; background: #16171A;
border: 3px double #07371F; border: 1px solid #07371F;
color: #ACACAC; color: #ACACAC;
border-radius: 2px;
margin: 0 2px;
} }
.dropzone .file-hint { .dropzone .file-hint {
color: #ACACAC; color: #ACACAC;
font-weight: bold; font-weight: bold;
} }
#quick-reply table { #quick-reply table {
background: #1D1F21 !important; background: #1D1F21 !important;
} }
fieldset { fieldset {
border: 1px dashed #117743; border: 1px dashed #117743;
} }
/* POST IDENTIFIERS */ /* POST IDENTIFIERS */
.intro span.subject { .intro span.subject {
color: #34ED3A; color: #34ED3A;
} }
.intro span.name { .intro span.name {
color: #117743; color: #117743;
} }
.intro span.trip { .intro span.trip {
color: #117743; color: #117743;
} }
.intro a.capcode, p.intro a.nametag { .intro a.capcode, p.intro a.nametag {
color: #FF0000; color: #FF0000;
font-weight: bold; font-weight: bold;
} }
.intro a.email, p.intro a.email span.name, p.intro a.email:hover, p.intro a.email:hover span.name { .intro a.email, p.intro a.email span.name, p.intro a.email:hover, p.intro a.email:hover span.name {
color: #34ED97; color: #34ED97;
} }
.intro time { .intro time {
font-weight: bold; font-weight: bold;
} }
.intro a.post_no { .intro a.post_no {
color: #ACACAC; color: #ACACAC;
font-weight: bold; font-weight: bold;
} }
/* POST BOXES */ /* POST BOXES */
div.post.reply { div.post.reply {
background: #282A2E; background: #282A2E;
border: 1px solid #117743; border: 1px solid #117743;
border-radius: 5px; border-radius: 2px;
} }
div.post.reply.highlighted { div.post.reply.highlighted {
background: rgba(59, 22, 43, 0.4); background: rgba(59, 22, 43, 0.4);
border: 1px solid #117743; border: 1px solid #117743;
border-radius: 5px; border-radius: 2px;
} }
/* POST CONTENT */ /* POST CONTENT */
div.post.reply div.body a { div.post.reply div.body a {
color: #FFB300; color: #FFB300;
} }
.quote { .quote {
color: #789922; color: #789922;
} }
/* BARS */ /* BARS */
.bar { .bar {
background-color: #151515; background-color: #151515;
} }
.bar.top { .bar.top {
border-bottom: 1px solid #B0790A; border-bottom: 1px solid #B0790A;
} }
.bar.bottom { .bar.bottom {
border-top: 1px solid #B0790A; border-top: 1px solid #B0790A;
} }
div.boardlist { div.boardlist {
color: #ACACAC; color: #ACACAC;
} }
hr { hr {
border: none; border: none;
border-top: 1pt solid #117743; border-top: 1pt solid #117743;
} }
/* CATALOG */ /* CATALOG */
.theme-catalog h1 { .theme-catalog h1 {
color: #ACACAC; color: #ACACAC;
font-size: 18pt; font-size: 18pt;
font-weight: bold; font-weight: bold;
} }
.theme-catalog h1 a { .theme-catalog h1 a {
font-weight: normal; font-weight: normal;
} }
.theme-catalog div.thread, .theme-catalog div.thread:hover { .theme-catalog div.thread, .theme-catalog div.thread:hover {
background: #282A2E; background: #282A2E;
border: 1px solid #117743; border: 1px solid #117743;
border-radius: 5px; border-radius: 2px;
font-size: 10pt; font-size: 11pt;
} }
/* OPTIONS */ /* OPTIONS */
#options_div, #alert_div { #options_div, #alert_div {
background: #1D1F21; background: #1D1F21;
border: 1px dashed #117743; border: 1px dashed #117743;
} }
#options_tablist { #options_tablist {
border-right: 1px dashed #117743; border-right: 1px dashed #117743;
} }
.options_tab_icon { .options_tab_icon {
color: #ACACAC; color: #ACACAC;
} }
.options_tab_icon.active { .options_tab_icon.active {
color: #FFB300; color: #FFB300;
} }
/* FIXES */ /* FIXES */
div.ban { div.ban {
background: #1D1F21; background: #1D1F21;
border: 1px dashed #117743; border: 1px dashed #117743;
} }
@ -225,7 +261,7 @@ table thead th {
} }
.theme-catalog .thread .meta { .theme-catalog .thread .meta {
font-size: 10pt; font-size: 13px;
} }
.theme-catalog .thread.grid-size-small .replies { .theme-catalog .thread.grid-size-small .replies {