Go to the documentation of this file.
27 require
'../main.inc.php';
28 require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
29 require_once DOL_DOCUMENT_ROOT.
'/core/lib/files.lib.php';
32 $langs->loadLangs(array(
"companies",
"products",
"admin",
"mails",
"other",
"errors"));
34 $action =
GETPOST(
'action',
'aZ09');
35 $cancel =
GETPOST(
'cancel',
'aZ09');
48 if ($action ==
'update' && !$cancel) {
60 if (preg_match(
'/^win/i', PHP_OS)) {
63 if (preg_match(
'/^mac/i', PHP_OS)) {
77 $listofmethods = array();
78 $listofmethods[
'mail'] =
'PHP mail function';
79 $listofmethods[
'smtps'] =
'SMTP/SMTPS socket library';
80 if (version_compare(phpversion(),
'7.0',
'>=')) {
81 $listofmethods[
'swiftmailer'] =
'Swift Mailer socket library';
85 $oauthservices = array();
87 foreach ($conf->global as $key => $val) {
88 if (!empty($val) && preg_match(
'/^OAUTH_.*_ID$/', $key)) {
89 $key = preg_replace(
'/^OAUTH_/',
'', $key);
90 $key = preg_replace(
'/_ID$/',
'', $key);
91 if (preg_match(
'/^.*-/', $key)) {
92 $name = preg_replace(
'/^.*-/',
'', $key);
94 $name = $langs->trans(
"NoName");
96 $provider = preg_replace(
'/-.*$/',
'', $key);
97 $provider = ucfirst(strtolower($provider));
99 $oauthservices[$key] = $name.
" (".$provider.
")";
106 print
'<span class="opacitymedium">'.$langs->trans(
"EMailsInGoingDesc", $langs->transnoentitiesnoconv(
"EmailCollector")).
"</span><br>\n";
load_fiche_titre($titre, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
if(GETPOSTISSET('MAIN_AGENDA_XCAL_EXPORTKEY')) if(GETPOSTISSET('MAIN_AGENDA_EXPORT_PAST_DELAY')) if(GETPOSTISSET('MAIN_AGENDA_EXPORT_CACHE')) if(GETPOSTISSET('AGENDA_EXPORT_FIX_TZ')) if($actionsave) if(!isset($conf->global->MAIN_AGENDA_EXPORT_PAST_DELAY)) $wikihelp
View.
if($cancel &&! $id) if($action=='add' &&! $cancel) if($action=='delete') if($id) $form
Actions.
if(!defined('NOREQUIRESOC')) if(!defined('NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined('NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined('NOREQUIREAJAX')) llxHeader()
Empty header.
dol_get_fiche_end($notab=0)
Return tab footer of a card.
dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limittoshow=0, $moretabssuffix='', $dragdropfile=0)
Show tabs of a record.
email_admin_prepare_head()
Return array head with list of tabs to view object informations.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.