Skip to content

Instantly share code, notes, and snippets.

@pleebe
pleebe / polflags.css
Last active December 31, 2015 22:58
Flags for /pol/
.flag {
display: inline-block;
width: 16px;
height: 12px;
background: url(images/polflags.png) no-repeat;
}
.flag.flag-us {
background-position: -16px 0;
}
.flag.flag-kp {
--- a/src/Controller/Chan.php
+++ b/src/Controller/Chan.php
@@ -492,6 +492,11 @@ class Chan extends Common
// get the current status of the thread
$thread_status = $board->getThreadStatus();
+
+ if(!isset($options['type']) && $thread_status['nreplies'] > 5000) {
+ return $this->error(_i('Threads this large can\'t be opened reliably. <a href="'.$this->uri->create($this->radix->shortname.'/chunk/'.$num.'/').'">Use the chunked method</a> or <a href="'.$this->uri->create($this->radix->shortname.'/last/50/'.$num.'/').'">view last 50 posts</a>.'));
+ }
SELECT `num`, `subnum`, `thread_num`, `op`, `timestamp`, `timestamp_expired`, `preview_orig`, `preview_w`, `preview_h`, `media_filename`, `media_w`, `media_h`, `media_size`, `media_hash`, `media_orig`, `spoiler`, `deleted`, `capcode`, `email`, `name`, `trip`, `title`, `comment`, `sticky`, `locked`, `poster_hash`, `poster_country`, `exif`
FROM `board`
INTO OUTFILE "board.csv"
FIELDS TERMINATED BY ',' ENCLOSED BY '"'
LINES TERMINATED BY "\n";