diff options
| author | Michael Walker <mike@barrucadu.co.uk> | 2014-09-28 19:43:24 +0000 |
|---|---|---|
| committer | Michael Walker <mike@barrucadu.co.uk> | 2014-09-28 23:06:06 +0000 |
| commit | 63efe1e0dba11072e77a5a8fc185c033c0491b77 (patch) | |
| tree | dbe2ef0387bed43725b2d36979645e5e35292b32 /templates/themes/rules/theme.php | |
| parent | 3cd0a6093ca3b028a57dd62e0fc35ed56fd4fdfa (diff) | |
Add rules page
Diffstat (limited to 'templates/themes/rules/theme.php')
| -rw-r--r-- | templates/themes/rules/theme.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/templates/themes/rules/theme.php b/templates/themes/rules/theme.php new file mode 100644 index 00000000..fc50437f --- /dev/null +++ b/templates/themes/rules/theme.php @@ -0,0 +1,28 @@ +<?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', + array('settings' => $settings, + 'config' => $config, + 'boardlist' => createBoardlist())); + } +} + +?>
\ No newline at end of file |
