Example #1
0
 public static function build($action, $settings)
 {
     global $config;
     if ($action == 'all') {
         file_write($config['dir']['home'] . $settings['file_main'], Categories::homepage($settings));
     }
     if ($action == 'all' || $action == 'boards') {
         file_write($config['dir']['home'] . $settings['file_sidebar'], Categories::sidebar($settings));
     }
     if ($action == 'all' || $action == 'news') {
         file_write($config['dir']['home'] . $settings['file_news'], Categories::news($settings));
     }
 }
Example #2
0
 public static function build($action, $settings)
 {
     global $config;
     if ($action == 'all') {
         file_write($config['dir']['home'] . $config['file_index'], Categories::homepage($settings));
     }
     if ($action == 'all' || $action == 'boards') {
         file_write($config['dir']['home'] . 'sidebar.html', Categories::sidebar($settings));
     }
     if ($action == 'all' || $action == 'news' || $action == 'post') {
         file_write($config['dir']['home'] . 'news.html', Categories::news($settings));
     }
 }