27require
'../main.inc.php';
28require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
29require_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');
48if ($action ==
'update' && !$cancel) {
60if (preg_match(
'/^win/i', PHP_OS)) {
63if (preg_match(
'/^mac/i', PHP_OS)) {
70llxHeader(
'', $langs->trans(
"Setup"), $wikihelp,
'', 0, 0,
'',
'',
'',
'mod-admin page-mails_ingoing');
77$listofmethods = array();
78$listofmethods[
'mail'] =
'PHP mail function';
79$listofmethods[
'smtps'] =
'SMTP/SMTPS socket library';
80if (version_compare(phpversion(),
'7.0',
'>=')) {
81 $listofmethods[
'swiftmailer'] =
'Swift Mailer socket library';
85$oauthservices = array();
87foreach ($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.
")";
106print
'<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.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.