//asterisk-stats/trunk/includes/cdr.php |
---|
File deleted |
Property changes: |
Deleted: svn:mergeinfo |
//asterisk-stats/trunk/includes/menu.php |
---|
File deleted |
//asterisk-stats/trunk/includes/summary.php |
---|
File deleted |
Property changes: |
Deleted: svn:mergeinfo |
//asterisk-stats/trunk/includes/defaults.php |
---|
1,11 → 1,8 |
<?php |
$tpl_dir = 'templates'; |
$img_dir = 'images'; |
$g_site_title = 'Asterisk Web Interface'; |
$g_site_style = 'style.css'; |
$site_title = 'Asterisk Web Interface'; |
$site_style = 'style.css'; |
$db_type = 'PGSQL'; |
$db_host = 'localhost'; |
$db_user = 'astweb'; |
//asterisk-stats/trunk/includes/common.php |
---|
6,4 → 6,36 |
include_once('includes/functions.php'); |
include_once('includes/db.php'); |
$g_display = NULL; |
function Prolog() |
{ |
global $g_display; |
$g_display = new template_handler('template'); |
$g_display->add_template('header'); |
ShowMenu($g_display); |
} |
function ShowMenu($display) |
{ |
global $g_site_style, $g_site_title; |
$display->add_template('menu'); |
$display->add_variables(array( |
'AST_STYLESHEET' => $g_site_style, |
'AST_SITETITLE' => $g_site_title, |
'AST_DATETIME' => date('Y-m-d H:i:s'), |
)); |
} |
function Epilog() |
{ |
global $g_display; |
$g_display->add_template('footer'); |
echo $g_display; |
} |
?> |
//asterisk-stats/trunk/includes/functions.php |
---|
1,7 → 1,5 |
<?php |
$PHP_SELF = $_SERVER['PHP_SELF']; |
function FormatDuration($seconds) { |
$minutes = $seconds / 60; |
$seconds = $seconds % 60; |