2014-12-24 11:40:57 -04:00
|
|
|
<?php
|
2019-11-21 15:07:44 -04:00
|
|
|
|
2020-01-23 15:04:23 -04:00
|
|
|
use Illuminate\Support\Facades\Cache;
|
|
|
|
|
|
2014-12-24 11:40:57 -04:00
|
|
|
global $RBAC;
|
|
|
|
|
|
2019-11-21 15:07:44 -04:00
|
|
|
$resultRbac = $RBAC->requirePermissions('PM_SETUP_EMAIL');
|
2016-03-03 17:53:19 -04:00
|
|
|
if (!$resultRbac) {
|
|
|
|
|
G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels');
|
|
|
|
|
G::header('location: ../login/login');
|
|
|
|
|
die();
|
2014-12-24 11:40:57 -04:00
|
|
|
}
|
|
|
|
|
|
2020-01-23 15:04:23 -04:00
|
|
|
$messageSent = "";
|
|
|
|
|
if (Cache::has('errorMessageIfNotAuthenticate')) {
|
|
|
|
|
$messageSent = Cache::get('errorMessageIfNotAuthenticate');
|
|
|
|
|
}
|
|
|
|
|
Cache::forget('errorMessageIfNotAuthenticate');
|
|
|
|
|
|
2014-12-24 11:40:57 -04:00
|
|
|
//Data
|
|
|
|
|
$configuration = new Configurations();
|
|
|
|
|
$arrayConfigPage = $configuration->getConfiguration("emailServerList", "pageSize", null, $_SESSION["USER_LOGGED"]);
|
|
|
|
|
|
|
|
|
|
$arrayConfig = array();
|
2019-11-21 15:07:44 -04:00
|
|
|
$arrayConfig["pageSize"] = (isset($arrayConfigPage["pageSize"])) ? $arrayConfigPage["pageSize"] : 20;
|
2014-12-24 11:40:57 -04:00
|
|
|
|
2017-12-04 13:25:35 +00:00
|
|
|
$headPublisher = headPublisher::getSingleton();
|
2014-12-24 11:40:57 -04:00
|
|
|
$headPublisher->addContent("emailServer/emailServer"); //Adding a HTML file
|
|
|
|
|
$headPublisher->addExtJsScript("emailServer/emailServer", false); //Adding a JavaScript file
|
|
|
|
|
$headPublisher->assign("CONFIG", $arrayConfig);
|
2020-01-23 15:04:23 -04:00
|
|
|
$headPublisher->assign("errorMessageIfNotAuthenticate", $messageSent);
|
2014-12-24 11:40:57 -04:00
|
|
|
|
2015-06-01 14:15:53 -04:00
|
|
|
/*----------------------------------********---------------------------------*/
|
2019-11-21 15:07:44 -04:00
|
|
|
$headPublisher->assign("EMAILSERVER_LICENSED", (PMLicensedFeatures::getSingleton()->verifyfeature("zIKRGpDM3pjcHFsWGplNDN0dTl5bGN3UTNiOWdQU0E5Q05QTksrU1ladWQ0VT0=")) ? 1 : 0);
|
2015-06-01 14:15:53 -04:00
|
|
|
/*----------------------------------********---------------------------------*/
|
|
|
|
|
|
2014-12-24 11:40:57 -04:00
|
|
|
G::RenderPage("publish", "extJs");
|