$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 } .....
//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 }}