2014-01-10 33 views

回答

0

這應該做的伎倆:

include_once('../../config/config.inc.php'); 
include_once('../../config/settings.inc.php'); 
include_once('../../classes/Cookie.php'); 

if(Context::getContext()->customer->isLogged()) { 
    // welcome 
} 
else{ 
    // please login 
} 

正如another SO question找到。