28require
'../main.inc.php';
29require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
30require_once DOL_DOCUMENT_ROOT.
'/core/lib/files.lib.php';
41$langs->loadLangs(array(
"companies",
"products",
"admin",
"mails",
"other",
"errors"));
43$action =
GETPOST(
'action',
'aZ09');
44$cancel =
GETPOST(
'cancel',
'aZ09');
57if ($action ==
'update' && !$cancel) {
69if (preg_match(
'/^win/i', PHP_OS)) {
72if (preg_match(
'/^mac/i', PHP_OS)) {
79llxHeader(
'', $langs->trans(
"Setup"), $wikihelp,
'', 0, 0,
'',
'',
'',
'mod-admin page-mails_ingoing');
86$listofmethods = array();
87$listofmethods[
'mail'] =
'PHP mail function';
88$listofmethods[
'smtps'] =
'SMTP/SMTPS socket library';
89if (version_compare(phpversion(),
'7.0',
'>=')) {
90 $listofmethods[
'swiftmailer'] =
'Swift Mailer socket library';
94$oauthservices = array();
96foreach (
$conf->global as $key => $val) {
97 if (!empty($val) && preg_match(
'/^OAUTH_.*_ID$/', $key)) {
98 $key = preg_replace(
'/^OAUTH_/',
'', $key);
99 $key = preg_replace(
'/_ID$/',
'', $key);
100 if (preg_match(
'/^.*-/', $key)) {
101 $name = preg_replace(
'/^.*-/',
'', $key);
103 $name = $langs->trans(
"NoName");
105 $provider = preg_replace(
'/-.*$/',
'', $key);
106 $provider = ucfirst(strtolower($provider));
108 $oauthservices[$key] = $name.
" (".$provider.
")";
115print
'<span class="opacitymedium">'.$langs->trans(
"EMailsInGoingDesc", $langs->transnoentitiesnoconv(
"EmailCollector")).
"</span><br>\n";
email_admin_prepare_head()
Return array head with list of tabs to view object information.
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader($head='', $title='', $help_url='', $target='', $disablejs=0, $disablehead=0, $arrayofjs='', $arrayofcss='', $morequerystring='', $morecssonbody='', $replacemainareaby='', $disablenofollow=0, $disablenoindex=0)
Empty header.
load_fiche_titre($title, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
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.
dol_get_fiche_end($notab=0)
Return tab footer of a card.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
global $conf
The following vars must be defined: $type2label $form $conf, $lang, The following vars may also be de...
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.