grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026. -------------------------------------------------------------------------- */ /** @file * @brief */ include ('../inc/includes.php'); Session::checkSeveralRightsOr(array('notification' => READ, 'config' => UPDATE)); Html::header(_n('Notification', 'Notifications',2), $_SERVER['PHP_SELF'], "config", "notification"); if (isset($_POST['activate'])) { $config = new Config(); $tmp['id'] = 1; $tmp['use_mailing'] = 1; $config->update($tmp); Html::back(); } if (!$CFG_GLPI['use_mailing']) { if (Session::haveRight("config", UPDATE)) { echo "
"; Html::showSimpleForm($_SERVER['PHP_SELF'], 'activate', __('Enable followup via email')); echo "
"; } } else { if (!Session::haveRight("config", READ) && Session::haveRight("notification", READ) && $CFG_GLPI['use_mailing']) { Html::redirect($CFG_GLPI["root_doc"].'/front/notification.php'); } else { echo ""; echo ""; if (Session::haveRight("config", UPDATE)) { echo ""; } if (Session::haveRight("config", READ)) { echo ""; } if (Session::haveRight("notification", READ) && $CFG_GLPI['use_mailing']) { echo ""; } else { echo ""; } echo "
" . _n('Notification', 'Notifications',2)."
". "". __('Email followups configuration') . "
" . _n('Notification template', 'Notification templates', 2) ."
". "". _n('Notification', 'Notifications',2)."
" . __('Unable to configure notifications: please configure your email followup using the above configuration.') . "
"; } } Html::footer(); ?>