415 $prefix =
'OAUTH_'.$genericstring.($keyforprovider ?
'-'.$keyforprovider :
'');
418 foreach (
$conf->global as $constname => $constvalue) {
419 if (strpos($constname, $prefix.
'_') === 0) {
420 $found[$constname] = empty($constvalue) ?
'EMPTY' :
'set';
424 if (!isset($found[$prefix.
'_SCOPE'])) {
425 $found[$prefix.
'_SCOPE'] =
'MISSING';
429 $out =
'service='.ucfirst(strtolower($genericstring)).($keyforprovider ?
'-'.$keyforprovider :
'');
430 $out .=
', entity='.$conf->entity;
431 foreach ($found as $constname => $status) {
432 $out .=
', '.$constname.
'='.$status;
if(!isModEnabled('ai')||!getDolGlobalString('AI_ASSISTANT_ENABLED')) global $conf
The main.inc.php has been included so the following variable are now defined:
complete_head_from_modules($conf, $langs, $object, &$head, &$h, $type, $mode='add', $filterorigmodule='')
Complete or removed entries into a head array (used to build tabs).
getOauthSetupDiagnostic($genericstring, $keyforprovider='')
Return a human readable diagnostic of the setup of an OAuth2 provider entry, to append to an error me...