Subversion Repositories ALCASAR

Rev

Rev 324 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 324 Rev 1831
Line 31... Line 31...
31
	$last = 5;
31
	$last = 5;
32
$start = $now - ($last*60);
32
$start = $now - ($last*60);
33
$now_str = date($config[sql_full_date_format],$now);
33
$now_str = date($config[sql_full_date_format],$now);
34
$prev_str = date($config[sql_full_date_format],$start);
34
$prev_str = date($config[sql_full_date_format],$start);
35
 
35
 
36
$now_str = da_sql_escape_string($now_str);
36
$now_str = da_sql_escape_string($link,$now_str);
37
$prev_str = da_sql_escape_string($prev_str);
37
$prev_str = da_sql_escape_string($link,$prev_str);
38
 
38
 
39
$pagesize = ($pagesize) ? $pagesize : 10;
39
$pagesize = ($pagesize) ? $pagesize : 10;
40
if (!is_numeric($pagesize) && $pagesize != 'all')
40
if (!is_numeric($pagesize) && $pagesize != 'all')
41
	$pagesize = 10;
41
	$pagesize = 10;
42
$limit = ($pagesize == 'all') ? '' : "$pagesize";
42
$limit = ($pagesize == 'all') ? '' : "$pagesize";
Line 44... Line 44...
44
$order = ($order != '') ? $order : $config[general_accounting_info_order];
44
$order = ($order != '') ? $order : $config[general_accounting_info_order];
45
if ($order != 'desc' && $order != 'asc')
45
if ($order != 'desc' && $order != 'asc')
46
	$order = 'desc';
46
	$order = 'desc';
47
$selected[$order] = 'selected';
47
$selected[$order] = 'selected';
48
if ($callerid != ''){
48
if ($callerid != ''){
49
	$callerid = da_sql_escape_string($callerid);
49
	$callerid = da_sql_escape_string($link,$callerid);
50
	$callerid_str = "AND callingstationid = '$callerid'";
50
	$callerid_str = "AND callingstationid = '$callerid'";
51
}
51
}
52
if ($server != '' && $server != 'all'){
52
if ($server != '' && $server != 'all'){
53
	$server = da_sql_escape_string($server);
53
	$server = da_sql_escape_string($link,$server);
54
	$server_str = "AND nasipaddress = '$server'";
54
	$server_str = "AND nasipaddress = '$server'";
55
}
55
}
56
 
56
 
57
unset($da_name_cache);
57
unset($da_name_cache);
58
if (isset($_SESSION['da_name_cache']))
58
if (isset($_SESSION['da_name_cache']))
Line 104... Line 104...
104
if ($acct_attrs['fl'][8] != '') echo "<th>" . $acct_attrs['fl'][8] . "</th>\n";
104
if ($acct_attrs['fl'][8] != '') echo "<th>" . $acct_attrs['fl'][8] . "</th>\n";
105
if ($acct_attrs['fl'][9] != '') echo "<th>" . $acct_attrs['fl'][9] . "</th>\n";
105
if ($acct_attrs['fl'][9] != '') echo "<th>" . $acct_attrs['fl'][9] . "</th>\n";
106
unset($sql_extra_query);
106
unset($sql_extra_query);
107
if ($config[sql_accounting_extra_query] != ''){
107
if ($config[sql_accounting_extra_query] != ''){
108
	$sql_extra_query = xlat($config[sql_accounting_extra_query],$login,$config);
108
	$sql_extra_query = xlat($config[sql_accounting_extra_query],$login,$config);
109
	$sql_extra_query = da_sql_escape_string($sql_extra_query);
109
	$sql_extra_query = da_sql_escape_string($link,$sql_extra_query);
110
}
110
}
111
?>
111
?>
112
	</tr>
112
	</tr>
113
 
113
 
114
<?php
114
<?php