Subversion Repositories ALCASAR

Rev

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

Rev 1831 Rev 2488
Line 77... Line 77...
77
	WHERE id = '$row_id';");
77
	WHERE id = '$row_id';");
78
	if ($search){
78
	if ($search){
79
		$row = da_sql_fetch_array($search,$config);
79
		$row = da_sql_fetch_array($search,$config);
80
		if ($row[id] == $row_id){
80
		if ($row[id] == $row_id){
81
			$admin = "$row[admin]";
81
			$admin = "$row[admin]";
82
			if (($admin != '-' && $_SERVER["PHP_AUTH_USER"] == $admin) || $admin == '-'){
82
			if (($admin != '-' && $_SERVER["REMOTE_USER"] == $admin) || $admin == '-'){
83
				$sql_servers = array();
83
				$sql_servers = array();
84
				if ($config[sql_extra_servers] != '')
84
				if ($config[sql_extra_servers] != '')
85
					$sql_servers = explode(' ',$config[sql_extra_servers]);
85
					$sql_servers = explode(' ',$config[sql_extra_servers]);
86
				$sql_servers[] = $config[sql_server];
86
				$sql_servers[] = $config[sql_server];
87
				foreach ($sql_servers as $server){
87
				foreach ($sql_servers as $server){
Line 135... Line 135...
135
	<tr bgcolor="#d0ddb0">
135
	<tr bgcolor="#d0ddb0">
136
	<th>#</th><th>user</th><th>date</th><th>admin</th><th>reason</th><th>administrator action</th>
136
	<th>#</th><th>user</th><th>date</th><th>admin</th><th>reason</th><th>administrator action</th>
137
	</tr>
137
	</tr>
138
 
138
 
139
<?php
139
<?php
140
$auth_user = $_SERVER["PHP_AUTH_USER"];
140
$auth_user = $_SERVER["REMOTE_USER"];
141
if ($config[general_restrict_badusers_access] == 'yes'){
141
if ($config[general_restrict_badusers_access] == 'yes'){
142
	$auth_user = da_sql_escape_string($link,$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);