forked from leftypol/leftypol
Add rules page
This commit is contained in:
parent
3cd0a6093c
commit
63efe1e0db
4 changed files with 131 additions and 0 deletions
28
templates/themes/rules/theme.php
Normal file
28
templates/themes/rules/theme.php
Normal file
|
@ -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()));
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue