config->instance->form->install)->get(); $this->buildCustomConfig($appID); $this->checkCustomFields($appID); if(dao::isError()) return $this->sendError(dao::getError()); if(!empty($this->config->instance->form->install->custom)) { $this->config->instance->form->install = array_merge($this->config->instance->form->install, $this->config->instance->form->install->custom); } } parent::install($appID, $checkResource); } public function __construct($moduleName = '', $methodName = '') { parent::__construct($moduleName, $methodName); $runVersion = 'biz13.1'; if(function_exists('ioncube_license_properties')) $properties = ioncube_license_properties(); $contactEmail = !empty($properties['email']['value']) ? $properties['email']['value'] : 'co@zentao.net'; $contactMobile = !empty($properties['mobile']['value']) ? $properties['mobile']['value'] : '4006 889923'; $contactQQ = !empty($properties['qq']['value']) ? $properties['qq']['value'] : 'co@zentao.net'; if($this->app->getModuleName() != 'upgrade') { $user = $this->dao->select("COUNT('*') as `count`")->from(TABLE_USER) ->where('deleted')->eq(0) ->fetch(); if(!empty($properties['user']) and $properties['user']['value'] < $user->count) die(" Error

用户人数超出限制

您版本的用户数是{$properties['user']['value']},您目前系统中已有{$user->count}人,已经超过了限制,请联系我们增加人数授权。
Email:$contactEmail
手机:13730922971
电话:$contactMobile
QQ:$contactQQ
微信:13730922971
网址:www.zentao.net



Users Count Exceeded

The number of users is more than {$properties['user']['value']} as licensed. Please contact us to get more licenses.
email:support@zentaoalm.com
Web:www.zentao.pm
"); } if(!empty($properties['version']['value']) and !defined('IN_UPGRADE')) { if(!isset($runVersion)) $runVersion = $this->config->version; $authorizedVersion = $properties['version']['value']; $isAuth = $runVersion == $authorizedVersion; if(!$isAuth && $this->config->edition != 'biz') { $this->app->loadLang('upgrade'); $this->app->loadConfig('upgrade'); $openRunVersion = zget($this->config->upgrade->bizVersion, str_replace('.', '_', $runVersion), $runVersion); $openAuthedVersion = $authorizedVersion; if($this->config->edition == 'max') $openAuthedVersion = zget($this->config->upgrade->maxVersion, str_replace('.', '_', $authorizedVersion), $authorizedVersion); if($this->config->edition == 'ipd') $openAuthedVersion = zget($this->config->upgrade->ipdVersion, str_replace('.', '_', $authorizedVersion), $authorizedVersion); $isAuth = $openRunVersion == $openAuthedVersion; } if(!$isAuth) die(" Error

没有授权此版本

您版本授权的版本是{$properties['version']['value']},当前使用的版本是{$runVersion},请联系我们重新购买授权。
Email:$contactEmail
手机:13730922971
电话:$contactMobile
QQ:$contactQQ
微信:13730922971
网址:www.zentao.net



This version is not licensed.

The licensed version is {$properties['version']['value']}. You are using {$runVersion}. Please contact us to buy the right licenses.
email:support@zentaoalm.com
Web:www.zentao.pm/
"); } if(!empty($properties['edition']['value']) and !defined('IN_UPGRADE')) { if($properties['edition']['value'] != $this->config->edition) die(" Error

没有授权此版本

您版本授权的版本是{$properties['edition']['value']},当前使用的版本是{$this->config->edition},请联系我们重新购买授权。
Email:$contactEmail
手机:13730922971
电话:$contactMobile
QQ:$contactQQ
微信:13730922971
网址:www.zentao.net



This version is not licensed.

The licensed version is {$properties['edition']['value']}. You are using {$this->config->edition}. Please contact us to buy the right licenses.
email:support@zentaoalm.com
Web:www.zentao.pm/
"); } if(!empty($properties['domain'])) { $host = $_SERVER['HTTP_HOST']; $portPos = strrpos($host, ':'); if($portPos !== false) { $port = substr($host, $portPos + 1); if(is_numeric($port)) $host = substr($host, 0, $portPos); } $host .= $_SERVER['REQUEST_URI']; $checkHost = false; $allowHosts = explode(',', $properties['domain']['value']); foreach($allowHosts as $allowHost) { if(strpos($host, $allowHost) !== false) { $checkHost = true; break; } } if(!$checkHost) die(" Error

绑定域名访问错误

您版本绑定的信息与您当前访问的地址不一致,如果有问题,请联系我们修改绑定信息。
Email:$contactEmail
手机:13730922971
电话:$contactMobile
QQ:$contactQQ
微信:13730922971
网址:www.zentao.net



Domain Error

The information bound to your version does not match the address you are currently accessing. If there is a problem, please contact us to modify the binding information.
email:support@zentaoalm.com
Web:www.zentao.pm
"); }; } }