已掉线,重新登录

首页 > 绿虎论坛 > 历史版块 > 编程 > PHP > 源码

标题: 怎样给php文件加密?

作者: @Ta

时间: 2013-08-08

点击: 2590

如题,意思就是说访问这个php文件必须输入密码才行。

[隐藏样式|查看源码]


『回复列表(7|隐藏机器人聊天)』

1. @青山,用if判断,你去这里学学吧w3school.com.cn
(/@Ta/2013-08-08 11:49//)

2. @青山,cookie
(/@Ta/2013-08-08 11:49//)

3. if
(/@Ta/2013-08-08 11:53//)

4. @青山http://3g.hu60.cn/tool/b2.php以前有人放过
(/@Ta/2013-08-08 12:08//)

5. @php 源码呢?
(/@Ta/2013-08-08 12:18//)

6. 就是if
else
(/@Ta/2013-08-08 12:31//)

7. @青山,b2的源码

 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <form method="post" action="b.php"> <input type="password"name="pass"/><input type="submit" name="ok"/></form> 密码sunny

b的源码

 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>访问密码认证</title> <?php   if($_POST['ok']) { if($_POST['pass']=='sunny')
//如果密码是sunny
 {echo"密码正确gogogo<a href='http://3g.cn.nf'>(* ̄︶ ̄*)</a>
//电影金陵十三钗<object width='541' height='450'><param name='allowFullScreen' value='true'><param name='movie' value='http://i7.imgs.letv.com/player/swfPlayer.swf?autoPlay=0&id=1488765'/><embed src='http://i7.imgs.letv.com/player/swfPlayer.swf?autoPlay=0&id=1488765' width='541' height='450' allowFullScreen='true' type='application/x-shockwave-flash'/></object>";} 
//如果不是sunny
else{ echo"密码错误!你丫一边玩去╰_╯"; } } ?>★优化By sunny
(/@Ta/2013-08-08 12:37//)

回复需要登录

7月23日 15:14 星期三

本站由hu60wap6驱动

备案号: 京ICP备18041936号-1