public function getExpireInLabel()
 {
     $linkText = null;
     if ($this->getExpireIn() != "NEVER" && (int) $this->getExpireIn() <= 30 && (int) $this->getExpireIn() > 0) {
         $infoO = $this->getLicenseInfo();
         $infoText = $infoO['infoText'];
         $js = EnterpriseUtils::skinIsUx() == 1 ? "Ext.MessageBox.show({title: '', msg: '{$infoText}', buttons: Ext.MessageBox.OK, icon: Ext.MessageBox.INFO});" : "msgBox('{$infoText}');";
         $linkText = $linkText . "<a href=\"javascript:;\" onclick=\"{$js} return (false);\"><span style=\"color: red;\">" . G::LoadTranslation('ID_EXPIRES_IN') . " " . $this->getExpireIn() . " " . G::LoadTranslation('ID_DAYS') . "</span></a>";
     } else {
         if ($this->getExpireIn() != "NEVER" && (int) $this->getExpireIn() <= 0) {
             $infoO = $this->getLicenseInfo();
             $infoText = $infoO['infoText'];
             $infoLabel = $infoO['infoLabel'];
             $js = EnterpriseUtils::skinIsUx() == 1 ? "Ext.MessageBox.show({title: '', msg: '{$infoText}', buttons: Ext.MessageBox.OK, icon: Ext.MessageBox.INFO});" : "msgBox('{$infoText}');";
             $linkText = $linkText . "<a href=\"javascript:;\" onclick=\"{$js} return (false);\"><span style=\"color: red;\">" . $infoLabel . "</span></a>";
         }
     }
     if (class_exists('pmTrialPlugin')) {
         $linkText = $linkText . "<a href='/sys" . SYS_SYS . "/" . SYS_LANG . "/" . SYS_SKIN . "/pmTrial/services/buyNow?n=true" . "'> <img align='absmiddle' src='/plugin/pmLicenseManager/btn_buy_now.gif' border='0' /></a>";
     }
     if (isset($_SESSION["__ENTERPRISE_SYSTEM_UPDATE__"]) && $_SESSION["__ENTERPRISE_SYSTEM_UPDATE__"] == 1) {
         $aOnclick = "onclick=\"this.href='" . EnterpriseUtils::getUrlServerName() . "/sys" . SYS_SYS . "/" . SYS_LANG . "/" . SYS_SKIN . "/setup/main?s=PMENTERPRISE';\"";
         if (EnterpriseUtils::skinIsUx() == 1) {
             $aOnclick = "onclick=\"Ext.ComponentMgr.get('mainTabPanel').setActiveTab('pm-option-setup'); Ext.ComponentMgr.get('pm-option-setup').setLocation(Ext.ComponentMgr.get('pm-option-setup').defaultSrc + 's=PMENTERPRISE', true); return (false);\"";
         }
         $linkText = $linkText . ($linkText != null ? " | " : null) . "<a href=\"javascript:;\" {$aOnclick} style=\"color: #008000;\">" . G::LoadTranslation('ID_UPGRADE_SYSTEM') . "</a>";
     }
     $linkText = $linkText != null ? $linkText . (EnterpriseUtils::skinIsUx() == 1 ? null : " |") : null;
     return $linkText;
 }
Esempio n. 2
0
    $oHeadPublisher->assign("license_expires", $licenseManager->expireIn);
    $oHeadPublisher->assign("license_message", $licenseManager->status["message"]);
    $oHeadPublisher->assign("licensed", false);
} else {
    $oHeadPublisher->assign("license_user", "");
    $oHeadPublisher->assign("license_name", "<b>Unlicensed</b>");
    $oHeadPublisher->assign("license_server", "<b>no server</b>");
    $oHeadPublisher->assign("license_expires", "");
    $currentLicenseStatus = $licenseManager->getCurrentLicenseStatus();
    $oHeadPublisher->assign("license_message", $currentLicenseStatus["message"]);
    $oHeadPublisher->assign("license_start_date", "");
    $oHeadPublisher->assign("license_end_date", "");
    $oHeadPublisher->assign("license_span", "");
    $oHeadPublisher->assign("licensed", false);
}
$oHeadPublisher->assign("license_serial", isset($licenseManager->licenseSerial) ? $licenseManager->licenseSerial : '');
$oHeadPublisher->assign("SUPPORT_FLAG", isset($licenseManager->supportStartDate) && $licenseManager->supportStartDate == '' || !isset($licenseManager->supportStartDate) ? true : false);
$oHeadPublisher->assign("supportStartDate", isset($licenseManager->supportStartDate) ? $licenseManager->supportStartDate : '');
$oHeadPublisher->assign("supportEndDate", isset($licenseManager->supportEndDate) ? $licenseManager->supportEndDate : '');
G::LoadClass("system");
$oHeadPublisher->assign("PROCESSMAKER_VERSION", System::getVersion());
$oHeadPublisher->assign("PROCESSMAKER_URL", "/sys" . SYS_SYS . "/" . SYS_LANG . "/" . SYS_SKIN);
$oHeadPublisher->assign("SYS_SKIN", SYS_SKIN);
$oHeadPublisher->assign("URL_PART_LOGIN", substr(SYS_SKIN, 0, 2) == "ux" && SYS_SKIN != "uxs" ? "main/login" : "login/login");
$oHeadPublisher->assign("URL_PART_SETUP", EnterpriseUtils::getUrlPartSetup());
$oHeadPublisher->assign("PATH_PLUGINS_WRITABLE", is_writable(PATH_PLUGINS) ? 1 : 0);
$oHeadPublisher->assign("PATH_PLUGINS_WRITABLE_MESSAGE", "The directory " . PATH_PLUGINS . " have not writable.");
$oHeadPublisher->assign("SKIN_IS_UX", EnterpriseUtils::skinIsUx());
$oHeadPublisher->assign("INTERNET_CONNECTION", EnterpriseUtils::getInternetConnection());
$oHeadPublisher->addExtJsScript("enterprise/addonsStore", true);
G::RenderPage("publish", "extJs");