Subversion Repositories ALCASAR

Rev

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

Rev 901 Rev 1091
Line 1... Line 1...
1
<?php
1
<?php 
2
if (is_file("../lib/sql/drivers/$config[sql_type]/functions.php"))
2
if (is_file("../lib/sql/drivers/$config[sql_type]/functions.php"))
3
	include_once("../lib/sql/drivers/$config[sql_type]/functions.php");
3
	include_once("../lib/sql/drivers/$config[sql_type]/functions.php");
4
else{
4
else{
5
	echo "<b>Could not include SQL library</b><br>\n";
5
	echo "<b>Could not include SQL library</b><br>\n";
6
	exit();
6
	exit();
7
}
7
}
8
include_once('../lib/functions.php');
8
include_once('../lib/functions.php');
9
if ($config[sql_use_operators] == 'true'){
9
if ($config[sql_use_operators] == 'true'){
10
	include("../lib/operators.php");
10
	include_once("../lib/operators.php");
11
	$text = ',op';
11
	$text = ',op';
12
	$passwd_op = ",':='";
12
	$passwd_op = ",':='";
13
}
13
}
14
$da_abort=0;
14
$da_abort=0;
15
$op_val2 = '';
15
$op_val2 = '';
16
$link = @da_sql_pconnect($config);
16
$link = @da_sql_pconnect($config);
17
if ($link){
17
if ($link){
18
	if (is_file("../lib/crypt/$config[general_encryption_method].php")){
18
	if (is_file("../lib/crypt/$config[general_encryption_method].php")){
19
		include("../lib/crypt/$config[general_encryption_method].php");
19
		include_once("../lib/crypt/$config[general_encryption_method].php");
20
		/*Ajout en vue de l'impression des données (thank's to Geoffroy MUSITELLI)*/
20
		/*Ajout en vue de l'impression des données (thank's to Geoffroy MUSITELLI)*/
21
		$passwd_imp = $passwd;
21
		$passwd_imp = $passwd;
22
		/*Fin Ajout*/
22
		/*Fin Ajout*/
23
		$passwd = da_encrypt($passwd);
23
		$passwd = da_encrypt($passwd);
24
		$passwd = da_sql_escape_string($passwd);
24
		$passwd = da_sql_escape_string($passwd);