0,0 → 1,46 |
<?php |
#################################################### |
# AstWeb - Asterisk PBX Dynamic config environment # |
# # |
# Written by: Jamie Carl # |
# jazz@funkynerd.com # |
# # |
# Copyright (C) 2006 Achieve Corp # |
# # |
# Licence: This software is licenced under the # |
# GNU/GPL. Please see licence.txt for # |
# more information. # |
#################################################### |
|
define('IN_ASTWEB', true); |
|
include_once('config.php'); |
include_once($includes.'/display.php'); |
include_once($includes.'/functions.php'); |
include_once($includes.'/db.php'); |
|
$display = new template_handler('template'); |
$display->add_template('header'); |
$display->add_template('menu'); |
|
$pg_globals = array('AST_STYLESHEET' => $site_style, |
'AST_SITETITLE' => $site_title, |
'AST_DATETIME' => date('Y-m-d H:i:s'), |
'HREF_HOME' => $PHP_SELF, |
'HREF_CDR' => $PHP_SELF.'?m=cdr', |
'HREF_CDR_LIST' => $PHP_SELF.'?m=cdr&list'); |
|
$display->add_variables($pg_globals); |
|
switch($_GET['m']) { |
case 'cdr': |
include('cdr.php'); |
break; |
default: |
include('summary.php'); |
} |
|
$display->add_template('footer'); |
echo $display; |
|
?> |