build($action, $settings); } // Wrap functions in a class so they don't interfere with normal Tinyboard operations class Basic { public function build($action, $settings) { global $config, $_theme; if($action == 'all') { copy($config['dir']['homepage'] . '/' . $_theme . '/recent.css', $config['dir']['home'] . 'recent.css'); } $this->excluded = explode(' ', $settings['exclude']); if($action == 'all' || $action == 'post') // file_put_contents($config['dir']['home'] . $config['file_index'], $this->homepage($settings)); file_write($config['dir']['home'] . 'recent.html', $this->homepage($settings)); } // Build news page public function homepage($settings) { global $config, $board; // HTML5 $body = '' . '' . '' . '' . '' . $settings['title'] . '' . ''; $boardlist = createBoardlist(); $body .= '
' . $boardlist['top'] . '
'; $body .= '

' . $settings['title'] . '

'; $boards = listBoards(); // Wrap $body .= '
'; // Recent images $body .= '

Recent Images

'; // Latest posts $body .= '

Latest Posts

'; // Stats $body .= '

Stats

'; // End wrap $body .= '
'; // Finish page $body .= '

Powered by Tinyboard'; return $body; } }; ?>