public function __construct($moduleName = '', $methodName = '') { parent::__construct($moduleName, $methodName); $runVersion = 'biz5.0.rc1'; 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) ->beginIF(empty($this->app->user->feedback))->andWhere('feedback')->eq(0)->fi() ->beginIF(!empty($this->app->user->feedback))->andWhere("feedback")->eq(1)->fi() ->fetch(); if(empty($this->app->user->feedback) and !empty($properties['user']) and $properties['user']['value'] < $user->count) die(" Error

企业版人数超出限制

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



Accounts has exceed the limit.

The accounts has exceed the limit of {$properties['user']['value']} peoples, please contact us to buy more licenses.
email:troy@easycorp.ltd
Web:www.zentao.pm
"); if(!empty($this->app->user->feedback) and !empty($properties['feedback']) and $properties['feedback']['value'] < $user->count) die(" Error

企业版人数超出限制

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



Accounts has exceed the limit.

The accounts has exceed the limit of {$properties['user']['value']} peoples, please contact us to buy more licenses.
email:troy@easycorp.ltd
Web:www.zentao.pm
"); } if(!empty($properties['version']['value']) and !defined('IN_UPGRADE')) { if(!isset($runVersion)) $runVersion = $this->config->version; if($runVersion != $properties['version']['value']) die(" Error

没有授权此版本

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



This version is not authorized.

The allowed version is {$properties['version']['value']}, using is {$runVersion}, please contact us to buy more licenses.
email:troy@easycorp.ltd
Web:www.zentao.pm/
"); } if(!empty($properties['domain'])) { $host = $_SERVER['HTTP_HOST']; $portPos = strpos($host, ':'); if($portPos !== false) $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

企业版绑定域名访问错误

您版本绑定的域名是{$properties['domain']['value']},您目前访问的域名是{$_SERVER['HTTP_HOST']},如果有问题,请联系我们修改绑定域名。
Email:$contactEmail
电话:$contactMobile
QQ:$contactQQ
网址:www.zentao.net



Domain Binding Error.

The binding domain is {$properties['domain']['value']}, please contact us to change binding domain.
email:troy@easycorp.ltd
Web:www.zentao.pm
"); }; }