Merge branch 'master' of https://github.com/easysoft/zentaopms
This commit is contained in:
+2
-1
@@ -13,7 +13,7 @@ $filter->rules->word = '/^\w+$/';
|
||||
$filter->rules->paramName = '/^[a-zA-Z0-9_\.]+$/';
|
||||
$filter->rules->paramValue = '/^[a-zA-Z0-9=_,`#+\^\/\.%\|\x7f-\xff]+$/';
|
||||
|
||||
$filter->default = new stdclass();
|
||||
$filter->default = new stdclass();
|
||||
$filter->default->moduleName = 'code';
|
||||
$filter->default->methodName = 'code';
|
||||
$filter->default->paramName = 'reg::paramName';
|
||||
@@ -194,6 +194,7 @@ $filter->sso->login->get['md5'] = 'reg::md5';
|
||||
$filter->sso->login->get['referer'] = 'reg::base64';
|
||||
$filter->sso->login->get['status'] = 'code';
|
||||
$filter->sso->login->get['token'] = 'reg::md5';
|
||||
$filter->sso->login->get['sessionid'] = 'reg::base64';
|
||||
$filter->sso->logout->get['status'] = 'code';
|
||||
$filter->sso->logout->get['token'] = 'reg::md5';
|
||||
|
||||
|
||||
@@ -495,7 +495,7 @@ $lang->noResultsMatch = "No results match!";
|
||||
$lang->searchMore = "More results:";
|
||||
$lang->chooseUsersToMail = "Choose users that will be notified.";
|
||||
$lang->browserNotice = 'Your current browser might not show the best effect. Please use Chrome, Firefox, IE9+, Opera or Safari.';
|
||||
$lang->noticePasteImg = "Support pasting images here.";
|
||||
$lang->noticePasteImg = "Paste images here";
|
||||
|
||||
/* 时间格式设置。*/
|
||||
if(!defined('DT_DATETIME1')) define('DT_DATETIME1', 'Y-m-d H:i:s');
|
||||
|
||||
@@ -44,7 +44,7 @@ $lang->editor->translate['model.php'] = 'model';
|
||||
$lang->editor->modules['action'] = '系统日志';
|
||||
$lang->editor->modules['admin'] = '后台管理';
|
||||
$lang->editor->modules['api'] = 'API接口';
|
||||
$lang->editor->modules['bug'] = '缺陷管理';
|
||||
$lang->editor->modules['bug'] = 'Bug管理';
|
||||
$lang->editor->modules['build'] = 'Build';
|
||||
$lang->editor->modules['common'] = '公有模块';
|
||||
$lang->editor->modules['company'] = '组织视图';
|
||||
|
||||
@@ -44,7 +44,7 @@ $lang->editor->translate['model.php'] = 'model';
|
||||
$lang->editor->modules['action'] = '系統日誌';
|
||||
$lang->editor->modules['admin'] = '後台管理';
|
||||
$lang->editor->modules['api'] = 'API介面';
|
||||
$lang->editor->modules['bug'] = '缺陷管理';
|
||||
$lang->editor->modules['bug'] = 'Bug管理';
|
||||
$lang->editor->modules['build'] = 'Build';
|
||||
$lang->editor->modules['common'] = '公有模組';
|
||||
$lang->editor->modules['company'] = '組織視圖';
|
||||
|
||||
+21
-16
@@ -13,8 +13,8 @@ class sso extends control
|
||||
{
|
||||
/**
|
||||
* SSO login.
|
||||
*
|
||||
* @param string $type
|
||||
*
|
||||
* @param string $type
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
@@ -44,6 +44,11 @@ class sso extends control
|
||||
{
|
||||
$location = rtrim($location, '?') . "?token=$token&auth=$auth&userIP=$userIP&callback=$callback&referer=$referer";
|
||||
}
|
||||
if(!empty($_GET['sessionid']))
|
||||
{
|
||||
$sessionConfig = json_decode(base64_decode($this->get->sessionid), false);
|
||||
$location .= '&' . $sessionConfig->session_name . '=' . $sessionConfig->session_id;
|
||||
}
|
||||
$this->locate($location);
|
||||
}
|
||||
|
||||
@@ -95,8 +100,8 @@ class sso extends control
|
||||
|
||||
/**
|
||||
* SSO logout.
|
||||
*
|
||||
* @param string $type
|
||||
*
|
||||
* @param string $type
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
@@ -115,9 +120,9 @@ class sso extends control
|
||||
if(strpos($location, '&') !== false)
|
||||
{
|
||||
$location = rtrim($location, '&') . "&token=$token&auth=$auth&userIP=$userIP&callback=$callback";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
{
|
||||
$location = rtrim($location, '?') . "?token=$token&auth=$auth&userIP=$userIP&callback=$callback";
|
||||
}
|
||||
$this->locate($location);
|
||||
@@ -135,7 +140,7 @@ class sso extends control
|
||||
|
||||
/**
|
||||
* Ajax set config.
|
||||
*
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
@@ -158,9 +163,9 @@ class sso extends control
|
||||
}
|
||||
|
||||
/**
|
||||
* Bind user.
|
||||
*
|
||||
* @param string $referer
|
||||
* Bind user.
|
||||
*
|
||||
* @param string $referer
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
@@ -199,7 +204,7 @@ class sso extends control
|
||||
|
||||
/**
|
||||
* Get pairs of user.
|
||||
*
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
@@ -212,7 +217,7 @@ class sso extends control
|
||||
|
||||
/**
|
||||
* Get bind users with ranzhi.
|
||||
*
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
@@ -225,7 +230,7 @@ class sso extends control
|
||||
|
||||
/**
|
||||
* Bind user from ranzhi.
|
||||
*
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
@@ -242,7 +247,7 @@ class sso extends control
|
||||
|
||||
/**
|
||||
* Create user from ranzhi.
|
||||
*
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
@@ -258,8 +263,8 @@ class sso extends control
|
||||
|
||||
/**
|
||||
* Get todo list for ranzhi.
|
||||
*
|
||||
* @param string $account
|
||||
*
|
||||
* @param string $account
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
|
||||
@@ -148,7 +148,7 @@ $lang->testcase->priList[4] = 4;
|
||||
|
||||
/* Define the types. */
|
||||
$lang->testcase->typeList[''] = '';
|
||||
$lang->testcase->typeList['feature'] = 'Function';
|
||||
$lang->testcase->typeList['feature'] = 'Feature';
|
||||
$lang->testcase->typeList['performance'] = 'Performance';
|
||||
$lang->testcase->typeList['config'] = 'Config';
|
||||
$lang->testcase->typeList['install'] = 'Install';
|
||||
|
||||
@@ -24,7 +24,7 @@ $lang->testreport->bugs = '测试的Bug';
|
||||
$lang->testreport->builds = '版本信息';
|
||||
$lang->testreport->goal = '项目目标';
|
||||
$lang->testreport->cases = '用例';
|
||||
$lang->testreport->bugInfo = '缺陷分布';
|
||||
$lang->testreport->bugInfo = 'Bug分布';
|
||||
$lang->testreport->report = '总结';
|
||||
$lang->testreport->legacyBugs = '遗留的Bug';
|
||||
$lang->testreport->createdDate = '创建时间';
|
||||
|
||||
@@ -24,7 +24,7 @@ $lang->testreport->bugs = '測試的Bug';
|
||||
$lang->testreport->builds = '版本信息';
|
||||
$lang->testreport->goal = '項目目標';
|
||||
$lang->testreport->cases = '用例';
|
||||
$lang->testreport->bugInfo = '缺陷分佈';
|
||||
$lang->testreport->bugInfo = 'Bug分佈';
|
||||
$lang->testreport->report = '總結';
|
||||
$lang->testreport->legacyBugs = '遺留的Bug';
|
||||
$lang->testreport->createdDate = '創建時間';
|
||||
|
||||
@@ -72,7 +72,7 @@ $lang->user->search = '搜索';
|
||||
$lang->user->profile = '档案';
|
||||
$lang->user->project = $lang->projectCommon;
|
||||
$lang->user->task = '任务';
|
||||
$lang->user->bug = '缺陷';
|
||||
$lang->user->bug = 'Bug';
|
||||
$lang->user->test = '测试';
|
||||
$lang->user->testTask = '测试任务';
|
||||
$lang->user->testCase = '测试用例';
|
||||
|
||||
@@ -72,7 +72,7 @@ $lang->user->search = '搜索';
|
||||
$lang->user->profile = '檔案';
|
||||
$lang->user->project = $lang->projectCommon;
|
||||
$lang->user->task = '任務';
|
||||
$lang->user->bug = '缺陷';
|
||||
$lang->user->bug = 'Bug';
|
||||
$lang->user->test = '測試';
|
||||
$lang->user->testTask = '測試任務';
|
||||
$lang->user->testCase = '測試用例';
|
||||
|
||||
Reference in New Issue
Block a user