public function __construct($moduleName = '', $methodName = '') { parent::__construct($moduleName, $methodName); $runVersion = 'max2.4'; 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("

## 旗舰版人数超出限制

您版本的研发用户数是{$properties['user']['value']}，您目前系统中已有{$user->count}人，已经超过了限制，请联系我们增加人数授权。
Email：$contactEmail
电话：$contactMobile
QQ：$contactQQ
网址：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:philip@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

## Users Count Exceeded

The number of dev users is more than {$properties['user']['value']} as licensed. Please contact us to buy more licenses.
email:philip@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 licensed.

The licensed version is {$properties['version']['value']}. You are using {$runVersion}. Please contact us to buy the right licenses.
email:philip@easycorp.ltd
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

## 旗舰版绑定域名访问错误

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

## Domain Error

The domain in your license is {$properties['domain']['value']}. Please contact us to change the domain.
email:philip@easycorp.ltd
Web:www.zentao.pm
"); }; }