-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
增加 Core::RELEASE 常量。用来标识程序发布的版本状态,有(但不限于) stable, rc1, rc2, beta1,
beta2, ... 等
- Loading branch information
1 parent
8296a9b
commit 4ad609a
Showing
1 changed file
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,27 +53,40 @@ abstract class Core_Core extends Bootstrap | |
{ | ||
/** | ||
* MyQEE版本号 | ||
* | ||
* @var string | ||
*/ | ||
const VERSION = '3.1'; | ||
|
||
/** | ||
* 版本发布状态 | ||
* | ||
* stable, rc1, rc2, beta1, beta2, ... | ||
* | ||
* @var string | ||
*/ | ||
const VERSION = '3.1.1dev'; | ||
const RELEASE = 'rc1'; | ||
|
||
/** | ||
* 项目开发者 | ||
* | ||
* @var string | ||
*/ | ||
const CODER = 'jonwang([email protected])'; | ||
|
||
/** | ||
* 页面编码 | ||
* | ||
* @var string | ||
*/ | ||
public static $charset; | ||
public static $charset = 'utf-8'; | ||
|
||
/** | ||
* 页面传入的PATHINFO参数 | ||
* | ||
* @var array | ||
*/ | ||
public static $arguments; | ||
public static $arguments = array(); | ||
|
||
/** | ||
* 页面输出内容 | ||
|
@@ -165,7 +178,7 @@ public static function setup($auto_execute = true) | |
if (!IS_CLI) | ||
{ | ||
# 输出powered by信息 | ||
header('X-Powered-By: PHP/' . PHP_VERSION . ' MyQEE/' . Core::VERSION ); | ||
header('X-Powered-By: PHP/' . PHP_VERSION . ' MyQEE/' . Core::VERSION .'/'. Core::RELEASE ); | ||
} | ||
|
||
if (IS_DEBUG) | ||
|