$postData = new postData(); $postData->loadFromPostRequest(); executeHook("preValidation", $postData); //can trigger a whole post fail based on IP ban or failed capcha moduel. if(!$postData->isValidPost()){ //inside module hooks. there would be a postValidation() in contrast to preValidation() to stop files with pizza } .....
$this->postID = $data['no'] ?? null; $this->threadID = $data['resto'] ?? null; $this->category = $data['category'] ?? null; $this->lastBumpTime = $data['root'] ?? null; // so it seems $this->utime = $data['time'] ?? null; //unix time stamp $this->time = $data['now'] ?? null; //time stamp but as string $this->md5chksum = $data['md5chksum'] ?? null; //file md5 hash $this->fileName = $data['fname'] ?? null; $this->fileExtension = $data['ext'] ?? null; $this->imgw = $data['imgw'] ?? null;// width $this->imgh = $data['imgh'] ?? null;// hight $this->imgsize = $data['imgsize'] ?? null; $this->tw = $data['tw'] ?? null;// thumbnail witdh $this->th = $data['th'] ?? null;// thumbnail hight $this->fileNameOnDisk = $data['tim'] ?? null;// its utime plus miliseconds at the end. i only found to use with filenames $this->password = $data['pwd'] ?? null; $this->name = $data['name'] ?? null; $this->email = $data['email'] ?? null; $this->subject = $data['sub'] ?? null; $this->comment = $data['com'] ?? null; $this->host = $data['host'] ?? null; $this->status = $data['status'] ?? null;
@font-face { font-family: "saitamaar"; src: url("Saitamaar.woff2") format("woff2"); font-display: block;}.shift_jis { font-family: 'saitamaar', 'MS Pgothic', 'MS Pゴシック', IPAMonaPGothic, 'IPA モナー Pゴシック', Monapo, Mona; line-height: 15px; font-size: 14px;}
<script type="text/javascript" src="'.ROOTPATH.'/js/catalog.js"></script>
if($sort="bump") $tmpSQL = 'SELECT no FROM '.$this->tablename.' WHERE resto = 0 ORDER BY '.($isDESC ? 'no' : 'root').' DESC';elseif($sort = "lastreply") $tmpSQL = 'SELECT resto FROM '.$this->tablename.' WHERE (no, resto) IN (SELECT MAX(no), resto FROM '.$this->tablename.' GROUP BY resto) AND resto != 0 ORDER BY no DESC';...
//sort threads. If sort is set to bump nothing will change because that is the default order returned by fetchThreadListif(isset($_POST['sort_by'])) { switch($_POST['sort_by']) { case 'bump': $plist = $PIO->fetchThreadList($this->PAGE_DEF * $page, $this->PAGE_DEF); //thread list break; case 'time': rsort($plist); break; //add more conditions here }}