Ecshop of Unserialize () in initializing the member data integration class

Source: Internet
Author: User
Ecshop in the lib_common.php

/** * Initialize member Data Integration class * * @access public  * @return  object*/function &init_users () {    $set _modules = false;    static $cls = null;    if ($cls! = null)    {        return $cls;    }    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);    return $cls;}



$cfg = Unserialize ($GLOBALS [' _cfg '] [' integrate_config ']);

Global $globals[' _cfg ' [' integrate_config '] This variable is not found, as if there is no definition [' integrate_config '] ah?
What exactly is this step, and what is the value of $cfg?


Reply to discussion (solution)

Find an entire folder search $GLOBALS find

Find an entire folder search $GLOBALS find



In lib_common.php, function load_config () assigns a value to the $globals global variable, but does not find the value $globals[' _cfg ' [' integrate_config '], so doubt,

$cfg = Unserialize ($GLOBALS [' _cfg '] [' integrate_config ']);

Think it should be shop_config. Integrate_config in this data sheet

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.