Skip to content

Commit

Permalink
增加 Core::RELEASE 常量。用来标识程序发布的版本状态,有(但不限于) stable, rc1, rc2, beta1,
Browse files Browse the repository at this point in the history
beta2, ... 等
  • Loading branch information
breath-co2 committed May 23, 2013
1 parent 8296a9b commit 4ad609a
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions core/classes/core.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

/**
* 页面输出内容
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 4ad609a

Please sign in to comment.