linux1.0内核的源代码,欢迎大家使用

源代码在线查看: password_check.php3

软件大小: 2997 K
上传用户: kzdai22
关键词: linux 1.0 内核 源代码
下载地址: 免注册下载 普通下载 VIP

相关代码

								require('password.php3');				if (is_file("../lib/sql/drivers/$config[sql_type]/functions.php3"))					include_once("../lib/sql/drivers/$config[sql_type]/functions.php3");				else{					echo "Could not include SQL library\n";					exit();				}								if ($action == 'checkpass'){					$link = @da_sql_pconnect($config);					if ($link){						$res = @da_sql_query($link,$config,							"SELECT attribute,value FROM $config[sql_check_table] WHERE username = '$login'							AND (attribute = 'User-Password' OR attribute = 'Crypt-Password');");						if ($res){							$row = @da_sql_fetch_array($res,$config);							if (is_file("../lib/crypt/$config[general_encryption_method].php3")){								include("../lib/crypt/$config[general_encryption_method].php3");								$enc_passwd = $row[value];								if ($row[attribute] == 'Crypt-Password') {									$passwd = da_encrypt($passwd,$enc_passwd);								}								if ($passwd == $enc_passwd)									$msg = 'YES It is that';								else									$msg = 'NO It is wrong';							}							else								echo "Could not open encryption library file\n";						}					}					echo "$msg\n";				}				?>											

相关资源