summaryrefslogtreecommitdiff
path: root/templates/themes/rules/theme.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/themes/rules/theme.php')
-rw-r--r--templates/themes/rules/theme.php28
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