Subversion Repositories ALCASAR

Rev

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

Rev 1805 Rev 1831
Line 24... Line 24...
24
 
24
 
25
$now = time();
25
$now = time();
26
$now_str = ($now_str != '') ? "$now_str" : date($config[sql_date_format],$now + 86400);
26
$now_str = ($now_str != '') ? "$now_str" : date($config[sql_date_format],$now + 86400);
27
$prev_str = ($prev_str != '') ? "$prev_str" : "0001-01-01 00:00:00";
27
$prev_str = ($prev_str != '') ? "$prev_str" : "0001-01-01 00:00:00";
28
 
28
 
29
$now_str = da_sql_escape_string($now_str);
29
$now_str = da_sql_escape_string($link,$now_str);
30
$prev_str = da_sql_escape_string($prev_str);
30
$prev_str = da_sql_escape_string($link,$prev_str);
31
 
31
 
32
$num = 0;
32
$num = 0;
33
$pagesize = ($pagesize) ? $pagesize : 10;
33
$pagesize = ($pagesize) ? $pagesize : 10;
34
if (!is_numeric($pagesize) && $pagesize != 'all')
34
if (!is_numeric($pagesize) && $pagesize != 'all')
35
	$pagesize = 10;
35
	$pagesize = 10;
Line 137... Line 137...
137
	</tr>
137
	</tr>
138
 
138
 
139
<?php
139
<?php
140
$auth_user = $_SERVER["PHP_AUTH_USER"];
140
$auth_user = $_SERVER["PHP_AUTH_USER"];
141
if ($config[general_restrict_badusers_access] == 'yes'){
141
if ($config[general_restrict_badusers_access] == 'yes'){
142
	$auth_user = da_sql_escape_string($auth_user);
142
	$auth_user = da_sql_escape_string($link,$auth_user);
143
	$extra_query = "AND admin == '$auth_user'";
143
	$extra_query = "AND admin == '$auth_user'";
144
}
144
}
145
$link = da_sql_pconnect($config);
145
$link = da_sql_pconnect($config);
146
if ($link){
146
if ($link){
147
	$search = da_sql_query($link,$config,
147
	$search = da_sql_query($link,$config,