$_server[#039;php_auth_user#039;],ecshop中$user ($GLOBALS[#039;user#039;])对象在哪里定义的...
2024-05-28 15:16:48
ecshop的程序中,有个对象,叫做$user的对象,他用来处理用户信息的。不如登陆,注册,还有就是用来和第三方管理通讯和共享资源的。
比如user.php中,有一条$user->login($username, $password).这里的$user就是来自includes/init.php中的 $user = & init_users();而inti_user函数又在lib_common.php中,他里面有一段非常经典的代码。include_once(ROOT_PATH . 'includes/modules/integrates/' . $GLOBALS['_CFG']['integrate_code'] . '.php');
$cfg = unserialize($GLOBALS['_CFG']['integrate_config']);
$cls = new $GLOBALS['_CFG']['integrate_code']($cfg);
可以看的出来,调用的插件默认的是ecshop。那么这里面包含的文件应该是'includes/modules/integrates /ecshop.php',而且声明一个对象,打开ecshop.php这个文件,你会发现他继承了'includes/modules /integrates/integrate.php'.
他里面有很多的方法:login()登陆,edit_user()编辑用户资料,add_user()注册用户.
最新文章
- 设计模式解析(五)——几种设计模式之Facade和Adapter
- 华为海思HISILICON
- 稀疏编码(Sparse Coding)(二)
- Ubuntu16.04 Xmind安装
- classpass 配置mysql_jmeter压测学习18-JDBC配置连接mysql数据库
- Windows系统下查看已共享的文件夹的方法
- [转]Zend Framework + Smarty 应用实例
- 外星人电脑为什么那么贵_为什么系统门窗那么贵?
- 1.strcpy使用注意
- 集体智慧编程(5)——优化
- Cocos2dx之UI组件
- AI如何在医疗中大显身手?
- gmx-MMPBSA — error while loading shared libraries: libgfortran.so.3: cannot open shared object file
- jpg转换成pdf转换器免费版
- 达梦数据库大量Failure occurs in data_recv_inet_once告警
- python 实时录音_python实现录音功能(可随时停止录音)
- 什么是ddos攻击,怎么防御ddos攻击?
- layer弹出层的位置设置
- typescript函数和类的基础
- box-shadow上下左右四个边框设置阴影样式
热门文章
- ssms 连接 ssis_SSIS连接管理器:OLE DB,ODBC,ADO.NET
- Django基础三之视图函数
- VS 2005 2008 项目模板丢失问题
- mysql 约束条件 外键 forigen key 介绍
- composer安装Workerman报错:Installation failed, reverting ./composer.json to its original content....
- java复习web篇——servlet
- 2018.3.12 Leecode习题 给定一个整数数列,找出其中和为特定值的那两个数。
- VS2012连接数据库问题
- 如何学习IOS开发~三个字(学思做)
- hibernate、mysql、中文字符问题