Subversion Repositories general

Compare Revisions

No changes between revisions

Ignore whitespace Rev 1281 → Rev 1378

/asterisk-stats/trunk/index.php
1,3 → 1,44
<?php
header('Location: astweb.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. #
####################################################
 
include_once('includes/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('includes/cdr.php');
break;
default:
include('includes/summary.php');
}
 
$display->add_template('footer');
echo $display;
 
?>
Property changes:
Added: svn:mergeinfo