= 1024 && $i < 4; $i++) $size /= 1024; return round($size, 2).$units[$i]; } function error($message) { die(Element('page.html', Array('index' => ROOT, 'title'=>'Error', 'subtitle'=>'An error has occured.', 'body'=>"
'.$this->subject.' ' . ( !empty($this->email) ? '':'') . '' . $this->name . '' . (!empty($this->trip) ? ' '.$this->trip.'':'') . ( !empty($this->email) ? '':'') . ' ' . date('m/d/y (D) H:i:s', $this->time).' No.id . ');"') . 'href="' . ($index?ROOT . DIR_RES . $this->thread . '.html' . '#q' . $this->id:'javascript:void(0);') . '">'.$this->id.'
'.(!empty($this->file)?'File: '.basename($this->file).' ('.format_bytes($this->filesize).', '.$this->filex.'x'.$this->filey.', '.$this->filename.')
':'').''.$this->body.'
File: '.basename($this->file).' ('.format_bytes($this->filesize).', '.$this->filex.'x'.$this->filey.', '.$this->filename.')
'.$this->subject.' ' . ( !empty($this->email) ? '':'') . '' . $this->name . '' . (!empty($this->trip) ? ' '.$this->trip.'':'') . ( !empty($this->email) ? '':'') . ' ' . date('m/d/y (D) H:i:s', $this->time). ' No.id . ');"') . 'href="' . ($index?ROOT . DIR_RES . $this->id . '.html' . '#q' . $this->id:'javascript:void(0);') . '">'.$this->id.'' . ($index ? '[Reply]' : '') . '
' .$this->body.' ' . ($this->omitted ? '' . $this->omitted . ' post' . ($this->omitted==1?'':'s') . ' omitted. Click reply to view.':'') . '