lainchan/templates/themes/irc/theme.php

28 lines
606 B
PHP
Raw Normal View History

2015-02-14 00:12:54 -05:00
<?php
require 'info.php';
function irc_build($action, $settings, $board) {
irc::build($action, $settings);
}
class irc {
public static function build($action, $settings) {
global $config;
if ($action == 'all') {
file_write($config['dir']['home'] . $settings['file'], irc::install($settings));
}
}
public static function install($settings) {
global $config;
return Element('themes/irc/irc.html',
array('settings' => $settings,
'config' => $config,
'boardlist' => createBoardlist()));
}
}
?>