Subversion Repositories ALCASAR

Rev

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

Rev 1852 Rev 2488
Line 16... Line 16...
16
 
16
 
17
function da_sql_host_connect($server,$config)
17
function da_sql_host_connect($server,$config)
18
{
18
{
19
	if ($config['sql_use_http_credentials'] == 'yes'){
19
	if ($config['sql_use_http_credentials'] == 'yes'){
20
		global $HTTP_SERVER_VARS;
20
		global $HTTP_SERVER_VARS;
21
		$SQL_user = $HTTP_SERVER_VARS["PHP_AUTH_USER"];
21
		$SQL_user = $HTTP_SERVER_VARS["REMOTE_USER"];
22
		$SQL_passwd = $HTTP_SERVER_VARS["PHP_AUTH_PW"];
22
		$SQL_passwd = $HTTP_SERVER_VARS["PHP_AUTH_PW"];
23
	}
23
	}
24
	else{
24
	else{
25
		$SQL_user = $config['sql_username'];
25
		$SQL_user = $config['sql_username'];
26
		$SQL_passwd = $config['sql_password'];
26
		$SQL_passwd = $config['sql_password'];
Line 35... Line 35...
35
 
35
 
36
function da_sql_connect($config)
36
function da_sql_connect($config)
37
{
37
{
38
	if (isset($config['sql_use_http_credentials']) && $config['sql_use_http_credentials'] == 'yes'){
38
	if (isset($config['sql_use_http_credentials']) && $config['sql_use_http_credentials'] == 'yes'){
39
		global $HTTP_SERVER_VARS;
39
		global $HTTP_SERVER_VARS;
40
		$SQL_user = $HTTP_SERVER_VARS["PHP_AUTH_USER"];
40
		$SQL_user = $HTTP_SERVER_VARS["REMOTE_USER"];
41
		$SQL_passwd = $HTTP_SERVER_VARS["PHP_AUTH_PW"];
41
		$SQL_passwd = $HTTP_SERVER_VARS["PHP_AUTH_PW"];
42
	}
42
	}
43
	else{
43
	else{
44
		$SQL_user = $config['sql_username'];
44
		$SQL_user = $config['sql_username'];
45
		$SQL_passwd = $config['sql_password'];
45
		$SQL_passwd = $config['sql_password'];
Line 54... Line 54...
54
 
54
 
55
function da_sql_pconnect($config)
55
function da_sql_pconnect($config)
56
{
56
{
57
	if (isset($config['sql_use_http_credentials']) && $config['sql_use_http_credentials'] == 'yes'){
57
	if (isset($config['sql_use_http_credentials']) && $config['sql_use_http_credentials'] == 'yes'){
58
		global $HTTP_SERVER_VARS;
58
		global $HTTP_SERVER_VARS;
59
		$SQL_user = $HTTP_SERVER_VARS["PHP_AUTH_USER"];
59
		$SQL_user = $HTTP_SERVER_VARS["REMOTE_USER"];
60
		$SQL_passwd = $HTTP_SERVER_VARS["PHP_AUTH_PW"];
60
		$SQL_passwd = $HTTP_SERVER_VARS["PHP_AUTH_PW"];
61
	}
61
	}
62
	else{
62
	else{
63
		$SQL_user = $config['sql_username'];
63
		$SQL_user = $config['sql_username'];
64
		$SQL_passwd = $config['sql_password'];
64
		$SQL_passwd = $config['sql_password'];