php登录利用$token验证
2016-05-20 11:12
507 查看
<?php
$module = $_GET['module'];
$action = $_GET['action'];
$token = md5sum($module.date('Y-m-d',time()).'#$@%!*'.$action);
if($token != $_GET['token']){
alarm('access deny');
exit();
}
?>
$module = $_GET['module'];
$action = $_GET['action'];
$token = md5sum($module.date('Y-m-d',time()).'#$@%!*'.$action);
if($token != $_GET['token']){
alarm('access deny');
exit();
}
?>
相关文章推荐
- VS中使用CXTPDockingPane出现的编译错误 error C2059: syntax error : 'constant' 解决
- Ubuntu 14.04建tftp服务器的安装、设置、调试
- SCCM TP4安装客户端Agent
- SCCM TP4安装客户端Agent
- PHP错题整理
- Yii2 Format 如何使用
- thinkPHP3.x常量整理(预定义常量/路径常量/系统常量)
- getOutputStream() has already been called for this response异常的原因和解决方法[转]
- ftp协议
- php灌水
- php printf() 输出格式化的字符串
- thinkphp禁止模版标签解析
- ThinkPHP表单令牌错误的相关解决方法分析
- PHP代码优化小笔记
- ThinkPHP使用Ueditor的方法详解
- [PDO绑定参数]使用PHP的PDO扩展进行批量更新操作
- thinkphp3.x中变量的获取和过滤方法详解
- 每天laravel-20160811| Container -14
- 每天laravel-20160811| Container -14
- php单例模式