Exemplo n.º 1
0
Arquivo: log.php Projeto: Bossgod/3ch
 function generate_thread($no, $inIndex)
 {
     $this->update_cache();
     if ($inIndex && $this->thread_cache[$no]) {
         //Use $this->thread_cache if we want to generate an inIndex thread and it already exists.
         return $this->thread_cache[$no];
     } else {
         require_once CORE_DIR . "/thread/thread.php";
         //Safety.
         $thread->inIndex = $inIndex;
         $thread = new Thread();
         return $thread->format($no, true);
     }
 }
Exemplo n.º 2
0
 private function generateThread($resno)
 {
     $temp = new Thread();
     $temp->inIndex = true;
     return $temp->format($resno);
 }