What does ecshop $ _ CFG mean? ecshop $ _ CFG
/* If you use the balance, obtain the user balance */if ((! Isset ($ _ CFG ['use _ surplus ']) | $ _ CFG ['use _ surplus'] = '1 ') & $ _ SESSION ['user _ id']> 0 & $ user_info ['user _ money']> 0) {// balance $ smarty-> assign ('Allow _ use_surplus ', 1); $ smarty-> assign ('your _ surplus ', $ user_info ['user _ money']);} This is my flow. A piece of code in php does not know what $ _ CFG means. It is a system parameter on the Internet. $ _ LANG is a language pack, I know. I also know that $ _ LANG ['use _ surplus '] is a user balance, but what does this if statement mean? It's a bit difficult to say. No way. ec, I'm a little white. Please support me !!!
Ecshop $ _ CFG array is mainly used to place system parameters and share data across the site, ecshop usually uses the $ GLOBALS ['_ CFG'] global variable mode for processing. $ GLOBALS ['_ CFG'] of ecshop, mainly in the events des/init. php appears and is initialized. The $ _ CFG = load_config (); load_config () function is used to obtain the parameters. The uplodes \ lib_common.php file contains this ecshop function. Function load_config (). You can check it out. I hope it will help you.