Home > Backend Development > PHP Tutorial > ecshop中初始化会员数据调整类的unserialize()的疑问

ecshop中初始化会员数据调整类的unserialize()的疑问

WBOY
Release: 2016-06-13 12:03:51
Original
1237 people have browsed it

ecshop中初始化会员数据整合类的unserialize()的疑问
ecshop中lib_common.php中的

/**<br /> * 初始化会员数据整合类<br /> *<br /> * @access  public<br /> * @return  object<br />*/<br />function &init_users()<br />{<br />    $set_modules = false;<br />    static $cls = null;<br />    if ($cls != null)<br />    {<br />        return $cls;<br />    }<br />    include_once(ROOT_PATH . 'includes/modules/integrates/' . $GLOBALS['_CFG']['integrate_code'] . '.php');<br />    $cfg = unserialize($GLOBALS['_CFG']['integrate_config']);<br />    $cls = new $GLOBALS['_CFG']['integrate_code']($cfg);<br /><br />    return $cls;<br />}
Copy after login



$cfg = unserialize($GLOBALS['_CFG']['integrate_config']);

全局$GLOBALS['_CFG']['integrate_config']这个变量没有找到,好像没有定义['integrate_config']啊?
这一步到底是为什么这样做呢,$cfg的值是什么呢?
------解决方案--------------------
查找整个文件夹 搜索  $GLOBALS  找

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template