public function GoActive()
 {
     $rec = $this->readInputRecord();
     $this->setActiveRecord($rec);
     if ($rec['eula'] == "0") {
         $this->m_Errors = array("fld_eula" => 'You must agree with the license');
         $this->m_hasError = true;
         BizSystem::clientProxy()->setRPCFlag(true);
         return parent::rerender();
     }
     $appInfo = $this->getAppInfo();
     if (!$appInfo) {
         $rec['howto_active'] = 'ENTER';
     }
     switch (strtoupper($rec['howto_active'])) {
         case "ENTER":
             $this->switchForm("common.form.LicenseActiveForm");
             break;
         case "FREETRIAL":
             if ($this->getTrailLicense()) {
                 $scriptStr = 'location.reload();';
                 BizSystem::clientProxy()->runClientFunction($scriptStr);
             }
             break;
         case "PURCHASE":
             $url = $appInfo['APP_PURCHASE'];
             BizSystem::clientProxy()->redirectPage($url);
             break;
         case "WEBSITE":
             $url = $appInfo['APP_WEBSITE'];
             BizSystem::clientProxy()->redirectPage($url);
             break;
     }
 }
Esempio n. 2
0
 public function outputAttrs()
 {
     $this->getAppModuleName();
     $result = parent::outputAttrs();
     $result['license_message'] = $this->getErrorMessage();
     return $result;
 }
 public function readMetadata($xmlArr)
 {
     parent::readMetadata($xmlArr);
     $this->activeModuleName = Openbiz::$app->getSessionContext()->getVar("LIC_MODULE");
 }
Esempio n. 4
0
 public function readMetadata($xmlArr)
 {
     parent::readMetadata($xmlArr);
     $this->m_ActiveModuleName = BizSystem::instance()->getSessionContext()->getVar("LIC_MODULE");
 }