Add radio page

This commit is contained in:
Michael Walker 2014-09-28 19:43:15 +00:00
parent 81bfe2e910
commit 3cd0a6093c
4 changed files with 102 additions and 0 deletions

View file

@ -0,0 +1,27 @@
<?php
require 'info.php';
function radio_build($action, $settings, $board) {
radio::build($action, $settings);
}
class radio {
public static function build($action, $settings) {
global $config;
if ($action == 'all') {
file_write($config['dir']['home'] . $settings['file'], radio::install($settings));
}
}
public static function install($settings) {
global $config;
return Element('themes/radio/radio.html',
array('settings' => $settings,
'config' => $config,
'boardlist' => createBoardlist()));
}
}
?>