[d]
[color=ff0000]
if (!$config) { // If there is a config error, we use xoops
$xoops_auth_method = 'xoops';
} else {
$xoops_auth_method = $config[0]->getVar('conf_value');
}
[/color][/d]
if (!$config) { // If there is a config error, we use xoops
$xoops_auth_method = 'xoops';
} else {
$xoops_auth_method = $config[0]->getConfValueForOutput();
if(!is_readable( XOOPS_ROOT_PATH.'/class/auth/auth_' . $xoops_auth_method . '.php')){
$xoops_auth_method = 'xoops';
}
}
|