@byxiaoxie7 年前

07/14
17:43
Home

PHP密码验证(源代码)

<!--
*****************
*By:TKS 17-7-13
******************
-->
<?php
if (isset($_POST['password']) && md5($_POST['password']) == md5('test')) 
{
	echo 'ByXiaoXie';
} 
else 
{
    echo <<<'EOF'
		<!DOCTYPE html>
		<html lang="en">
			<head>
				<meta charset="UTF-8">
				<title>ByXiaoXie</title>
			</head>
			<body>
				<form action='' method='post'>
				<input type='password' name="password" />
				<input type='submit' value='LOGIN'>
				</form>
			</body>
		</html>
EOF;
}
?>

PHP密码验证(源代码)

加载中……