Subversion Repositories ALCASAR

Rev

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

Rev 2158 Rev 2160
Line 363... Line 363...
363
						</td>
363
						</td>
364
					</tr>
364
					</tr>
365
				</table>
365
				</table>
366
			</div>
366
			</div>
367
";
367
";
368
 
-
 
369
if (is_file("sql/drivers/$config[sql_type]/functions.php"))
-
 
370
	include_once("sql/drivers/$config[sql_type]/functions.php");
-
 
371
else{
-
 
372
	echo "<b>Could not include SQL library</b><br>\n";
-
 
373
	exit();
-
 
374
}
-
 
375
if (isset($action)){
368
if (isset($action)){
376
	if ($action == 'checkpass'){
369
	if ($action == 'checkpass'){
-
 
370
		if (is_file("sql/drivers/$config[sql_type]/functions.php"))
-
 
371
			include_once("sql/drivers/$config[sql_type]/functions.php");
-
 
372
		else{
-
 
373
			echo "<b>Could not include SQL library</b><br>\n";
-
 
374
			exit();
-
 
375
		}
377
	$link = @da_sql_pconnect($config);
376
	$link = @da_sql_pconnect($config);
378
		if ($link){
377
		if ($link){
379
			$res = @da_sql_query($link,$config,
378
			$res = @da_sql_query($link,$config,
380
				"SELECT attribute,value FROM $config[sql_check_table] WHERE username = '$login'
379
				"SELECT attribute,value FROM $config[sql_check_table] WHERE username = '$login'
381
				AND attribute = '$config[sql_password_attribute]';");
380
				AND attribute = '$config[sql_password_attribute]';");