summaryrefslogtreecommitdiff
path: root/templates/themes/rules/theme.php
blob: 457f40676157597b9c3cd41aba5b4352e177dffa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php

require 'info.php';
	
function rules_build($action, $settings, $board) {
  rules::build($action, $settings);
}
	
class rules {
  public static function build($action, $settings) {
    global $config;

    if ($action == 'all') {
      file_write($config['dir']['home'] . $settings['file'], rules::install($settings));
    }
  }

  public static function install($settings) {
    global $config;
			
    return Element('themes/rules/rules.html',
                   ['settings'  => $settings, 'config'    => $config, 'boardlist' => createBoardlist()]);
  }
}
	
?>