diff --git a/lib/db.cls.php b/lib/db.cls.php index bf1ab2d8..6fb59a12 100755 --- a/lib/db.cls.php +++ b/lib/db.cls.php @@ -35,7 +35,7 @@ public function connect($host = DH, $dbuser = DU, $password = DP, $dbname = DB, { $dbcode = str_replace('-', '', $dbcode); if (!$this->linkid) { - $this->linkid = mysql_connect($host, $dbuser, $password) or die('Mysql数据库连接失败,请检查数据库用户名和密码是否正确!'); + $this->linkid = mysql_connect($host, $dbuser, $password) or exit('Mysql数据库连接失败,请检查数据库用户名和密码是否正确!'); } $version = $this->getVersion(); @@ -45,7 +45,7 @@ public function connect($host = DH, $dbuser = DU, $password = DP, $dbname = DB, mysql_query("SET sql_mode=''", $this->linkid); } } else { - die('Mysql版本过低,请更换5.0以上版本!'); + exit('Mysql版本过低,请更换5.0以上版本!'); } mysql_select_db($dbname, $this->linkid); } diff --git a/lib/include/alipay.func.php b/lib/include/alipay.func.php index a66c3ec6..4347512a 100755 --- a/lib/include/alipay.func.php +++ b/lib/include/alipay.func.php @@ -172,7 +172,7 @@ function charsetEncode($input, $_output_charset, $_input_charset) } elseif (function_exists('iconv')) { $output = iconv($_input_charset, $_output_charset, $input); } else { - die('sorry, you have no libs support for charset change.'); + exit('sorry, you have no libs support for charset change.'); } return $output; @@ -198,7 +198,7 @@ function charsetDecode($input, $_input_charset, $_output_charset) } elseif (function_exists('iconv')) { $output = iconv($_input_charset, $_output_charset, $input); } else { - die('sorry, you have no libs support for charset changes.'); + exit('sorry, you have no libs support for charset changes.'); } return $output; diff --git a/lib/include/phpqrcode.php b/lib/include/phpqrcode.php index 53a06c9b..e064ea92 100755 --- a/lib/include/phpqrcode.php +++ b/lib/include/phpqrcode.php @@ -1636,7 +1636,7 @@ public function convertData() $this->setVersion($ver); } - for (; ;) { + for (;;) { $bits = $this->createBitStream(); if ($bits < 0) { diff --git a/lib/init.cls.php b/lib/init.cls.php index 46d7c470..e78132b3 100755 --- a/lib/init.cls.php +++ b/lib/init.cls.php @@ -142,7 +142,7 @@ public function run() $run = new action($this); $run->display(); } else { - die('error:Unknown app to load, the app is '.$app); + exit('error:Unknown app to load, the app is '.$app); } } diff --git a/lib/tpl.cls.php b/lib/tpl.cls.php index c7a4cbdf..82c9a7d7 100755 --- a/lib/tpl.cls.php +++ b/lib/tpl.cls.php @@ -67,7 +67,7 @@ public function readTpl($file) return $this->fl->readFile($file); } - die('The template not fount which name is '.$file); + exit('The template not fount which name is '.$file); } //判断字符值是否存在,并返回指定类型的值 @@ -500,7 +500,7 @@ public function readTpl($file) return $this->fl->readFile($file); } - die('The template not fount which name is '.$file); + exit('The template not fount which name is '.$file); } //判断字符值是否存在,并返回指定类型的值 diff --git a/lib/wechat.cls.php b/lib/wechat.cls.php index 074afd08..a9c4cef5 100755 --- a/lib/wechat.cls.php +++ b/lib/wechat.cls.php @@ -112,16 +112,16 @@ public function valid($return = false) } if ($echoStr) { if ($this->checkSignature()) { - die($echoStr); + exit($echoStr); } - die('no access'); + exit('no access'); } if ($this->checkSignature()) { return true; } - die('no access'); + exit('no access'); return false; }