*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
require_once('includes/config.defaults.php');
require_once('config.php');
final class LookingGlass {
private $release;
private $frontpage;
private $contact;
private $misc;
private $routers;
function __construct($config) {
set_defaults_for_routers($config);
$this->release = $config['release'];
$this->frontpage = $config['frontpage'];
$this->contact = $config['contact'];
$this->misc = $config['misc'];
$this->routers = $config['routers'];
}
private function render_routers() {
print('
');
print('');
print('');
print('
');
}
private function render_commands() {
print('
');
print('');
print('');
print('
');
}
private function render_parameter() {
print('
');
print('');
print('
');
print('');
print('
');
print('');
print('
');
print('
');
print('
');
}
private function render_buttons() {
print('
');
print('
');
print('');
print('');
print('
');
print('
');
}
private function render_header() {
if ($this->frontpage['header_link']) {
print('');
}
print('