zentaomax.php 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. <?php
  2. $config->maxVersion = '8.1';
  3. if(!defined('TABLE_AUDITCL')) define('TABLE_AUDITCL', '`' . $config->db->prefix . 'auditcl`');
  4. if(!defined('TABLE_AUDITPLAN')) define('TABLE_AUDITPLAN', '`' . $config->db->prefix . 'auditplan`');
  5. if(!defined('TABLE_AUDITRESULT')) define('TABLE_AUDITRESULT', '`' . $config->db->prefix . 'auditresult`');
  6. if(!defined('TABLE_ACTIVITY')) define('TABLE_ACTIVITY', '`' . $config->db->prefix . 'activity`');
  7. if(!defined('TABLE_BUDGET')) define('TABLE_BUDGET', '`' . $config->db->prefix . 'budget`');
  8. if(!defined('TABLE_BASICMEAS')) define('TABLE_BASICMEAS', '`' . $config->db->prefix . 'basicmeas`');
  9. if(!defined('TABLE_CMCL')) define('TABLE_CMCL', '`' . $config->db->prefix . 'cmcl`');
  10. if(!defined('TABLE_DESIGN')) define('TABLE_DESIGN', '`' . $config->db->prefix . 'design`');
  11. if(!defined('TABLE_DESIGNSPEC')) define('TABLE_DESIGNSPEC', '`' . $config->db->prefix . 'designspec`');
  12. if(!defined('TABLE_DERIVEMEAS')) define('TABLE_DERIVEMEAS', '`' . $config->db->prefix . 'derivemeas`');
  13. if(!defined('TABLE_DURATIONESTIMATION')) define('TABLE_DURATIONESTIMATION', '`' . $config->db->prefix . 'durationestimation`');
  14. if(!defined('TABLE_EFFORT')) define('TABLE_EFFORT', '`' . $config->db->prefix . 'effort`');
  15. if(!defined('TABLE_GAPANALYSIS')) define('TABLE_GAPANALYSIS', '`' . $config->db->prefix . 'gapanalysis`');
  16. if(!defined('TABLE_ISSUE')) define('TABLE_ISSUE', '`' . $config->db->prefix . 'issue`');
  17. if(!defined('TABLE_INTERVENTION')) define('TABLE_INTERVENTION', '`' . $config->db->prefix . 'intervention`');
  18. if(!defined('TABLE_MEASRECORDS')) define('TABLE_MEASRECORDS', '`' . $config->db->prefix . 'measrecords`');
  19. if(!defined('TABLE_MEASQUEUE')) define('TABLE_MEASQUEUE', '`' . $config->db->prefix . 'measqueue`');
  20. if(!defined('TABLE_MEASTEMPLATE')) define('TABLE_MEASTEMPLATE', '`' . $config->db->prefix . 'meastemplate`');
  21. if(!defined('TABLE_MEETING')) define('TABLE_MEETING', '`' . $config->db->prefix . 'meeting`');
  22. if(!defined('TABLE_MEETINGROOM')) define('TABLE_MEETINGROOM', '`' . $config->db->prefix . 'meetingroom`');
  23. if(!defined('TABLE_NC')) define('TABLE_NC', '`' . $config->db->prefix . 'nc`');
  24. if(!defined('TABLE_OBJECT')) define('TABLE_OBJECT', '`' . $config->db->prefix . 'object`');
  25. if(!defined('TABLE_OPPORTUNITY')) define('TABLE_OPPORTUNITY', '`' . $config->db->prefix . 'opportunity`');
  26. if(!defined('TABLE_PROGRAMPROCESS')) define('TABLE_PROGRAMPROCESS', '`' . $config->db->prefix . 'programprocess`');
  27. if(!defined('TABLE_PROGRAMACTIVITY')) define('TABLE_PROGRAMACTIVITY', '`' . $config->db->prefix . 'programactivity`');
  28. if(!defined('TABLE_PROGRAMOUTPUT')) define('TABLE_PROGRAMOUTPUT', '`' . $config->db->prefix . 'programoutput`');
  29. if(!defined('TABLE_PROGRAMPLAN')) define('TABLE_PROGRAMPLAN', '`' . $config->db->prefix . 'programplan`');
  30. if(!defined('TABLE_PROJECT')) define('TABLE_PROJECT', '`' . $config->db->prefix . 'project`');
  31. if(!defined('TABLE_PROCESS')) define('TABLE_PROCESS', '`' . $config->db->prefix . 'process`');
  32. if(!defined('TABLE_PROGRAMREPORT')) define('TABLE_PROGRAMREPORT', '`' . $config->db->prefix . 'programreport`');
  33. if(!defined('TABLE_RELATION')) define('TABLE_RELATION', '`' . $config->db->prefix . 'relation`');
  34. if(!defined('TABLE_REVIEW')) define('TABLE_REVIEW', '`' . $config->db->prefix . 'review`');
  35. if(!defined('TABLE_REVIEWCL')) define('TABLE_REVIEWCL', '`' . $config->db->prefix . 'reviewcl`');
  36. if(!defined('TABLE_REVIEWRESULT')) define('TABLE_REVIEWRESULT', '`' . $config->db->prefix . 'reviewresult`');
  37. if(!defined('TABLE_REVIEWISSUE')) define('TABLE_REVIEWISSUE', '`' . $config->db->prefix . 'reviewissue`');
  38. if(!defined('TABLE_RELATIONOFTASKS')) define('TABLE_RELATIONOFTASKS', '`' . $config->db->prefix . 'relationoftasks`');
  39. if(!defined('TABLE_RISK')) define('TABLE_RISK', '`' . $config->db->prefix . 'risk`');
  40. if(!defined('TABLE_STAGE')) define('TABLE_STAGE', '`' . $config->db->prefix . 'stage`');
  41. if(!defined('TABLE_SOLUTIONS')) define('TABLE_SOLUTIONS', '`' . $config->db->prefix . 'solutions`');
  42. if(!defined('TABLE_TASK')) define('TABLE_TASK', '`' . $config->db->prefix . 'task`');
  43. if(!defined('TABLE_TASKSPEC')) define('TABLE_TASKSPEC', '`' . $config->db->prefix . 'taskspec`');
  44. if(!defined('TABLE_TRAINPLAN')) define('TABLE_TRAINPLAN', '`' . $config->db->prefix . 'trainplan`');
  45. if(!defined('TABLE_WORKESTIMATION')) define('TABLE_WORKESTIMATION', '`' . $config->db->prefix . 'workestimation`');
  46. if(!defined('TABLE_ZOUTPUT')) define('TABLE_ZOUTPUT', '`' . $config->db->prefix . 'zoutput`');
  47. if(!defined('TABLE_RESEARCHPLAN')) define('TABLE_RESEARCHPLAN', '`' . $config->db->prefix . 'researchplan`');
  48. if(!defined('TABLE_RESEARCHREPORT')) define('TABLE_RESEARCHREPORT', '`' . $config->db->prefix . 'researchreport`');
  49. if(!defined('TABLE_ASSETLIB')) define('TABLE_ASSETLIB', '`' . $config->db->prefix . 'assetlib`');
  50. if(!defined('TABLE_APPROVAL')) define('TABLE_APPROVAL', '`' . $config->db->prefix . 'approval`');
  51. if(!defined('TABLE_APPROVALFLOW')) define('TABLE_APPROVALFLOW', '`' . $config->db->prefix . 'approvalflow`');
  52. if(!defined('TABLE_APPROVALFLOWSPEC')) define('TABLE_APPROVALFLOWSPEC', '`' . $config->db->prefix . 'approvalflowspec`');
  53. if(!defined('TABLE_APPROVALFLOWOBJECT')) define('TABLE_APPROVALFLOWOBJECT', '`' . $config->db->prefix . 'approvalflowobject`');
  54. if(!defined('TABLE_APPROVALOBJECT')) define('TABLE_APPROVALOBJECT', '`' . $config->db->prefix . 'approvalobject`');
  55. if(!defined('TABLE_APPROVALNODE')) define('TABLE_APPROVALNODE', '`' . $config->db->prefix . 'approvalnode`');
  56. if(!defined('TABLE_APPROVALROLE')) define('TABLE_APPROVALROLE', '`' . $config->db->prefix . 'approvalrole`');
  57. if(!defined('TABLE_RISKISSUE')) define('TABLE_RISKISSUE', '`' . $config->db->prefix . 'riskissue`');
  58. if(!defined('TABLE_RULE')) define('TABLE_RULE', '`' . $config->db->prefix . 'rule`');
  59. if(!defined('TABLE_RULEQUEUE')) define('TABLE_RULEQUEUE', '`' . $config->db->prefix . 'rulequeue`');
  60. if(!defined('TABLE_TESTTASKPRODUCT')) define('TABLE_TESTTASKPRODUCT', '`' . $config->db->prefix . 'testtaskproduct`');
  61. $config->objectTables['auditcl'] = TABLE_AUDITCL;
  62. $config->objectTables['review'] = TABLE_REVIEW;
  63. $config->objectTables['budget'] = TABLE_BUDGET;
  64. $config->objectTables['risk'] = TABLE_RISK;
  65. $config->objectTables['issue'] = TABLE_ISSUE;
  66. $config->objectTables['design'] = TABLE_DESIGN;
  67. $config->objectTables['opportunity'] = TABLE_OPPORTUNITY;
  68. $config->objectTables['trainplan'] = TABLE_TRAINPLAN;
  69. $config->objectTables['gapanalysis'] = TABLE_GAPANALYSIS;
  70. $config->objectTables['reviewissue'] = TABLE_REVIEWISSUE;
  71. $config->objectTables['researchplan'] = TABLE_RESEARCHPLAN;
  72. $config->objectTables['researchreport'] = TABLE_RESEARCHREPORT;
  73. $config->objectTables['meeting'] = TABLE_MEETING;
  74. $config->objectTables['meetingroom'] = TABLE_MEETINGROOM;
  75. $config->objectTables['assetlib'] = TABLE_ASSETLIB;
  76. $config->objectTables['auditplan'] = TABLE_AUDITPLAN;
  77. $config->objectTables['auditresult'] = TABLE_AUDITRESULT;
  78. $config->objectTables['nc'] = TABLE_NC;
  79. $config->objectTables['pssp'] = TABLE_PROJECT;
  80. $config->objectTables['reviewcl'] = TABLE_REVIEWCL;
  81. $config->objectTables['cmcl'] = TABLE_CMCL;
  82. $config->objectTables['process'] = TABLE_PROCESS;
  83. $config->objectTables['activity'] = TABLE_ACTIVITY;
  84. $config->objectTables['zoutput'] = TABLE_ZOUTPUT;
  85. $config->objectTables['basicmeas'] = TABLE_BASICMEAS;
  86. $config->objectTables['measurement'] = TABLE_BASICMEAS;
  87. $config->objectTables['sqlview'] = TABLE_SQLVIEW;
  88. $config->objectTables['approvalnode'] = TABLE_APPROVALNODE;
  89. $config->objectTables['rule'] = TABLE_RULE;
  90. $config->objectTables['baseline'] = TABLE_OBJECT;
  91. $config->objectTables['reporttemplate'] = TABLE_DOC;
  92. $config->objectTables['reporttemplatecategory'] = TABLE_MODULE;
  93. $config->objectTables['weekly'] = TABLE_DOC;
  94. $config->objectTables['reportcategory'] = TABLE_MODULE;
  95. $config->objectTables['projectdeliverable'] = TABLE_PROJECTDELIVERABLE;
  96. $config->projectModules = 'story,product,bug,task,project,flow,repo,productplan,release,testcase,testtask,testreport,testsuite,deploy,doc';
  97. $filter->assetlib = new stdclass();
  98. $filter->assetlib->story = new stdclass();
  99. $filter->assetlib->story->cookie['storyViewType'] = 'code';
  100. $filter->project->burn = new stdclass();
  101. $filter->project->burn->cookie['burnBy'] = 'code';
  102. if(!isset($filter->project->default)) $filter->project->default = new stdclass();
  103. $filter->project->default->cookie['copyData'] = 'reg::any';
  104. $filter->product->burn = new stdclass();
  105. $filter->product->burn->cookie['leftProjects'] = 'code';
  106. $config->excludeFlows = array();
  107. $config->hourPointCommonList['zh-cn'][2] = '功能点';
  108. $config->hourPointCommonList['zh-tw'][2] = '功能點';
  109. $config->hourPointCommonList['en'][2] = 'function point';
  110. $config->hourPointCommonList['de'][2] = 'function point';
  111. $config->hourPointCommonList['fr'][2] = 'function point';
  112. $config->hourPointCommonList['zh-cn'][3] = '代码行';
  113. $config->hourPointCommonList['zh-tw'][3] = '代码行';
  114. $config->hourPointCommonList['en'][3] = 'loc';
  115. $config->hourPointCommonList['de'][3] = 'loc';
  116. $config->hourPointCommonList['fr'][3] = 'loc';
  117. if(!isset($filter->custom)) $filter->custom = new stdclass();
  118. $filter->custom->setcmmi = new stdclass();
  119. $filter->custom->setcmmi->cookie['systemModel'] = 'code';
  120. $filter->custom->setscrum = new stdclass();
  121. $filter->custom->setscrum->cookie['sytemModel'] = 'code';
  122. $filter->risk = new stdclass();
  123. $filter->opportunity = new stdclass();
  124. $filter->product->submit = new stdclass();
  125. $filter->story->submit = new stdclass();
  126. $filter->testcase->submit = new stdclass();
  127. $filter->risk->export = new stdclass();
  128. $filter->opportunity->export = new stdclass();
  129. $filter->default->cookie['hideMenu'] = 'equal::true';
  130. $filter->product->submit->cookie['checkedItem'] = 'reg::checked';
  131. $filter->story->submit->cookie['checkedItem'] = 'reg::checked';
  132. $filter->testcase->submit->cookie['checkedItem'] = 'reg::any';
  133. $filter->risk->export->cookie['checkedItem'] = 'reg::checked';
  134. $filter->opportunity->export->cookie['checkedItem'] = 'reg::checked';
  135. $filter->issue = new stdclass();
  136. $filter->issue->export = new stdclass();
  137. $filter->issue->export->cookie['checkedItem'] = 'reg::checked';
  138. $filter->activity = new stdclass();
  139. $filter->activity->create = new stdclass();
  140. $filter->activity->batchcreate = new stdclass();
  141. $filter->activity->create->cookie['pagerActivityBrowse'] = 'int';
  142. $filter->activity->batchcreate->cookie['pagerActivityBrowse'] = 'int';
  143. $filter->my->work->cookie['pagerMyIssue'] = 'int';
  144. $filter->my->work->cookie['pagerMyRisk'] = 'int';
  145. $filter->my->work->cookie['pagerMyAudit'] = 'int';
  146. $filter->my->work->cookie['pagerMyMymeeting'] = 'int';
  147. $filter->my->contribute->cookie['pagerMyIssue'] = 'int';
  148. $filter->my->contribute->cookie['pagerMyRisk'] = 'int';
  149. $filter->my->contribute->cookie['pagerMyAudit'] = 'int';
  150. $filter->weekly = new stdclass();
  151. $filter->weekly->browse = new stdclass();
  152. $filter->weekly->browse->cookie['weeklyModule'] = 'reg::word';
  153. $filter->weekly->browse->cookie['preProjectID'] = 'int';
  154. $config->logonMethods[] = 'project.copyconfirm';
  155. $config->logonMethods[] = 'project.copyproject';
  156. $config->logonMethods[] = 'assetlib.view';
  157. $config->logonMethods[] = 'approval.revert';
  158. $config->logonMethods[] = 'approval.addnode';
  159. $config->logonMethods[] = 'approval.forward';
  160. $config->logonMethods[] = 'review.book';
  161. $config->logonMethods[] = 'doc.selecttemplate';
  162. $config->logonMethods[] = 'rulequeue.run';
  163. $config->logonMethods[] = 'baseline.view';
  164. $config->logonMethods[] = 'weekly.index';
  165. $config->logonMethods[] = 'weekly.addcategory';
  166. $config->logonMethods[] = 'weekly.editcategory';
  167. $config->logonMethods[] = 'weekly.deletecategory';
  168. $config->logonMethods[] = 'weekly.exportweeklyreport';
  169. if($config->edition == 'max' || $config->edition == 'ipd')
  170. {
  171. $config->featureGroup->project = array_merge($config->featureGroup->project, array('gapanalysis','track', 'deliverable', 'cm', 'change', 'issue', 'risk', 'opportunity', 'process', 'auditplan', 'researchplan', 'meeting', 'workestimation'));
  172. $config->featureGroup->assetlib = array_merge($config->featureGroup->assetlib, array('storylib', 'issuelib', 'risklib', 'opportunitylib', 'practicelib', 'componentlib'));
  173. }
  174. $config->excludeDropmenuList[] = 'reporttemplate-browse';
  175. $config->excludeDropmenuList[] = 'reporttemplate-edit';
  176. $config->excludeDropmenuList[] = 'reporttemplate-view';