[Fusionforge-commits] r9548 - in trunk: gforge/common/forum gforge/common/include gforge/common/reporting gforge/common/scm gforge/common/search gforge/common/tracker gforge/cronjobs gforge/cronjobs/mail gforge/plugins/mediawiki/etc/plugins/mediawiki gforge/plugins/projects_hierarchy/www gforge/plugins/quota_management/www gforge/plugins/scmcvs/cronjobs gforge/plugins/scmcvs/www gforge/www/account gforge/www/activity gforge/www/admin gforge/www/docman gforge/www/docman/admin gforge/www/docman/include gforge/www/export gforge/www/forum/include gforge/www/frs/admin gforge/www/frs/include gforge/www/include gforge/www/my gforge/www/news gforge/www/people gforge/www/people/admin gforge/www/pm/include gforge/www/project gforge/www/project/admin gforge/www/project/report gforge/www/register gforge/www/scm gforge/www/scm/admin gforge/www/scm/include gforge/www/search/include gforge/www/search/include/renderers gforge/www/snippet gforge/www/softwaremap gforge/www/stats gforge/www/survey gforge/www/survey/include gforge/www/themes/gforge-simple-theme gforge/www/themes/lite gforge/www/tracker gforge/www/tracker/include gforge/www/trove tests/code/deprecations

Roland Mas lolando at libremir.placard.fr.eu.org
Tue Apr 20 18:56:42 CEST 2010


Author: lolando
Date: 2010-04-20 18:56:41 +0200 (Tue, 20 Apr 2010)
New Revision: 9548

Modified:
   trunk/gforge/common/forum/Forum.class.php
   trunk/gforge/common/forum/ForumMessage.class.php
   trunk/gforge/common/include/Group.class.php
   trunk/gforge/common/include/Navigation.class.php
   trunk/gforge/common/include/account.php
   trunk/gforge/common/include/config-vars.php
   trunk/gforge/common/include/utils.php
   trunk/gforge/common/reporting/report_utils.php
   trunk/gforge/common/scm/SCMFactory.class.php
   trunk/gforge/common/search/ArtifactSearchQuery.class.php
   trunk/gforge/common/search/DocsSearchQuery.class.php
   trunk/gforge/common/search/ExportProjectSearchQuery.class.php
   trunk/gforge/common/search/ForumSearchQuery.class.php
   trunk/gforge/common/search/ForumsSearchQuery.class.php
   trunk/gforge/common/search/FrsSearchQuery.class.php
   trunk/gforge/common/search/NewsSearchQuery.class.php
   trunk/gforge/common/search/PeopleSearchQuery.class.php
   trunk/gforge/common/search/ProjectSearchQuery.class.php
   trunk/gforge/common/search/SearchQuery.class.php
   trunk/gforge/common/search/SkillSearchQuery.class.php
   trunk/gforge/common/search/TasksSearchQuery.class.php
   trunk/gforge/common/search/TrackersSearchQuery.class.php
   trunk/gforge/common/tracker/ArtifactType.class.php
   trunk/gforge/cronjobs/create_home_dirs.php
   trunk/gforge/cronjobs/db_project_sums.php
   trunk/gforge/cronjobs/homedirs.php
   trunk/gforge/cronjobs/mail/mailaliases.php
   trunk/gforge/plugins/mediawiki/etc/plugins/mediawiki/LocalSettings.php
   trunk/gforge/plugins/projects_hierarchy/www/softwaremap.php
   trunk/gforge/plugins/quota_management/www/quota_project.php
   trunk/gforge/plugins/scmcvs/cronjobs/ftp_create.php
   trunk/gforge/plugins/scmcvs/www/acl.php
   trunk/gforge/www/account/index.php
   trunk/gforge/www/account/login.php
   trunk/gforge/www/account/register.php
   trunk/gforge/www/activity/index.php
   trunk/gforge/www/admin/approve-pending.php
   trunk/gforge/www/admin/database.php
   trunk/gforge/www/admin/groupedit.php
   trunk/gforge/www/admin/index.php
   trunk/gforge/www/admin/useredit.php
   trunk/gforge/www/admin/vhost.php
   trunk/gforge/www/docman/admin/index.php
   trunk/gforge/www/docman/include/doc_utils.php
   trunk/gforge/www/docman/new.php
   trunk/gforge/www/export/rss_project.php
   trunk/gforge/www/forum/include/ForumHTML.class.php
   trunk/gforge/www/frs/admin/editrelease.php
   trunk/gforge/www/frs/admin/qrs.php
   trunk/gforge/www/frs/include/frs_utils.php
   trunk/gforge/www/include/features_boxes.php
   trunk/gforge/www/include/project_home.php
   trunk/gforge/www/include/user_home.php
   trunk/gforge/www/my/index.php
   trunk/gforge/www/news/news_utils.php
   trunk/gforge/www/people/admin/index.php
   trunk/gforge/www/people/createjob.php
   trunk/gforge/www/people/editjob.php
   trunk/gforge/www/people/editprofile.php
   trunk/gforge/www/people/helpwanted-latest.php
   trunk/gforge/www/people/index.php
   trunk/gforge/www/people/viewjob.php
   trunk/gforge/www/people/viewprofile.php
   trunk/gforge/www/pm/include/ProjectGroupHTML.class.php
   trunk/gforge/www/project/admin/database.php
   trunk/gforge/www/project/admin/editgroupinfo.php
   trunk/gforge/www/project/admin/editimages.php
   trunk/gforge/www/project/admin/index.php
   trunk/gforge/www/project/admin/project_admin_utils.php
   trunk/gforge/www/project/admin/tools.php
   trunk/gforge/www/project/admin/vhost.php
   trunk/gforge/www/project/memberlist.php
   trunk/gforge/www/project/report/index.php
   trunk/gforge/www/register/projectinfo.php
   trunk/gforge/www/scm/admin/index.php
   trunk/gforge/www/scm/include/scm_utils.php
   trunk/gforge/www/scm/viewvc.php
   trunk/gforge/www/search/include/SearchManager.class.php
   trunk/gforge/www/search/include/renderers/ProjectHtmlSearchRenderer.class.php
   trunk/gforge/www/snippet/snippet_utils.php
   trunk/gforge/www/softwaremap/full_list.php
   trunk/gforge/www/softwaremap/index.php
   trunk/gforge/www/softwaremap/tag_cloud.php
   trunk/gforge/www/softwaremap/trove_list.php
   trunk/gforge/www/stats/site_stats_utils.php
   trunk/gforge/www/survey/include/SurveyHTML.class.php
   trunk/gforge/www/survey/survey_utils.php
   trunk/gforge/www/themes/gforge-simple-theme/Theme.class.php
   trunk/gforge/www/themes/lite/Theme.class.php
   trunk/gforge/www/tracker/include/ArtifactTypeHtml.class.php
   trunk/gforge/www/tracker/index.php
   trunk/gforge/www/trove/index.php
   trunk/tests/code/deprecations/DeprecationsTest.php
Log:
Config API: migrated a large bunch of sys_use_* variables

Modified: trunk/gforge/common/forum/Forum.class.php
===================================================================
--- trunk/gforge/common/forum/Forum.class.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/common/forum/Forum.class.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -407,15 +407,15 @@
 	 * @return string return email address
 	 */
 	function getReturnEmailAddress() {
-		global $sys_use_gateways;
+
 		$address = '';
-		if($sys_use_gateways) {
+		if(forge_get_config('use_gateways')) {
 			$address .= $this->getUnixName();
 		} else {
 			$address .= 'noreply';
 		}
 		$address .= '@';
-		if($sys_use_gateways && isset($GLOBALS['sys_forum_return_domain'])) {
+		if(forge_get_config('use_gateways') && isset($GLOBALS['sys_forum_return_domain'])) {
 			$address .= $GLOBALS['sys_forum_return_domain'];
 		} else {
 			$address .= forge_get_config('web_host');

Modified: trunk/gforge/common/forum/ForumMessage.class.php
===================================================================
--- trunk/gforge/common/forum/ForumMessage.class.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/common/forum/ForumMessage.class.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -664,7 +664,7 @@
 			}
 
 			$body = sprintf(_("\nRead and respond to this message at: \n%s"), util_make_url ('/forum/message.php?msg_id='.$this->getID()));
-			if ($GLOBALS['sys_use_mail']) {
+			if (forge_get_config('use_mail')) {
 				$body .= stripcslashes(sprintf(_('
 Or reply to this e-mail entering your response between the following markers: 
 %1$s

Modified: trunk/gforge/common/include/Group.class.php
===================================================================
--- trunk/gforge/common/include/Group.class.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/common/include/Group.class.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -1043,8 +1043,8 @@
 	 *	@return	boolean	uses_scm.
 	 */
 	function usesSCM() {
-		global $sys_use_scm;
-		if ($sys_use_scm) {
+
+		if (forge_get_config('use_scm')) {
 			return $this->data_array['use_scm'];
 		} else {
 			return false;
@@ -1057,8 +1057,8 @@
 	 *	@return	boolean uses_mail.
 	 */
 	function usesMail() {
-		global $sys_use_mail;
-		if ($sys_use_mail) {
+
+		if (forge_get_config('use_mail')) {
 			return $this->data_array['use_mail'];
 		} else {
 			return false;
@@ -1071,8 +1071,8 @@
 	 *	@return	boolean	uses_news.
 	 */
 	function usesNews() {
-		global $sys_use_news;
-		if ($sys_use_news) {
+
+		if (forge_get_config('use_news')) {
 			return $this->data_array['use_news'];
 		} else {
 			return false;
@@ -1085,8 +1085,8 @@
 	 *  @return	boolean	uses_forum.
 	 */
 	function usesForum() {
-		global $sys_use_forum;
-		if ($sys_use_forum) {
+
+		if (forge_get_config('use_forum')) {
 			return $this->data_array['use_forum'];
 		} else {
 			return false;
@@ -1108,8 +1108,8 @@
 	 *  @return	boolean	uses_frs.
 	 */
 	function usesFRS() {
-		global $sys_use_frs;
-		if ($sys_use_frs) {
+
+		if (forge_get_config('use_frs')) {
 			return $this->data_array['use_frs'];
 		} else {
 			return false;
@@ -1122,8 +1122,8 @@
 	 *  @return	boolean	uses_tracker.
 	 */
 	function usesTracker() {
-		global $sys_use_tracker;
-		if ($sys_use_tracker) {
+
+		if (forge_get_config('use_tracker')) {
 			return $this->data_array['use_tracker'];
 		} else {
 			return false;
@@ -1136,8 +1136,8 @@
 	 *  @return	boolean	uses_docman.
 	 */
 	function usesDocman() {
-		global $sys_use_docman;
-		if ($sys_use_docman) {
+
+		if (forge_get_config('use_docman')) {
 			return $this->data_array['use_docman'];
 		} else {
 			return false;
@@ -1150,8 +1150,8 @@
 	 *  @return	boolean	uses_ftp.
 	 */
 	function usesFTP() {
-		global $sys_use_ftp;
-		if ($sys_use_ftp) {
+
+		if (forge_get_config('use_ftp')) {
 			return $this->data_array['use_ftp'];
 		} else {
 			return false;
@@ -1164,8 +1164,8 @@
 	 *  @return	boolean	uses_survey.
 	 */
 	function usesSurvey() {
-		global $sys_use_survey;
-		if ($sys_use_survey) {
+
+		if (forge_get_config('use_survey')) {
 			return $this->data_array['use_survey'];
 		} else {
 			return false;
@@ -1178,8 +1178,8 @@
 	 *  @return	boolean	uses_projman.
 	 */
 	function usesPM() {
-		global $sys_use_pm;
-		if ($sys_use_pm) {
+
+		if (forge_get_config('use_pm')) {
 			return $this->data_array['use_pm'];
 		} else {
 			return false;
@@ -2156,7 +2156,7 @@
 		//	Create MailingList
 		//
 		//
-		if ($GLOBALS['sys_use_mail']) {
+		if (forge_get_config('use_mail')) {
 			$mlist = new MailingList($this);
 			if (!$mlist->create('commits',_('Commits'),1,$idadmin_group)) {
 				$this->setError(sprintf(_('ML: %s'),$mlist->getErrorMessage()));

Modified: trunk/gforge/common/include/Navigation.class.php
===================================================================
--- trunk/gforge/common/include/Navigation.class.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/common/include/Navigation.class.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -215,7 +215,7 @@
 	 *  number of the selected menu entry.
 	 */
         function getSiteMenu() {
-                global $sys_use_trove,$sys_use_snippet,$sys_use_people,$sys_use_project_tags, $sys_use_project_full_list;
+                global $sys_use_project_tags, $sys_use_project_full_list;
 
                 $request_uri = getStringFromServer('REQUEST_URI');
                 
@@ -240,7 +240,7 @@
                         $selected=count($menu['urls'])-1;
                 }
                 
-		if ($sys_use_trove || $sys_use_project_tags || $sys_use_project_full_list) {
+		if (forge_get_config('use_trove') || $sys_use_project_tags || $sys_use_project_full_list) {
 			$menu['titles'][] = _('Projects');
 			$menu['urls'][] = util_make_url ('/softwaremap/') ;
 			if (strstr($request_uri, util_make_uri('/softwaremap/'))) {
@@ -248,7 +248,7 @@
 			}
 		}
                  
-		if ($sys_use_snippet) {
+		if (forge_get_config('use_snippet')) {
 			$menu['titles'][] = _('Code Snippets');
 			$menu['urls'][] = util_make_url ('/snippet/') ;
 			if (strstr($request_uri, util_make_uri('/snippet/'))) {
@@ -256,7 +256,7 @@
 			}
 		}
                  
-		if ($sys_use_people) {
+		if (forge_get_config('use_people')) {
 			$menu['titles'][] = _('Project Openings');
 			$menu['urls'][] = util_make_url ('/people/') ;
 			if (strstr($request_uri, util_make_uri('/people/'))) {

Modified: trunk/gforge/common/include/account.php
===================================================================
--- trunk/gforge/common/include/account.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/common/include/account.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -45,8 +45,8 @@
  *
  */
 function account_namevalid($name) {
-	global $sys_use_shell;
 
+
 	// no spaces
 	if (strrpos($name,' ') > 0) {
 		$GLOBALS['register_error'] = _('There cannot be any spaces in the login name.');
@@ -75,7 +75,7 @@
 		$GLOBALS['register_error'] = _('Name is reserved.');
 		return 0;
 	}
-	if ($sys_use_shell) {
+	if (forge_get_config('use_shell')) {
 		if ( exec("getent passwd $name") != "" ){
 			$GLOBALS['register_error'] = _('That username already exists.');
 			return 0;

Modified: trunk/gforge/common/include/config-vars.php
===================================================================
--- trunk/gforge/common/include/config-vars.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/common/include/config-vars.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -31,6 +31,28 @@
 forge_define_config_item ('default_language', 'core', $GLOBALS['sys_lang']) ;
 forge_define_config_item ('default_timezone', 'core', $GLOBALS['sys_default_timezone']) ;
 forge_define_config_item ('default_country_code', 'core', $GLOBALS['sys_default_country_code']) ;
+forge_define_config_item ('use_scm', 'core', $GLOBALS['sys_use_scm']) ;
+forge_define_config_item ('use_tracker', 'core', $GLOBALS['sys_use_tracker']) ;
+forge_define_config_item ('use_forum', 'core', $GLOBALS['sys_use_forum']) ;
+forge_define_config_item ('use_pm', 'core', $GLOBALS['sys_use_pm']) ;
+forge_define_config_item ('use_docman', 'core', $GLOBALS['sys_use_docman']) ;
+forge_define_config_item ('use_news', 'core', $GLOBALS['sys_use_news']) ;
+forge_define_config_item ('use_mail', 'core', $GLOBALS['sys_use_mail']) ;
+forge_define_config_item ('use_survey', 'core', $GLOBALS['sys_use_survey']) ;
+forge_define_config_item ('use_frs', 'core', $GLOBALS['sys_use_frs']) ;
+forge_define_config_item ('use_fti', 'core', $GLOBALS['sys_use_fti']) ;
+forge_define_config_item ('use_ftp', 'core', $GLOBALS['sys_use_ftp']) ;
+forge_define_config_item ('use_trove', 'core', $GLOBALS['sys_use_trove']) ;
+forge_define_config_item ('use_snippet', 'core', $GLOBALS['sys_use_snippet']) ;
+forge_define_config_item ('use_ssl', 'core', $GLOBALS['sys_use_ssl']) ;
+forge_define_config_item ('use_people', 'core', $GLOBALS['sys_use_people']) ;
+forge_define_config_item ('use_shell', 'core', $GLOBALS['sys_use_shell']) ;
+forge_define_config_item ('use_ratings', 'core', $GLOBALS['sys_use_ratings']) ;
+forge_define_config_item ('use_ftpuploads', 'core', $GLOBALS['sys_use_ftpuploads']) ;
+forge_define_config_item ('use_gateways', 'core', $GLOBALS['sys_use_gateways']) ;
+forge_define_config_item ('use_project_vhost', 'core', $GLOBALS['sys_use_project_vhost']) ;
+forge_define_config_item ('use_project_database', 'core', $GLOBALS['sys_use_project_database']) ;
+forge_define_config_item ('use_project_multimedia', 'core', $GLOBALS['sys_use_project_multimedia']) ;
 // forge_define_config_item ('', 'core', $GLOBALS['sys_']) ;
 
 /* Long-term:

Modified: trunk/gforge/common/include/utils.php
===================================================================
--- trunk/gforge/common/include/utils.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/common/include/utils.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -1010,7 +1010,7 @@
  * @return string URL
  */
 function util_make_url ($path) {
-	if ($GLOBALS['sys_use_ssl']) 
+	if (forge_get_config('use_ssl')) 
 		$url = "https://" ;
 	else
 		$url = "http://" ;

Modified: trunk/gforge/common/reporting/report_utils.php
===================================================================
--- trunk/gforge/common/reporting/report_utils.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/common/reporting/report_utils.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -134,29 +134,29 @@
     $sys_use_pm = $Group->usesPM();
     $sys_use_frs = $Group->usesFRS();
   } else {
-    $sys_use_tracker = $GLOBALS['sys_use_tracker'];
-    $sys_use_forum = $GLOBALS['sys_use_forum'];
-    $sys_use_docman = $GLOBALS['sys_use_docman'];
-    $sys_use_pm = $GLOBALS['sys_use_pm'];
-    $sys_use_frs = $GLOBALS['sys_use_frs'];
+    $sys_use_tracker = forge_get_config('use_tracker');
+    $sys_use_forum = forge_get_config('use_forum');
+    $sys_use_docman = forge_get_config('use_docman');
+    $sys_use_pm = forge_get_config('use_pm');
+    $sys_use_frs = forge_get_config('use_frs');
   }
-  if ($sys_use_tracker) {
+  if (forge_get_config('use_tracker')) {
     $arr[]='tracker';
     $arr2[]=_('Tracker');
   }
-  if ($sys_use_forum) {
+  if (forge_get_config('use_forum')) {
     $arr[]='forum';
     $arr2[]=_('Forums');
   }
-  if ($sys_use_docman) {
+  if (forge_get_config('use_docman')) {
     $arr[]='docman';
     $arr2[]=_('Docs');
   }
-  if ($sys_use_pm) {
+  if (forge_get_config('use_pm')) {
     $arr[]='taskman';
     $arr2[]=_('Tasks');
   }
-  if ($sys_use_frs) {
+  if (forge_get_config('use_frs')) {
     $arr[]='downloads';
     $arr2[]=_('Downloads');
   }
@@ -165,7 +165,7 @@
 }
 
 function report_tracker_box($name='datatype', $selected='1') {
-  if ($GLOBALS['sys_use_tracker']) {
+  if (forge_get_config('use_tracker')) {
     $arr[]=_('Bugs');
     $arr[]=_('Support');
     $arr[]=_('Patches');
@@ -177,15 +177,15 @@
     $arr2[]='4';
     $arr2[]='0';
   }
-  if ($GLOBALS['sys_use_forum']) {
+  if (forge_get_config('use_forum')) {
     $arr[]=_('Forum Messages');
     $arr2[]='5';
   }
-  if ($GLOBALS['sys_use_pm']) {
+  if (forge_get_config('use_pm')) {
     $arr[]=_('Tasks');
     $arr2[]='6';
   }
-  if ($GLOBALS['sys_use_frs']) {
+  if (forge_get_config('use_frs')) {
     $arr[]=_('Downloads');
     $arr2[]='7';
   }

Modified: trunk/gforge/common/scm/SCMFactory.class.php
===================================================================
--- trunk/gforge/common/scm/SCMFactory.class.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/common/scm/SCMFactory.class.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -41,10 +41,10 @@
 	 *	@return	boolean	success.
 	 */
 	function SCMFactory() {
-		global $sys_use_scm;
 
+
 		$this->Error();
-		if (!$sys_use_scm) {
+		if (!forge_get_config('use_scm')) {
 			$this->setError('SCMFactory::sys_use_scm');
 			return false;
 		}

Modified: trunk/gforge/common/search/ArtifactSearchQuery.class.php
===================================================================
--- trunk/gforge/common/search/ArtifactSearchQuery.class.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/common/search/ArtifactSearchQuery.class.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -64,11 +64,11 @@
 	 * @return array query+params array
 	 */
 	function getQuery() {
-		global $sys_use_fti;
 
+
 		$qpa = db_construct_qpa () ;
 
-		if ($sys_use_fti) {
+		if (forge_get_config('use_fti')) {
 			$words=$this->getFormattedWords();
 			$artifactId = $this->artifactId;
 

Modified: trunk/gforge/common/search/DocsSearchQuery.class.php
===================================================================
--- trunk/gforge/common/search/DocsSearchQuery.class.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/common/search/DocsSearchQuery.class.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -66,8 +66,8 @@
 	 * @return array query+params array
 	 */
 	function getQuery() {
-		global $sys_use_fti;
-		if ($sys_use_fti) {
+
+		if (forge_get_config('use_fti')) {
 			return $this->getFTIQuery();
 		} else {
 			$qpa = db_construct_qpa () ;

Modified: trunk/gforge/common/search/ExportProjectSearchQuery.class.php
===================================================================
--- trunk/gforge/common/search/ExportProjectSearchQuery.class.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/common/search/ExportProjectSearchQuery.class.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -44,9 +44,9 @@
 	 * @return array query+params array
 	 */
 	function getQuery() {
-		global $sys_use_fti;
+
 		$qpa = db_construct_qpa () ;
-		if ($sys_use_fti) {
+		if (forge_get_config('use_fti')) {
 			$words = $this->getFormattedWords();
 			if(count($this->words)) {
 				$qpa = db_construct_qpa ($qpa,

Modified: trunk/gforge/common/search/ForumSearchQuery.class.php
===================================================================
--- trunk/gforge/common/search/ForumSearchQuery.class.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/common/search/ForumSearchQuery.class.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -63,11 +63,11 @@
 	 * @return array query+params array
 	 */
 	function getQuery() {
-		global $sys_use_fti;
 
+
 		$qpa = db_construct_qpa () ;
 
-		if ($sys_use_fti) {
+		if (forge_get_config('use_fti')) {
 			$words = $this->getFormattedWords();
 			
 

Modified: trunk/gforge/common/search/ForumsSearchQuery.class.php
===================================================================
--- trunk/gforge/common/search/ForumsSearchQuery.class.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/common/search/ForumsSearchQuery.class.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -66,11 +66,11 @@
 	 * @return array query+params array
 	 */
 	function getQuery() {
-		global $sys_use_fti;
 
+
 		$qpa = db_construct_qpa () ;
 
-		if ($sys_use_fti) {
+		if (forge_get_config('use_fti')) {
 			$nonPublic = 'false';
 			$sections = '';
 			if ($this->showNonPublic) {

Modified: trunk/gforge/common/search/FrsSearchQuery.class.php
===================================================================
--- trunk/gforge/common/search/FrsSearchQuery.class.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/common/search/FrsSearchQuery.class.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -65,11 +65,11 @@
 	 * @return array query+params array
 	 */
 	function getQuery() {
-		global $sys_use_fti;
 
+
 		$qpa = db_construct_qpa () ;
 
-		if ($sys_use_fti) {
+		if (forge_get_config('use_fti')) {
 			if(count($this->words)) {
 				$qpa = db_construct_qpa () ;
 				$qpa = db_construct_qpa ($qpa,

Modified: trunk/gforge/common/search/NewsSearchQuery.class.php
===================================================================
--- trunk/gforge/common/search/NewsSearchQuery.class.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/common/search/NewsSearchQuery.class.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -53,11 +53,11 @@
 	 * @return array query+params array
 	 */
 	function getQuery() {
-		global $sys_use_fti;
+
 		
 		$qpa = db_construct_qpa () ;
 
-		if ($sys_use_fti) {
+		if (forge_get_config('use_fti')) {
 			$group_id=$this->groupId;
 
 			if (count ($this->words)) {

Modified: trunk/gforge/common/search/PeopleSearchQuery.class.php
===================================================================
--- trunk/gforge/common/search/PeopleSearchQuery.class.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/common/search/PeopleSearchQuery.class.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -44,11 +44,11 @@
 	 * @return array query+params array
 	 */
 	function getQuery() {
-		global $sys_use_fti;
+
 		
 		$qpa = db_construct_qpa () ;
 
-		if ($sys_use_fti) {
+		if (forge_get_config('use_fti')) {
 			if (count ($this->words)) {
 				$words = $this->getFormattedWords();
 				$qpa = db_construct_qpa ($qpa,

Modified: trunk/gforge/common/search/ProjectSearchQuery.class.php
===================================================================
--- trunk/gforge/common/search/ProjectSearchQuery.class.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/common/search/ProjectSearchQuery.class.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -44,11 +44,11 @@
 	 * @return array query+params array
 	 */
 	function getQuery() {
-		global $sys_use_fti, $LUSER;
+		global  $LUSER;
 
 		$qpa = db_construct_qpa () ;
 
-		if ($sys_use_fti) {
+		if (forge_get_config('use_fti')) {
 			if (count ($this->words)) {
 				$words = $this->getFormattedWords();
 				$qpa = db_construct_qpa ($qpa,

Modified: trunk/gforge/common/search/SearchQuery.class.php
===================================================================
--- trunk/gforge/common/search/SearchQuery.class.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/common/search/SearchQuery.class.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -167,14 +167,14 @@
 	 * executeQuery - execute the SQL query to get the results
 	 */ 
 	function executeQuery() {
-		global $sys_use_fti;
+
 		if($this->searchId) {
 			$qpa = $this->getSearchByIdQuery();
 		} else {
 			$qpa = $this->getQuery();
 		}
 
-		if ($sys_use_fti) {
+		if (forge_get_config('use_fti')) {
 			db_query_params ('select set_curcfg($1)',
 					 array ('default'));
 		}

Modified: trunk/gforge/common/search/SkillSearchQuery.class.php
===================================================================
--- trunk/gforge/common/search/SkillSearchQuery.class.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/common/search/SkillSearchQuery.class.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -44,11 +44,11 @@
 	 * @return array query+params array
 	 */
 	function getQuery() {
-		global $sys_use_fti;
 
+
 		$qpa = db_construct_qpa () ;
 
-		if ($sys_use_fti) {
+		if (forge_get_config('use_fti')) {
 			if(count($this->words)) {
 				$words = $this->getFormattedWords();
 				$qpa = db_construct_qpa ($qpa,

Modified: trunk/gforge/common/search/TasksSearchQuery.class.php
===================================================================
--- trunk/gforge/common/search/TasksSearchQuery.class.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/common/search/TasksSearchQuery.class.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -66,11 +66,11 @@
 	 * @return array query+params array
 	 */
 	function getQuery() {
-		global $sys_use_fti;
 
+
 		$qpa = db_construct_qpa () ;
 		
-		if ($sys_use_fti) {
+		if (forge_get_config('use_fti')) {
 			if (count ($this->words)) {
 				$words = $this->getFormattedWords();
 

Modified: trunk/gforge/common/search/TrackersSearchQuery.class.php
===================================================================
--- trunk/gforge/common/search/TrackersSearchQuery.class.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/common/search/TrackersSearchQuery.class.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -66,11 +66,11 @@
 	 * @return array query+params array
 	 */
 	function getQuery() {
-		global $sys_use_fti;
+
 		
 		$qpa = db_construct_qpa () ;
 
-		if ($sys_use_fti) {
+		if (forge_get_config('use_fti')) {
 			if (count ($this->words)) {
 				$qpa = db_construct_qpa ($qpa,
 							 'SELECT DISTINCT x.* FROM (SELECT artifact.artifact_id, artifact.group_artifact_id, artifact.summary, artifact.open_date, users.realname, artifact_group_list.name, (rank(artifact_idx.vectors, q)+rank(artifact_message_idx.vectors, q)) AS rank FROM artifact LEFT OUTER JOIN artifact_message USING (artifact_id), users, artifact_group_list, to_tsquery($1) q, artifact_idx, artifact_message_idx WHERE users.user_id = artifact.submitted_by AND artifact_idx.artifact_id = artifact.artifact_id AND artifact_message_idx.id = artifact_message.id AND artifact_message_idx.artifact_id = artifact_message_idx.artifact_id AND artifact_group_list.group_artifact_id = artifact.group_artifact_id AND artifact_group_list.group_id = $2 ',

Modified: trunk/gforge/common/tracker/ArtifactType.class.php
===================================================================
--- trunk/gforge/common/tracker/ArtifactType.class.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/common/tracker/ArtifactType.class.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -422,9 +422,9 @@
 	 * @return string return email address
 	 */
 	function getReturnEmailAddress() {
-		global $sys_use_gateways;
+
 		$address = '';
-		if($sys_use_gateways) {
+		if(forge_get_config('use_gateways')) {
 			$address .= strtolower($this->getUnixName());
 		} else {
 			$address .= 'noreply';

Modified: trunk/gforge/cronjobs/create_home_dirs.php
===================================================================
--- trunk/gforge/cronjobs/create_home_dirs.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/cronjobs/create_home_dirs.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -91,7 +91,7 @@
 foreach($groups as $group)
 {
 	//create an FTP upload dir for this project
-	if ($sys_use_ftpuploads)
+	if (forge_get_config('use_ftpuploads'))
 	{ 
 		if (!is_dir($sys_ftp_upload_dir.'/'.$group))
 		{

Modified: trunk/gforge/cronjobs/db_project_sums.php
===================================================================
--- trunk/gforge/cronjobs/db_project_sums.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/cronjobs/db_project_sums.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -42,7 +42,7 @@
 /*
     Create an aggregation table that includes counts of forum messages
 */
-if ($sys_use_forum) {
+if (forge_get_config('use_forum')) {
 	db_begin();
 
 	db_query_params ('LOCK TABLE forum_agg_msg_count IN ACCESS EXCLUSIVE MODE',
@@ -76,7 +76,7 @@
 /*
 	Create an aggregation table that includes counts of artifacts
 */
-if ($sys_use_tracker) {
+if (forge_get_config('use_tracker')) {
 	db_begin();
 
 	db_query_params ('LOCK TABLE artifact_counts_agg IN ACCESS EXCLUSIVE MODE',
@@ -119,7 +119,7 @@
 /*
 	Get counts of mailing lists
 */
-if ($sys_use_mail) {
+if (forge_get_config('use_mail')) {
 	$res=db_query_params ('INSERT INTO project_sums_agg
 SELECT group_id,$1 AS type,count(*) AS count
 FROM mail_group_list WHERE is_public = 1
@@ -131,7 +131,7 @@
 /*
 	Get counts of surveys
 */
-if ($sys_use_survey) {
+if (forge_get_config('use_survey')) {
 	$res=db_query_params ('INSERT INTO project_sums_agg
 SELECT group_id,$1 AS type,count(*) AS count
 FROM surveys
@@ -146,7 +146,7 @@
 /*
 	Forum message count
 */
-if ($sys_use_forum) {
+if (forge_get_config('use_forum')) {
 	$res=db_query_params ('INSERT INTO project_sums_agg
 SELECT forum_group_list.group_id,$1 AS type, count(forum.msg_id) AS count
 FROM forum,forum_group_list

Modified: trunk/gforge/cronjobs/homedirs.php
===================================================================
--- trunk/gforge/cronjobs/homedirs.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/cronjobs/homedirs.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -119,7 +119,7 @@
 	}
 	
 	//create an FTP upload dir for this project
-	if ($sys_use_ftpuploads) { 
+	if (forge_get_config('use_ftpuploads')) { 
 		if (!is_dir($sys_ftp_upload_dir.'/'.$group)) {
 			@mkdir($sys_ftp_upload_dir.'/'.$group); 
 		}

Modified: trunk/gforge/cronjobs/mail/mailaliases.php
===================================================================
--- trunk/gforge/cronjobs/mail/mailaliases.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/cronjobs/mail/mailaliases.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -89,7 +89,7 @@
 //
 //	Set up the forum aliases
 //
-if ($sys_use_forum) {
+if (forge_get_config('use_forum')) {
 	$resforum = db_query_params ('SELECT groups.unix_group_name,lower(fgl.forum_name) AS forum_name
 		FROM forum_group_list fgl,groups
 		WHERE fgl.group_id=groups.group_id
@@ -111,7 +111,7 @@
 //
 //	Set up the tracker aliases
 //
-if ($sys_use_tracker) {
+if (forge_get_config('use_tracker')) {
 	$restracker = db_query_params ('SELECT groups.unix_group_name,lower(agl.name) AS tracker_name,group_artifact_id
 		FROM artifact_group_list agl, groups
 		WHERE agl.group_id=groups.group_id
@@ -137,7 +137,7 @@
 	}
 }
 
-if ($sys_use_mail && file_exists($sys_var_path.'/dumps/mailman-aliases')) {
+if (forge_get_config('use_mail') && file_exists($sys_var_path.'/dumps/mailman-aliases')) {
 	//
 	//	Read in the mailman aliases
 	//

Modified: trunk/gforge/plugins/mediawiki/etc/plugins/mediawiki/LocalSettings.php
===================================================================
--- trunk/gforge/plugins/mediawiki/etc/plugins/mediawiki/LocalSettings.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/plugins/mediawiki/etc/plugins/mediawiki/LocalSettings.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -87,7 +87,7 @@
 $GLOBALS['sys_dbpasswd'] = $sys_dbpasswd ;
 $GLOBALS['sys_plugins_path'] = $sys_plugins_path ;
 $GLOBALS['sys_urlprefix'] = $sys_urlprefix ;
-$GLOBALS['sys_use_ssl'] = $sys_use_ssl ;
+$GLOBALS['sys_use_ssl'] = forge_get_config('use_ssl') ;
 $GLOBALS['sys_default_domain'] = forge_get_config('web_host') ;
 $GLOBALS['sys_custom_path'] = $sys_custom_path ;
 $GLOBALS['gfwww'] = $gfwww ;

Modified: trunk/gforge/plugins/projects_hierarchy/www/softwaremap.php
===================================================================
--- trunk/gforge/plugins/projects_hierarchy/www/softwaremap.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/plugins/projects_hierarchy/www/softwaremap.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -15,7 +15,7 @@
 require_once $gfwww.'include/trove.php';
 require_once $gfwww.'docman/include/doc_utils.php';
 
-if (!$sys_use_trove) {
+if (!forge_get_config('use_trove')) {
 	exit_disabled();
 }
 

Modified: trunk/gforge/plugins/quota_management/www/quota_project.php
===================================================================
--- trunk/gforge/plugins/quota_management/www/quota_project.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/plugins/quota_management/www/quota_project.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -27,7 +27,7 @@
 require_once $gfwww.'include/pre.php';
 require_once $gfwww.'project/admin/project_admin_utils.php';
 
-if (!$sys_use_project_vhost) {
+if (!forge_get_config('use_project_vhost')) {
 	exit_disabled();
 }
 

Modified: trunk/gforge/plugins/scmcvs/cronjobs/ftp_create.php
===================================================================
--- trunk/gforge/plugins/scmcvs/cronjobs/ftp_create.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/plugins/scmcvs/cronjobs/ftp_create.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -31,7 +31,7 @@
 
 $err = '';
 
-if ($sys_use_ftpuploads) { 	
+if (forge_get_config('use_ftpuploads')) { 	
 	//
 	//	Add the groups from the gforge database
 	//

Modified: trunk/gforge/plugins/scmcvs/www/acl.php
===================================================================
--- trunk/gforge/plugins/scmcvs/www/acl.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/plugins/scmcvs/www/acl.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -25,7 +25,7 @@
 require_once $gfcommon.'include/escapingUtils.php';
 require_once $gfwww.'include/squal_pre.php';
 
-if (!$sys_use_scm) {
+if (!forge_get_config('use_scm')) {
 	exit_disabled();
 }
 

Modified: trunk/gforge/www/account/index.php
===================================================================
--- trunk/gforge/www/account/index.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/account/index.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -104,7 +104,7 @@
 </p>
 <ul>
 	<li><?php echo util_make_link_u ($u->getUnixName(),$u->getId(),'<strong>'._('View My Profile').'</strong>'); ?></li>
-<?php if($GLOBALS['sys_use_people']) { ?>
+<?php if(forge_get_config('use_people')) { ?>
 	<li><?php echo util_make_link ('/people/editprofile.php','<strong>'._('Edit My Skills Profile').'</strong>'); ?></li>
 <?php } ?>
 </ul>
@@ -243,7 +243,7 @@
 */ ?>
 
 <p />
-<?php if ($sys_use_ratings) { ?>
+<?php if (forge_get_config('use_ratings')) { ?>
 <input type="checkbox"  name="use_ratings" value="1"<?php
 	if ($u->usesRatings()) print ' checked="checked"'; ?> />
 		  <?php printf(_('Participate in peer ratings. <i>(Allows you to rate other users using several criteria as well as to be rated by others. More information is available on your <a href="%s">user page</a> if you have chosen to participate in ratings.)</i>'),util_make_url_u ($u->getUnixName(),$u->getId())); 
@@ -263,7 +263,7 @@
 
 // ############################### Shell Account
 
-if (($u->getUnixStatus() == 'A') && ($sys_use_shell)) {
+if (($u->getUnixStatus() == 'A') && (forge_get_config('use_shell'))) {
 	echo $HTML->boxTop(_('Shell Account Information')."");
 	print '&nbsp;
 <br />'._('Shell box').': <strong>'.$u->getUnixBox().'</strong>

Modified: trunk/gforge/www/account/login.php
===================================================================
--- trunk/gforge/www/account/login.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/account/login.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -48,7 +48,7 @@
 	}
 }
 
-if ($sys_use_ssl && !session_issecure()) {
+if (forge_get_config('use_ssl') && !session_issecure()) {
 	//force use of SSL for login
 	header('Location: https://'.getStringFromServer('HTTP_HOST').getStringFromServer('REQUEST_URI'));
 }

Modified: trunk/gforge/www/account/register.php
===================================================================
--- trunk/gforge/www/account/register.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/account/register.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -52,7 +52,7 @@
 $ccode = getStringFromRequest('ccode');
 $accept_conditions = getIntFromRequest ('accept_conditions');
 
-if ($sys_use_ssl && !session_issecure()) {
+if (forge_get_config('use_ssl') && !session_issecure()) {
 	//force use of SSL for login
 	header('Location: https://'.getStringFromServer('HTTP_HOST').getStringFromServer('REQUEST_URI'));
 }

Modified: trunk/gforge/www/activity/index.php
===================================================================
--- trunk/gforge/www/activity/index.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/activity/index.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -72,29 +72,29 @@
 $ids=array();
 $texts=array();
 
-if ($GLOBALS['sys_use_forum'] && $group->usesForum ()) {
+if (forge_get_config('use_forum') && $group->usesForum ()) {
 	$ids[]='forumpost';
 	$texts[]=_('Forum Post');
 }
 
-if ($GLOBALS['sys_use_tracker'] && $group->usesTracker ()) {
+if (forge_get_config('use_tracker') && $group->usesTracker ()) {
 	$ids[]='trackeropen';
 	$texts[]=_('Tracker Opened');
 	$ids[]='trackerclose';
 	$texts[]=_('Tracker Closed');
 }
 
-if ($GLOBALS['sys_use_news'] && $group->usesNews ()) {
+if (forge_get_config('use_news') && $group->usesNews ()) {
 	$ids[]='news';
 	$texts[]=_('News');
 }
 
-if ($GLOBALS['sys_use_scm'] && $group->usesSCM ()) {
+if (forge_get_config('use_scm') && $group->usesSCM ()) {
 	$ids[]='commit';
 	$texts[]=_('Commits');
 }
 
-if ($GLOBALS['sys_use_frs'] && $group->usesFRS ()) {
+if (forge_get_config('use_frs') && $group->usesFRS ()) {
 	$ids[]='frsrelease';
 	$texts[]=_('FRS Release');
 }

Modified: trunk/gforge/www/admin/approve-pending.php
===================================================================
--- trunk/gforge/www/admin/approve-pending.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/admin/approve-pending.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -187,8 +187,8 @@
 	<strong><?php echo _('License:')." "; print license_getname($row_grp['license']); ?></strong>
 
 	<?php
-		global $sys_use_shell;
-		if ($sys_use_shell) {
+
+		if (forge_get_config('use_shell')) {
 	?>  
 	<br /><strong><?php echo _('Home Box:')." "; print $row_grp['unix_box']; ?></strong>
 	<?php

Modified: trunk/gforge/www/admin/database.php
===================================================================
--- trunk/gforge/www/admin/database.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/admin/database.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -33,7 +33,7 @@
 require_once $gfwww.'include/pre.php';
 require_once $gfwww.'admin/admin_utils.php';
 
-if (!$sys_use_project_database) {
+if (!forge_get_config('use_project_database')) {
 	exit_disabled();
 }
 

Modified: trunk/gforge/www/admin/groupedit.php
===================================================================
--- trunk/gforge/www/admin/groupedit.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/admin/groupedit.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -156,8 +156,8 @@
 </tr>
 
 <?php
-	global $sys_use_shell;
-	if ($sys_use_shell) {
+
+	if (forge_get_config('use_shell')) {
 ?> 
 <tr>
 <td>

Modified: trunk/gforge/www/admin/index.php
===================================================================
--- trunk/gforge/www/admin/index.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/admin/index.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -162,13 +162,13 @@
 	<?php plugin_hook("site_admin_option_hook", false); ?>
 </ul>
 
-<?php if($GLOBALS['sys_use_project_database'] || $GLOBALS['sys_use_project_vhost']) { ?>
+<?php if(forge_get_config('use_project_database') || forge_get_config('use_project_vhost')) { ?>
 <ul>
-	<?php if($GLOBALS['sys_use_project_vhost']) { ?>
+	<?php if(forge_get_config('use_project_vhost')) { ?>
 		<li><a href="vhost.php"><?php echo _('Virtual Host Admin Tool'); ?></a></li>
 	<?php
 	}
-	if($GLOBALS['sys_use_project_database']) { ?>
+	if(forge_get_config('use_project_database')) { ?>
 		<li><a href="database.php"><?php echo _('Project Database Administration'); ?></a></li>
 	<?php } ?>
 </ul>

Modified: trunk/gforge/www/admin/useredit.php
===================================================================
--- trunk/gforge/www/admin/useredit.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/admin/useredit.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -60,7 +60,7 @@
 
     //XXX use_shell
 	if (!$u->setEmail($email)
-		|| ($sys_use_shell && !$u->setShell($shell))
+		|| (forge_get_config('use_shell') && !$u->setShell($shell))
 		|| !$u->setStatus($status)) {
 		exit_error(
 			_('Could Not Complete Operation'),
@@ -151,9 +151,9 @@
 </tr>
 
 <?php 
-	global $sys_use_shell;
 
-	if ($sys_use_shell) {
+
+	if (forge_get_config('use_shell')) {
 ?>    
 <tr>
 	<td>
@@ -209,9 +209,9 @@
 </p>
 
 <?php 
-	global $sys_use_shell;
 
-	if ($sys_use_shell) {
+
+	if (forge_get_config('use_shell')) {
 ?>    
 <p>
 <sup>2</sup><?php echo _('Unix status updated mirroring web status, unless it has value \'No unix account (N)\''); ?>

Modified: trunk/gforge/www/admin/vhost.php
===================================================================
--- trunk/gforge/www/admin/vhost.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/admin/vhost.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -32,7 +32,7 @@
 require_once $gfcommon.'include/account.php';
 require_once $gfwww.'admin/admin_utils.php';
 
-if (!$sys_use_project_vhost) {
+if (!forge_get_config('use_project_vhost')) {
 	exit_disabled();
 }
 

Modified: trunk/gforge/www/docman/admin/index.php
===================================================================
--- trunk/gforge/www/docman/admin/index.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/docman/admin/index.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -103,7 +103,7 @@
 			$filename=$file_url;
 			$filetype='URL';
 		/*
-		} elseif ($sys_use_ftpuploads && $ftp_filename!=100) { //100==None
+		} elseif (forge_get_config('use_ftp')uploads && $ftp_filename!=100) { //100==None
 			$filename=$upload_dir.'/'.$ftp_filename;
 			$data = fread(fopen($filename, 'r'), filesize($filename));
 			$filetype=$uploaded_data_type;
@@ -326,7 +326,7 @@
 		<?php } else { ?>
 		<strong><?php echo _('OPTIONAL: Upload new file') ?></strong><br />
 		<input type="file" name="uploaded_data" size="30" /><br/><br />
-			<?php //if ($sys_use_ftpuploads) { ?>
+			<?php //if (forge_get_config('use_ftp')uploads) { ?>
 			<!--<strong><?php //printf(_('OR choose one form FTP %1$s'), $sys_ftp_upload_host) ?></strong>--><br />
 			<?php
 			//$ftp_files_arr=array_merge($arr,ls($upload_dir,true));

Modified: trunk/gforge/www/docman/include/doc_utils.php
===================================================================
--- trunk/gforge/www/docman/include/doc_utils.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/docman/include/doc_utils.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -48,9 +48,9 @@
 
 function docman_header($title,$pagehead,$style='xyz') {
 	
-	global $group_id, $HTML, $sys_use_docman;
+	global $group_id, $HTML;
 
-	if (!$sys_use_docman) {
+	if (!forge_get_config('use_docman')) {
 		exit_disabled();
 	}
 

Modified: trunk/gforge/www/docman/new.php
===================================================================
--- trunk/gforge/www/docman/new.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/docman/new.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -164,7 +164,7 @@
 				break;
 			}
 			case 'ftpupload' : {
-				if ($sys_use_ftpuploads) {
+				if (forge_get_config('use_ftp')uploads) {
 					echo '
 						<tr>
 							<td>

Modified: trunk/gforge/www/export/rss_project.php
===================================================================
--- trunk/gforge/www/export/rss_project.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/export/rss_project.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -85,23 +85,23 @@
 $string_rss_20 = '';
 
 // RSS for project news
-if ($project->usesNews() && $GLOBALS['sys_use_news']) {
+if ($project->usesNews() && forge_get_config('use_news')) {
 	$string_rss_20 .= get_rss_feed_20 ("rss20_news.php?group_id=" . $group_id,
 										$name.': ' . _('Project News'));
 }
 
 // RSS for project Activity
-if ( ($project->usesNews() && $GLOBALS['sys_use_news']) || 
-	($project->usesFRS() && $GLOBALS['sys_use_frs']) || 
-	($project->usesTracker() && $GLOBALS['sys_use_tracker']) || 
-	($project->usesForum() && $GLOBALS['sys_use_forum']) ||
-	($project->usesSCM() && $GLOBALS['sys_use_scm']) ){
+if ( ($project->usesNews() && forge_get_config('use_news')) || 
+	($project->usesFRS() && forge_get_config('use_frs')) || 
+	($project->usesTracker() && forge_get_config('use_tracker')) || 
+	($project->usesForum() && forge_get_config('use_forum')) ||
+	($project->usesSCM() && forge_get_config('use_scm')) ){
 	$string_rss_20 .= get_rss_feed_20 ("rss20_activity.php?group_id=" . $group_id,
 										$name.': ' . _('Activity'));
 }
 
 // RSS for project Releases
-if ($project->usesFRS() && $GLOBALS['sys_use_frs']) {
+if ($project->usesFRS() && forge_get_config('use_frs')) {
 	$string_rss_20 .= get_rss_feed_20 ("rss20_newreleases.php?group_id=" . $group_id,
 										$name.': ' . _('Project Releases'));
 }

Modified: trunk/gforge/www/forum/include/ForumHTML.class.php
===================================================================
--- trunk/gforge/www/forum/include/ForumHTML.class.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/forum/include/ForumHTML.class.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -25,12 +25,12 @@
 require_once $gfwww.'forum/include/AttachManager.class.php';
 
 function forum_header($params) {
-	global $HTML,$group_id,$forum_name,$forum_id,$sys_news_group,$f,$sys_use_forum,$sys_use_trove,$group_forum_id;
+	global $HTML,$group_id,$forum_name,$forum_id,$sys_news_group,$f,$group_forum_id;
 
 	if ($group_forum_id) {
 		$forum_id=$group_forum_id;
 	}
-	if (!$sys_use_forum) {
+	if (!forge_get_config('use_forum')) {
 		exit_disabled();
 	}
 
@@ -88,7 +88,7 @@
 				// display classification
 				if ($params['group'] == $sys_news_group) { 
 				   print stripslashes(trove_news_getcatlisting(db_result($result,0,'forum_id'),0,1));
-				} elseif ($sys_use_trove) {
+				} elseif (forge_get_config('use_trove')) {
 				   print stripslashes(trove_getcatlisting($params['group'],0,1));
 				}
 			}

Modified: trunk/gforge/www/frs/admin/editrelease.php
===================================================================
--- trunk/gforge/www/frs/admin/editrelease.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/frs/admin/editrelease.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -158,8 +158,8 @@
 	$group_unix_name=group_getunixname($group_id);
 	$ftp_filename = getStringFromRequest('ftp_filename');
 
-	if (($userfile && is_uploaded_file($userfile['tmp_name'])) || ($sys_use_ftpuploads && $ftp_filename)){
-		if ($sys_use_ftpuploads && $ftp_filename && util_is_valid_filename($ftp_filename) && is_file($upload_dir.'/'.$ftp_filename)) {
+	if (($userfile && is_uploaded_file($userfile['tmp_name'])) || (forge_get_config('use_ftpuploads') && $ftp_filename)){
+		if (forge_get_config('use_ftpuploads') && $ftp_filename && util_is_valid_filename($ftp_filename) && is_file($upload_dir.'/'.$ftp_filename)) {
 			//file was uploaded already via ftp
 			//use setuid prog to chown it
 			//$cmd = escapeshellcmd("$sys_ftp_upload_chowner $ftp_filename");
@@ -311,7 +311,7 @@
 <input type="hidden" name="step2" value="1" />
 <fieldset><legend><strong><?php echo _("File Name") ?></strong></legend>
 <?php echo _("Upload a new file") ?>: <input type="file" name="userfile"  size="30" />
-<?php if ($sys_use_ftpuploads) {
+<?php if (forge_get_config('use_ftpuploads')) {
 	echo '<p>';
 	printf(_('Alternatively, you can use FTP to upload a new file at %1$s'), $sys_ftp_upload_host).'<br />';
 	echo _('Choose an FTP file instead of uploading:').'<br />';

Modified: trunk/gforge/www/frs/admin/qrs.php
===================================================================
--- trunk/gforge/www/frs/admin/qrs.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/frs/admin/qrs.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -65,7 +65,7 @@
 	$preformatted = getStringFromRequest('preformatted');
 	$ftp_filename = getStringFromRequest('ftp_filename');
 	$feedback = '' ;
-	if ($sys_use_ftpuploads && $ftp_filename && util_is_valid_filename($ftp_filename) && is_file($upload_dir.'/'.$ftp_filename)) {
+	if (forge_get_config('use_ftpuploads') && $ftp_filename && util_is_valid_filename($ftp_filename) && is_file($upload_dir.'/'.$ftp_filename)) {
 		//file was uploaded already via ftp
 		//use setuid prog to chown it
 		//$cmd = escapeshellcmd("$sys_ftp_upload_chowner $ftp_filename");
@@ -110,7 +110,7 @@
 		} elseif ($frsp->isError()) {
 			exit_error('Error',$frsp->getErrorMessage());
 		} else {
-			if ($userfile && (is_uploaded_file($userfile['tmp_name']) || ($sys_use_ftpuploads && $ftp_filename))) {
+			if ($userfile && (is_uploaded_file($userfile['tmp_name']) || (forge_get_config('use_ftpuploads') && $ftp_filename))) {
 				//
 				//	Create a new FRSRelease in the db
 				//
@@ -242,7 +242,7 @@
 		<?php echo _('NOTE: In some browsers you must select the file in the file-upload dialog and click "OK". Double-clicking doesn\'t register the file.')?>
 		</span><br />
 		<?php echo _('Upload a new file') ?>: <input type="file" name="userfile"  size="30" />
-		<?php if ($sys_use_ftpuploads) {
+		<?php if (forge_get_config('use_ftpuploads')) {
 
 			echo '<p>';
 			printf(_('Alternatively, you can use FTP to upload a new file at %1$s'), $sys_ftp_upload_host).'<br />';

Modified: trunk/gforge/www/frs/include/frs_utils.php
===================================================================
--- trunk/gforge/www/frs/include/frs_utils.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/frs/include/frs_utils.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -64,12 +64,12 @@
 }
 
 function frs_header($params) {
-	global $group_id,$HTML,$sys_use_frs;
+	global $group_id,$HTML;
 
 	/*
 		Does this site use FRS?
 	*/
-	if (!$sys_use_frs) {
+	if (!forge_get_config('use_frs')) {
 		exit_disabled();
 	}
 

Modified: trunk/gforge/www/include/features_boxes.php
===================================================================
--- trunk/gforge/www/include/features_boxes.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/include/features_boxes.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -12,7 +12,7 @@
 require_once $gfcommon.'include/Stats.class.php';
 
 function show_features_boxes() {
-	GLOBAL $HTML,$sys_use_ratings,$sys_use_frs,$sys_use_project_tags;
+	GLOBAL $HTML, $sys_use_project_tags;
 	
 	plugin_hook ("features_boxes_top", array());
 	$return = '<h2 class="skip">' . _('Features Boxes') . '</h2>';
@@ -25,11 +25,11 @@
 		$return .= $HTML->boxTop(sprintf(_('%1$s Statistics'), forge_get_config ('forge_name')), 'Forge_Statistics');
 	}
 	$return .= show_sitestats();
-	if ($sys_use_frs) {
+	if (forge_get_config('use_frs')) {
 		$return .= $HTML->boxMiddle(_('Top Project Downloads'), 'Top_Projects_Downloads');
 		$return .= show_top_downloads();
 	}
-	if ($sys_use_ratings) {
+	if (forge_get_config('use_ratings')) {
 		$return .= $HTML->boxMiddle(_('Highest Ranked Users'), 'Highest_Ranked_Users');
 		$return .= show_highest_ranked_users();
 	}
@@ -139,15 +139,15 @@
 }
 
 function show_sitestats() {
-	global $sys_use_trove;
+
 	$gforge = new FusionForge();
 	$return = '<p>';
 	$return .= _('Hosted Projects').': ';
-	if ($sys_use_trove) {
+	if (forge_get_config('use_trove')) {
 		$return .= '<a href="softwaremap/full_list.php">';
 	}
 	$return .= '<strong>'.number_format($gforge->getNumberOfPublicHostedProjects()).'</strong>';
-	if ($sys_use_trove) {
+	if (forge_get_config('use_trove')) {
 		$return .= '</a>';
 	}
 	$return .= "</p><p>";

Modified: trunk/gforge/www/include/project_home.php
===================================================================
--- trunk/gforge/www/include/project_home.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/include/project_home.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -96,7 +96,7 @@
 	}
 }
 
-if($GLOBALS['sys_use_trove']) {
+if(forge_get_config('use_trove')) {
 	print "<br />\n";
 	print stripslashes(trove_getcatlisting($group_id,0,1,1));
 }
@@ -119,13 +119,13 @@
 	}
 	print '<br />'.sprintf (_('Activity Ranking: %d'), $actv_res) ;
 	print '<br />'.sprintf(_('View project <a href="%1$s" >Statistics</a>'),util_make_url ('/project/stats/?group_id='.$group_id));
-	if ( ($project->usesTracker() && $GLOBALS['sys_use_tracker']) || ($project->usesPm() && $GLOBALS['sys_use_pm']) ) {
+	if ( ($project->usesTracker() && forge_get_config('use_tracker')) || ($project->usesPm() && forge_get_config('use_pm')) ) {
 		print sprintf(_(' or <a href="%1$s">Activity</a>'),util_make_url ('/project/report/?group_id='.$group_id));
 	}
 	print '<br />'.sprintf(_('View list of <a href="%1$s">RSS feeds</a> available for this project.'), util_make_url ('/export/rss_project.php?group_id='.$group_id)). '&nbsp;' . html_image('ic/rss.png',16,16,array());
 }
 
-if($GLOBALS['sys_use_people']) {
+if(forge_get_config('use_people')) {
 	$jobs_res = db_query_params ('SELECT name 
 					FROM people_job,people_job_category 
 					WHERE people_job.category_id=people_job_category.category_id 

Modified: trunk/gforge/www/include/user_home.php
===================================================================
--- trunk/gforge/www/include/user_home.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/include/user_home.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -39,7 +39,7 @@
 //echo '</div>';
 	}
 ?>
-		</strong><?php if($GLOBALS['sys_use_people']) { ?>( <?php echo util_make_link ('/people/viewprofile.php?user_id='.$user_id,'<strong>'._('Skills Profile').'</strong>'); ?> )<?php } ?>
+		</strong><?php if(forge_get_config('use_people')) { ?>( <?php echo util_make_link ('/people/viewprofile.php?user_id='.$user_id,'<strong>'._('Skills Profile').'</strong>'); ?> )<?php } ?>
 	</td>
 </tr>
 
@@ -124,7 +124,7 @@
 </table>
 
 	<?php
-	if ($sys_use_ratings) {
+	if (forge_get_config('use_ratings')) {
 		echo $HTML->boxMiddle(_('Peer Rating'), _('Peer Rating'));
         echo '<table class="my-layout-table" id="user-profile-rating">';
 		if ($user->usesRatings()) {
@@ -227,7 +227,7 @@
 echo "</div>\n"; // end of about=""
 
 $me = session_get_user(); 
-if ($sys_use_ratings) {
+if (forge_get_config('use_ratings')) {
 if ($user->usesRatings() && (!$me || $me->usesRatings())) { 
 	printf(_('<p>If you are familiar with this user, please take a moment to rate him/her on the following criteria. Keep in mind, that your rating will be visible to the user and others.</p><p>The %1$s Peer Rating system is based on concepts from <a href="http://www.advogato.com/">Advogato.</a> The system has been re-implemented and expanded in a few ways.</p>'), forge_get_config ('forge_name'));
 ?>

Modified: trunk/gforge/www/my/index.php
===================================================================
--- trunk/gforge/www/my/index.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/my/index.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -41,7 +41,7 @@
 
 <script type="text/javascript" src="<?php echo util_make_uri ('/tabber/tabber.js'); ?>"></script>
 <div id="tabber" class="tabber tabber-user-homepage" <?php plugin_hook('call_user_js');?>>
-<?php if ($GLOBALS['sys_use_tracker']) { ?>
+<?php if (forge_get_config('use_tracker')) { ?>
 <div class="tabbertab" 
 title="<?php echo _('Assigned Artifacts'); ?>">
 	<?php
@@ -83,7 +83,7 @@
 ?>
 </div>
 <?php } ?>
-<?php if ($GLOBALS['sys_use_pm']) { ?>
+<?php if (forge_get_config('use_pm')) { ?>
 <div class="tabbertab" 
 title="<?php echo _('Assigned Tasks'); ?>">
 <?php
@@ -137,7 +137,7 @@
 ?>
 </div>
 <?php } ?>
-<?php if ($GLOBALS['sys_use_tracker']) { ?>
+<?php if (forge_get_config('use_tracker')) { ?>
 <div class="tabbertab" 
 title="<?php echo _('Submitted Artifacts'); ?>">
 <?php
@@ -173,13 +173,13 @@
 ?>
 </div>
 <?php } ?>
-<?php if ($GLOBALS['sys_use_forum'] || $GLOBALS['sys_use_frs'] || $GLOBALS['sys_use_tracker']) { ?>
+<?php if (forge_get_config('use_forum') || forge_get_config('use_frs') || forge_get_config('use_tracker')) { ?>
 <div class="tabbertab" title="<?php echo _('Monitored Items'); ?>" >
 <?php
 	/*
 		Trackers that are actively monitored
 	*/
-	if ($GLOBALS['sys_use_tracker']) {
+	if (forge_get_config('use_tracker')) {
 		$last_group=0;
 
 		$display_col=array('summary'=>1,
@@ -266,7 +266,7 @@
 	/*
 		Forums that are actively monitored
 	*/
-	if ($GLOBALS['sys_use_forum']) {
+	if (forge_get_config('use_forum')) {
 		$last_group=0;
 		$order_name_arr=array();
 		$order_name_arr[]=_('Remove');
@@ -297,7 +297,7 @@
 	/*
 		Filemodules that are actively monitored
 	*/
-	if ($GLOBALS['sys_use_frs']) {
+	if (forge_get_config('use_frs')) {
 		$last_group=0;
 		$order_name_arr=array();
 		$order_name_arr[]=_('Remove');

Modified: trunk/gforge/www/news/news_utils.php
===================================================================
--- trunk/gforge/www/news/news_utils.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/news/news_utils.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -29,9 +29,9 @@
 */
 
 function news_header($params) {
-	global $HTML,$group_id,$news_name,$news_id,$sys_news_group,$sys_use_news;
+	global $HTML,$group_id,$news_name,$news_id,$sys_news_group;
 
-	if (!$sys_use_news) {
+	if (!forge_get_config('use_news')) {
 		exit_disabled();
 	}
 

Modified: trunk/gforge/www/people/admin/index.php
===================================================================
--- trunk/gforge/www/people/admin/index.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/people/admin/index.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -27,7 +27,7 @@
 require_once $gfwww.'include/pre.php';
 require_once $gfwww.'people/people_utils.php';
 
-if (!$sys_use_people) {
+if (!forge_get_config('use_people')) {
 	exit_disabled();
 }
 

Modified: trunk/gforge/www/people/createjob.php
===================================================================
--- trunk/gforge/www/people/createjob.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/people/createjob.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -28,7 +28,7 @@
 require_once $gfwww.'people/people_utils.php';
 require_once $gfwww.'project/admin/project_admin_utils.php';
 
-if (!$sys_use_people) {
+if (!forge_get_config('use_people')) {
 	exit_disabled();
 }
 

Modified: trunk/gforge/www/people/editjob.php
===================================================================
--- trunk/gforge/www/people/editjob.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/people/editjob.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -27,7 +27,7 @@
 require_once $gfwww.'include/pre.php';
 require_once $gfwww.'people/people_utils.php';
 
-if (!$sys_use_people) {
+if (!forge_get_config('use_people')) {
 	exit_disabled();
 }
 

Modified: trunk/gforge/www/people/editprofile.php
===================================================================
--- trunk/gforge/www/people/editprofile.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/people/editprofile.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -13,7 +13,7 @@
 require_once $gfwww.'people/people_utils.php';
 require_once $gfwww.'people/skills_utils.php';
 
-if (!$sys_use_people) {
+if (!forge_get_config('use_people')) {
 	exit_disabled();
 }
 

Modified: trunk/gforge/www/people/helpwanted-latest.php
===================================================================
--- trunk/gforge/www/people/helpwanted-latest.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/people/helpwanted-latest.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -27,7 +27,7 @@
 require_once $gfwww.'include/pre.php';
 require_once $gfwww.'people/people_utils.php';
 
-if (!$sys_use_people) {
+if (!forge_get_config('use_people')) {
 	exit_disabled();
 }
 

Modified: trunk/gforge/www/people/index.php
===================================================================
--- trunk/gforge/www/people/index.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/people/index.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -28,7 +28,7 @@
 require_once $gfwww.'people/people_utils.php';
 require_once $gfwww.'project/admin/project_admin_utils.php';
 
-if (!$sys_use_people) {
+if (!forge_get_config('use_people')) {
 	exit_disabled();
 }
 

Modified: trunk/gforge/www/people/viewjob.php
===================================================================
--- trunk/gforge/www/people/viewjob.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/people/viewjob.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -27,7 +27,7 @@
 require_once $gfwww.'include/pre.php';
 require_once $gfwww.'people/people_utils.php';
 
-if (!$sys_use_people) {
+if (!forge_get_config('use_people')) {
 	exit_disabled();
 }
 

Modified: trunk/gforge/www/people/viewprofile.php
===================================================================
--- trunk/gforge/www/people/viewprofile.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/people/viewprofile.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -13,7 +13,7 @@
 require_once $gfwww.'people/people_utils.php';
 require_once $gfwww.'people/skills_utils.php';
 
-if (!$sys_use_people) {
+if (!forge_get_config('use_people')) {
 	exit_disabled();
 }
 

Modified: trunk/gforge/www/pm/include/ProjectGroupHTML.class.php
===================================================================
--- trunk/gforge/www/pm/include/ProjectGroupHTML.class.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/pm/include/ProjectGroupHTML.class.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -19,9 +19,9 @@
 
 function pm_header($params) {
 	// XXX ogi: What to do with these?
-	global $group_id,$is_pm_page,$words,$group_project_id,$HTML,$order,$pg,$sys_use_pm;
+	global $group_id,$is_pm_page,$words,$group_project_id,$HTML,$order,$pg;
 
-	if (!$sys_use_pm) {
+	if (!forge_get_config('use_pm')) {
 		exit_disabled();
 	}
 

Modified: trunk/gforge/www/project/admin/database.php
===================================================================
--- trunk/gforge/www/project/admin/database.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/project/admin/database.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -33,7 +33,7 @@
 require_once $gfwww.'include/pre.php';
 require_once $gfwww.'project/admin/project_admin_utils.php';
 
-if (!$sys_use_project_database) {
+if (!forge_get_config('use_project_database')) {
 	exit_disabled();
 }
 

Modified: trunk/gforge/www/project/admin/editgroupinfo.php
===================================================================
--- trunk/gforge/www/project/admin/editgroupinfo.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/project/admin/editgroupinfo.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -191,7 +191,7 @@
 
 <table>
 <?php
-if($sys_use_mail) {
+if(forge_get_config('use_mail')) {
 ?>
 <tr>
 <td>
@@ -204,7 +204,7 @@
 <?php
 } 
 
-if($sys_use_survey) {
+if(forge_get_config('use_survey')) {
 ?>
 <tr>
 <td>
@@ -217,7 +217,7 @@
 <?php
 }
 
-if($sys_use_forum) {
+if(forge_get_config('use_forum')) {
 ?>
 <tr>
 <td>
@@ -230,7 +230,7 @@
 <?php
 }
 
-if($sys_use_pm) {
+if(forge_get_config('use_pm')) {
 ?>
 <tr>
 <td>
@@ -243,7 +243,7 @@
 <?php
 }
 
-if($sys_use_scm) {
+if(forge_get_config('use_scm')) {
 ?>
 <tr>
 <td>
@@ -256,7 +256,7 @@
 <?php
 }
 
-if($sys_use_news) {
+if(forge_get_config('use_news')) {
 ?>
 <tr>
 <td>
@@ -269,7 +269,7 @@
 <?php
 }
 
-if($sys_use_docman) {
+if(forge_get_config('use_docman')) {
 ?>
 <tr>
 <td>
@@ -282,7 +282,7 @@
 <?php
 }
 
-if($sys_use_ftp) {
+if(forge_get_config('use_ftp')) {
 ?>
 <tr>
 <td>
@@ -295,7 +295,7 @@
 <?php
 }
 
-if($sys_use_tracker) {
+if(forge_get_config('use_tracker')) {
 ?>
 <tr>
 <td>
@@ -308,7 +308,7 @@
 <?php
 }
 
-if($sys_use_frs) {
+if(forge_get_config('use_frs')) {
 ?>
 <tr>
 <td>
@@ -335,7 +335,7 @@
 
 </table>
 <?php
-	if ($sys_use_docman) {
+	if (forge_get_config('use_docman')) {
 ?>
 <p>
 <?php echo _('If you wish, you can provide default email addresses to which new submissions will be sent') ?>.<br />

Modified: trunk/gforge/www/project/admin/editimages.php
===================================================================
--- trunk/gforge/www/project/admin/editimages.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/project/admin/editimages.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -31,7 +31,7 @@
 require_once $gfwww.'include/pre.php';
 require_once $gfwww.'project/admin/project_admin_utils.php';
 
-if (!$sys_use_project_multimedia) {
+if (!forge_get_config('use_project_multimedia')) {
 	exit_disabled();
 }
 

Modified: trunk/gforge/www/project/admin/index.php
===================================================================
--- trunk/gforge/www/project/admin/index.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/project/admin/index.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -69,8 +69,8 @@
 
 
 <?php
-	global $sys_use_shell;
-	if ($sys_use_shell) {
+
+	if (forge_get_config('use_shell')) {
 ?> 
 <p><?php echo _('Group shell (SSH) server:&nbsp;') ?><strong><?php echo $group->getUnixName().'.'.forge_get_config('web_host'); ?></strong></p>
 <p><?php echo _('Group directory on shell server:&nbsp;') ?><br/><strong><?php echo account_group_homedir($group->getUnixName()); ?></strong></p>
@@ -190,61 +190,61 @@
 ?>
 
 <?php
-if($sys_use_mail) {
+if(forge_get_config('use_mail')) {
 ?>
 <input type="hidden" name="use_mail" value="<?php echo ($group->usesMail() ? '1' : '0'); ?>" />
 <?php
 } 
 
-if($sys_use_survey) {
+if(forge_get_config('use_survey')) {
 ?>
 <input type="hidden" name="use_survey" value="<?php echo ($group->usesSurvey() ? '1' : '0'); ?>" />
 <?php
 }
 
-if($sys_use_forum) {
+if(forge_get_config('use_forum')) {
 ?>
 <input type="hidden" name="use_forum" value="<?php echo ($group->usesForum() ? '1' : '0'); ?>" />
 <?php
 }
 
-if($sys_use_pm) {
+if(forge_get_config('use_pm')) {
 ?>
 <input type="hidden" name="use_pm" value="<?php echo ($group->usesPM() ? '1' : '0'); ?>" />
 <?php
 }
 
-if($sys_use_scm) {
+if(forge_get_config('use_scm')) {
 ?>
 <input type="hidden" name="use_scm" value="<?php echo ($group->usesSCM() ? '1' : '0'); ?>" />
 <?php
 }
 
-if($sys_use_news) {
+if(forge_get_config('use_news')) {
 ?>
 <input type="hidden" name="use_news" value="<?php echo ($group->usesNews() ? '1' : '0'); ?>" />
 <?php
 }
 
-if($sys_use_docman) {
+if(forge_get_config('use_docman')) {
 ?>
 <input type="hidden" name="use_docman" value="<?php echo ($group->usesDocman() ? '1' : '0'); ?>" />
 <?php
 }
 
-if($sys_use_ftp) {
+if(forge_get_config('use_ftp')) {
 ?>
 <input type="hidden" name="use_ftp" value="<?php echo ($group->usesFTP() ? '1' : '0'); ?>" />
 <?php
 }
 
-if($sys_use_tracker) {
+if(forge_get_config('use_tracker')) {
 ?>
 <input type="hidden" name="use_tracker" value="<?php echo ($group->usesTracker() ? '1' : '0'); ?>" />
 <?php
 }
 
-if($sys_use_frs) {
+if(forge_get_config('use_frs')) {
 ?>
 <input type="hidden" name="use_frs" value="<?php echo ($group->usesFRS() ? '1' : '0'); ?>" />
 <?php } ?>

Modified: trunk/gforge/www/project/admin/project_admin_utils.php
===================================================================
--- trunk/gforge/www/project/admin/project_admin_utils.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/project/admin/project_admin_utils.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -62,17 +62,17 @@
 	$labels[] = _('Users');
 	$labels[] = _('Tools');
 	$labels[] = _('Project History');
-	if($GLOBALS['sys_use_people']) {
+	if(forge_get_config('use_people')) {
 		$labels[] = _('Post Jobs');
 		$labels[] = _('Edit Jobs');
 	}
-	if($GLOBALS['sys_use_project_multimedia']) {
+	if(forge_get_config('use_project_multimedia')) {
 		$labels[] = _('Edit Multimedia Data');
 	}
-	if($GLOBALS['sys_use_project_vhost']) {
+	if(forge_get_config('use_project_vhost')) {
 		$labels[] = _('VHOSTs');
 	}
-	if($GLOBALS['sys_use_project_database']) {
+	if(forge_get_config('use_project_database')) {
 		$labels[] = _('Database Admin');
 	}
 	if ($project->usesStats()) {
@@ -84,17 +84,17 @@
 	$links[] = '/project/admin/users.php?group_id='.$group_id;
 	$links[] = '/project/admin/tools.php?group_id='.$group_id;
 	$links[] = '/project/admin/history.php?group_id='.$group_id;
-	if($GLOBALS['sys_use_people']) {
+	if(forge_get_config('use_people')) {
 		$links[] = '/people/createjob.php?group_id='.$group_id;
 		$links[] = '/people/?group_id='.$group_id;
 	}
-	if($GLOBALS['sys_use_project_multimedia']) {
+	if(forge_get_config('use_project_multimedia')) {
 		$links[] = '/project/admin/editimages.php?group_id='.$group_id;
 	}
-	if($GLOBALS['sys_use_project_vhost']) {
+	if(forge_get_config('use_project_vhost')) {
 		$links[] = '/project/admin/vhost.php?group_id='.$group_id;
 	}
-	if($GLOBALS['sys_use_project_database']) {
+	if(forge_get_config('use_project_database')) {
 		$links[] = '/project/admin/database.php?group_id='.$group_id;
 	}
 	$links[] = '/project/stats/?group_id='.$group_id;

Modified: trunk/gforge/www/project/admin/tools.php
===================================================================
--- trunk/gforge/www/project/admin/tools.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/project/admin/tools.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -131,7 +131,7 @@
 
 <table>
 <?php
-if($sys_use_forum) {
+if(forge_get_config('use_forum')) {
 ?>
 <tr>
 <td>
@@ -144,7 +144,7 @@
 <?php
 }
 
-if($sys_use_tracker) {
+if(forge_get_config('use_tracker')) {
 ?>
 <tr>
 <td>
@@ -157,7 +157,7 @@
 <?php
 }
 
-if($sys_use_mail) {
+if(forge_get_config('use_mail')) {
 ?>
 <tr>
 <td>
@@ -170,7 +170,7 @@
 <?php
 } 
 
-if($sys_use_pm) {
+if(forge_get_config('use_pm')) {
 ?>
 <tr>
 <td>
@@ -183,7 +183,7 @@
 <?php
 }
 
-if($sys_use_docman) {
+if(forge_get_config('use_docman')) {
 ?>
 <tr>
 <td>
@@ -196,7 +196,7 @@
 <?php
 }
 
-if($sys_use_survey) {
+if(forge_get_config('use_survey')) {
 ?>
 <tr>
 <td>
@@ -209,7 +209,7 @@
 <?php
 }
 
-if($sys_use_news) {
+if(forge_get_config('use_news')) {
 ?>
 <tr>
 <td>
@@ -222,7 +222,7 @@
 <?php
 }
 
-if($sys_use_scm) {
+if(forge_get_config('use_scm')) {
 ?>
 <tr>
 <td>
@@ -235,7 +235,7 @@
 <?php
 }
 
-if($sys_use_frs) {
+if(forge_get_config('use_frs')) {
 ?>
 <tr>
 <td>
@@ -248,7 +248,7 @@
 <?php 
 } 
 
-if($sys_use_ftp) {
+if(forge_get_config('use_ftp')) {
 ?>
 <tr>
 <td>

Modified: trunk/gforge/www/project/admin/vhost.php
===================================================================
--- trunk/gforge/www/project/admin/vhost.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/project/admin/vhost.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -28,7 +28,7 @@
 require_once $gfwww.'include/pre.php';
 require_once $gfwww.'project/admin/project_admin_utils.php';
 
-if (!$sys_use_project_vhost) {
+if (!forge_get_config('use_project_vhost')) {
 	exit_disabled();
 }
 

Modified: trunk/gforge/www/project/memberlist.php
===================================================================
--- trunk/gforge/www/project/memberlist.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/project/memberlist.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -51,7 +51,7 @@
 $title_arr[]=_('Member');
 $title_arr[]=_('Username');
 $title_arr[]=_('Role/Position');
-if($GLOBALS['sys_use_people']) {
+if(forge_get_config('use_people')) {
 	$title_arr[]=_('Skills');
 }
 
@@ -93,7 +93,7 @@
         echo '</span>';*/
 	echo '<td align="center">'.util_make_link_u ($row_memb['user_name'],$row_memb['user_id'],$row_memb['user_name']).'</td>
 	<td align="center">'.$row_memb['role'].'</td>';
-	if($GLOBALS['sys_use_people']) {
+	if(forge_get_config('use_people')) {
 		echo '<td align="center">'.util_make_link ('/people/viewprofile.php?user_id='.$row_memb['user_id'],_('View')).'</td>';
 	}
 	print '</div>';

Modified: trunk/gforge/www/project/report/index.php
===================================================================
--- trunk/gforge/www/project/report/index.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/project/report/index.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -166,7 +166,7 @@
 			</td>
 			<td align="center">'.$row_memb['role'].'
 			</td>';
-	if($GLOBALS['sys_use_people']) {
+	if(forge_get_config('use_people')) {
 		echo '
 			<td align="center">'.util_make_link('/people/viewprofile.php?user_id='.$row_memb['user_id'],_('View')).'
 			</td>';

Modified: trunk/gforge/www/register/projectinfo.php
===================================================================
--- trunk/gforge/www/register/projectinfo.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/register/projectinfo.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -64,13 +64,13 @@
 	$is_public = getIntFromRequest('is_public');
 	$feedback = "";
 
-	if ($sys_use_scm && !$scm) {
+	if (forge_get_config('use_scm') && !$scm) {
 		form_release_key(getStringFromRequest("form_key"));
 		// $feedback .= _('Site has SCM enabled, but no SCM was chosen.');
 	} else {
 		$scm_host = '';
 		$plugin = false ;
-		if ($sys_use_scm && $scm && $scm != 'noscm') {
+		if (forge_get_config('use_scm') && $scm && $scm != 'noscm') {
 			$plugin = plugin_get_object($scm);
 			if ($plugin) {
 				$scm_host = $plugin->getDefaultServer();
@@ -93,7 +93,7 @@
 			$scm_host,
 			$is_public
 		);
-		if ($res && $sys_use_scm && $plugin) {
+		if ($res && forge_get_config('use_scm') && $plugin) {
 			$group->setUsesSCM (true) ;
 			$res = $group->setPluginUse ($scm, true);
 		} else {
@@ -192,7 +192,7 @@
 <?php
 	$SCMFactory = new SCMFactory() ;
 $scm_plugins=$SCMFactory->getSCMs() ;
-if ($sys_use_scm && count($scm_plugins) > 0) {	
+if (forge_get_config('use_scm') && count($scm_plugins) > 0) {	
 	$index++;
 	echo '<h3>'.$index.'. '._('Source Code').'</h3>';
 	echo _('<p>You can choose among different SCM for your project, but just one (or none at all). Please select the SCM system you want to use.</p>')."\n";

Modified: trunk/gforge/www/scm/admin/index.php
===================================================================
--- trunk/gforge/www/scm/admin/index.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/scm/admin/index.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -29,8 +29,8 @@
 require_once $gfwww.'scm/include/scm_utils.php';
 require_once $gfcommon.'scm/SCMFactory.class.php';
 
-global $sys_use_scm;
 
+
 $group_id = getIntFromRequest('group_id');
 
 // Check permissions

Modified: trunk/gforge/www/scm/include/scm_utils.php
===================================================================
--- trunk/gforge/www/scm/include/scm_utils.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/scm/include/scm_utils.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -25,8 +25,8 @@
  */
 
 function scm_header($params) {
-	global $HTML, $sys_use_scm;
-	if (!$sys_use_scm) {
+	global $HTML;
+	if (!forge_get_config('use_scm')) {
 		exit_disabled();
 	}
 

Modified: trunk/gforge/www/scm/viewvc.php
===================================================================
--- trunk/gforge/www/scm/viewvc.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/scm/viewvc.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -20,7 +20,7 @@
 require_once $gfwww.'scm/include/scm_utils.php';
 require_once $gfwww.'scm/include/viewvc_utils.php';
 
-if (!$sys_use_scm) {
+if (!forge_get_config('use_scm')) {
 	exit_disabled();
 }
 

Modified: trunk/gforge/www/search/include/SearchManager.class.php
===================================================================
--- trunk/gforge/www/search/include/SearchManager.class.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/search/include/SearchManager.class.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -134,7 +134,7 @@
 			SEARCH__TYPE_IS_PEOPLE,
 			new GFSearchEngine(SEARCH__TYPE_IS_PEOPLE, 'PeopleHtmlSearchRenderer', _('People'))
 		);
-		if ($GLOBALS['sys_use_people']) {
+		if (forge_get_config('use_people')) {
 			$this->addSearchEngine(
 				SEARCH__TYPE_IS_SKILL,
 				new GFSearchEngine(SEARCH__TYPE_IS_SKILL, 'SkillHtmlSearchRenderer', _('Skill'))

Modified: trunk/gforge/www/search/include/renderers/ProjectHtmlSearchRenderer.class.php
===================================================================
--- trunk/gforge/www/search/include/renderers/ProjectHtmlSearchRenderer.class.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/search/include/renderers/ProjectHtmlSearchRenderer.class.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -73,12 +73,12 @@
 	 * redirectToResult - redirect the user  directly to the result when there is only one matching result
 	 */
 	function redirectToResult() {
-		global $sys_use_fti;
+
 		
 		$project_name = $this->getResultId('unix_group_name');
 		$project_id = $this->getResultId('group_id');
 		
-		if ($sys_use_fti) {
+		if (forge_get_config('use_fti')) {
 			// If FTI is being used, the project name returned by the query will be "<b>projectname</b>", so
 			// we remove the HTML code (otherwise we'd get an error)
 			$project_name = str_replace('<b>', '', $project_name);

Modified: trunk/gforge/www/snippet/snippet_utils.php
===================================================================
--- trunk/gforge/www/snippet/snippet_utils.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/snippet/snippet_utils.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -94,9 +94,9 @@
 $SCRIPT_EXTENSION[16] = '.cs';
 
 function snippet_header($params) {
-	global $HTML, $sys_use_snippet;
+	global $HTML;
 
-	if (!$sys_use_snippet) {
+	if (!forge_get_config('use_snippet')) {
 		exit_disabled();
 	}
 

Modified: trunk/gforge/www/softwaremap/full_list.php
===================================================================
--- trunk/gforge/www/softwaremap/full_list.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/softwaremap/full_list.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -55,7 +55,7 @@
 	$subMenuUrl[] = '/softwaremap/tag_cloud.php';
 }
 
-if ($GLOBALS['sys_use_trove']) {
+if (forge_get_config('use_trove')) {
 	$subMenuTitle[] = _('Project Tree');
 	$subMenuUrl[] = '/softwaremap/trove_list.php';
 }

Modified: trunk/gforge/www/softwaremap/index.php
===================================================================
--- trunk/gforge/www/softwaremap/index.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/softwaremap/index.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -13,7 +13,7 @@
 require_once $gfwww.'include/pre.php';
 if ($GLOBALS['sys_use_project_tags']) {
 	header('Location: '.util_make_url('softwaremap/tag_cloud.php'));
-}elseif ($GLOBALS['sys_use_trove']){
+}elseif (forge_get_config('use_trove')){
 	header('Location: '.util_make_url('softwaremap/trove_list.php'));
 }else{
 header('Location: '.util_make_url('softwaremap/full_list.php'));

Modified: trunk/gforge/www/softwaremap/tag_cloud.php
===================================================================
--- trunk/gforge/www/softwaremap/tag_cloud.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/softwaremap/tag_cloud.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -60,7 +60,7 @@
 	$subMenuUrl[] = '/softwaremap/tag_cloud.php';
 }
 
-if ($GLOBALS['sys_use_trove']) {
+if (forge_get_config('use_trove')) {
 	$subMenuTitle[] = _('Project Tree');
 	$subMenuUrl[] = '/softwaremap/trove_list.php';
 }

Modified: trunk/gforge/www/softwaremap/trove_list.php
===================================================================
--- trunk/gforge/www/softwaremap/trove_list.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/softwaremap/trove_list.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -32,7 +32,7 @@
 
 require_once $gfwww.'include/trove.php';
 
-if (!$sys_use_trove) {
+if (!forge_get_config('use_trove')) {
 	exit_disabled();
 }
 
@@ -69,7 +69,7 @@
 	$subMenuUrl[] = '/softwaremap/tag_cloud.php';
 }
 
-if ($GLOBALS['sys_use_trove']) {
+if (forge_get_config('use_trove')) {
 	$subMenuTitle[] = _('Project Tree');
 	$subMenuUrl[] = '/softwaremap/trove_list.php';
 }

Modified: trunk/gforge/www/stats/site_stats_utils.php
===================================================================
--- trunk/gforge/www/stats/site_stats_utils.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/stats/site_stats_utils.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -227,19 +227,19 @@
 		<tr valign="top" align="right" class="tableheading">
 			<td><strong><?php echo _('Group Name'); ?></strong></td>
 			<td colspan="2"><strong><?php echo _('Page Views'); ?></strong></td>
-			<?php if ($GLOBALS['sys_use_frs']) { ?>
+			<?php if (forge_get_config('use_frs')) { ?>
 			<td><strong><?php echo _('Downloads'); ?></strong></td>
 			<?php } ?>
-			<?php if ($GLOBALS['sys_use_tracker']) { ?>
+			<?php if (forge_get_config('use_tracker')) { ?>
 			<td colspan="2"><strong><?php echo _('Bugs'); ?></strong></td>
 			<td colspan="2"><strong><?php echo _('Support'); ?></strong></td>
 			<td colspan="2"><strong><?php echo _('Patches'); ?></strong></td>
 			<td colspan="2"><strong><?php echo _('All Trkr'); ?></strong></td>
 			<?php } ?>
-			<?php if ($GLOBALS['sys_use_pm']) { ?>
+			<?php if (forge_get_config('use_pm')) { ?>
 			<td colspan="2"><strong><?php echo _('Tasks'); ?></strong></td>
 			<?php } ?>
-			<?php if ($GLOBALS['sys_use_scm']) { ?>
+			<?php if (forge_get_config('use_scm')) { ?>
 			<td colspan="3"><strong><?php echo _('SCM'); ?></strong></td>
 			<?php } ?>
 			<?php plugin_hook('stats_header_table'); ?>
@@ -262,10 +262,10 @@
 			<td>&nbsp;</td>
 			<td><a href="<?php echo $uri_string; ?>site_views"><?php echo _('Site'); ?></a></td>
 			<td><a href="<?php echo $uri_string; ?>subdomain_views"><?php echo _('Subdomain'); ?></a></td>
-			<?php if ($GLOBALS['sys_use_frs']) { ?>
+			<?php if (forge_get_config('use_frs')) { ?>
 			<td><a href="<?php echo $uri_string; ?>downloads"><?php echo _('Total'); ?></a></td>
 			<?php } ?>
-			<?php if ($GLOBALS['sys_use_tracker']) { ?>
+			<?php if (forge_get_config('use_tracker')) { ?>
 			<td><a href="<?php echo $uri_string; ?>bugs_opened"><?php echo _('Opened'); ?></a></td>
 			<td><a href="<?php echo $uri_string; ?>bugs_closed"><?php echo _('Closed'); ?></a></td>
 			<td><a href="<?php echo $uri_string; ?>support_opened"><?php echo _('Opened'); ?></a></td>
@@ -275,11 +275,11 @@
 			<td><a href="<?php echo $uri_string; ?>artifacts_opened"><?php echo _('Opened'); ?></a></td>
 			<td><a href="<?php echo $uri_string; ?>artifacts_closed"><?php echo _('Closed'); ?></a></td>
 			<?php } ?>
-			<?php if ($GLOBALS['sys_use_pm']) { ?>
+			<?php if (forge_get_config('use_pm')) { ?>
 			<td><a href="<?php echo $uri_string; ?>tasks_opened"><?php echo _('Opened'); ?></a></td>
 			<td><a href="<?php echo $uri_string; ?>tasks_closed"><?php echo _('Closed'); ?></a></td>
 			<?php } ?>
-			<?php if ($GLOBALS['sys_use_scm']) { ?>
+			<?php if (forge_get_config('use_scm')) { ?>
 			<td><a href="<?php echo $uri_string; ?>cvs_checkouts"><?php echo _('Checkouts'); ?></a></td>
 			<td><a href="<?php echo $uri_string; ?>cvs_commits"><?php echo _('Commits'); ?></a></td>
 			<td><a href="<?php echo $uri_string; ?>cvs_adds"><?php echo _('Adds'); ?></a></td>
@@ -294,10 +294,10 @@
 				. '<td>' . ($i + 1)." " . util_make_link ('/project/stats/?group_id='.$row["group_id"], $row["group_name"]) . '</td>'
 				. '<td>&nbsp;&nbsp;' . number_format( $row["site_views"],0 ) . '</td>'
 				. '<td>&nbsp;&nbsp;' . number_format( $row["subdomain_views"],0 ) . '</td>';
-			if ($GLOBALS['sys_use_frs']) {
+			if (forge_get_config('use_frs')) {
 				print '<td>&nbsp;&nbsp;' . number_format( $row["downloads"],0 ) . '</td>';
 			}
-			if ($GLOBALS['sys_use_tracker']) {
+			if (forge_get_config('use_tracker')) {
 				print '<td>&nbsp;&nbsp;' . number_format( $row["bugs_opened"],0 ) . '</td>'
 				. '<td>&nbsp;&nbsp;' . number_format( $row["bugs_closed"],0 ) . '</td>'
 				. '<td>&nbsp;&nbsp;' . number_format( $row["support_opened"],0 ) . '</td>'
@@ -307,11 +307,11 @@
 				. '<td>&nbsp;&nbsp;' . number_format( $row["artifacts_opened"],0 ) . '</td>'
 				. '<td>&nbsp;&nbsp;' . number_format( $row["artifacts_closed"],0 ) . '</td>';
 			}
-			if ($GLOBALS['sys_use_pm']) {
+			if (forge_get_config('use_pm')) {
 				print '<td>&nbsp;&nbsp;' . number_format( $row["tasks_opened"],0 ) . '</td>'
 				. '<td>&nbsp;&nbsp;' . number_format( $row["tasks_opened"],0 ) . '</td>';
 			}
-			if ($GLOBALS['sys_use_scm']) {
+			if (forge_get_config('use_scm')) {
 				print '<td>&nbsp;&nbsp;' . number_format( $row["cvs_checkouts"],0 ) . '</td>'
 				. '<td>&nbsp;&nbsp;' . number_format( $row["cvs_commits"],0 ) . '</td>'
 				. '<td>&nbsp;&nbsp;' . number_format( $row["cvs_adds"],0 ) . '</td>';

Modified: trunk/gforge/www/survey/include/SurveyHTML.class.php
===================================================================
--- trunk/gforge/www/survey/include/SurveyHTML.class.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/survey/include/SurveyHTML.class.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -31,9 +31,9 @@
 	 * Show survey header 
 	 */
 	function header($params) {
-		global $group_id,$is_admin_page,$HTML,$sys_use_survey;
+		global $group_id,$is_admin_page,$HTML;
 
-		if (!$sys_use_survey) {
+		if (!forge_get_config('use_survey')) {
 			exit_disabled();
 		}
 		

Modified: trunk/gforge/www/survey/survey_utils.php
===================================================================
--- trunk/gforge/www/survey/survey_utils.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/survey/survey_utils.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -30,9 +30,9 @@
 */
 
 function survey_header($params) {
-	global $group_id,$is_admin_page,$HTML,$sys_use_survey;
+	global $group_id,$is_admin_page,$HTML;
 
-	if (!$sys_use_survey) {
+	if (!forge_get_config('use_survey')) {
 		exit_disabled();
 	}
 

Modified: trunk/gforge/www/themes/gforge-simple-theme/Theme.class.php
===================================================================
--- trunk/gforge/www/themes/gforge-simple-theme/Theme.class.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/themes/gforge-simple-theme/Theme.class.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -338,8 +338,8 @@
 
 
 function outerTabs($params) {
-	global $sys_use_trove,$sys_use_snippet,$sys_use_people;
 
+
 	$selected=0;
 	$TABS_DIRS[]=util_make_url ('/') ;
 	$TABS_IDS[]='home';
@@ -352,7 +352,7 @@
 		$selected=count($TABS_DIRS)-1;
 	}
 
-	if ($sys_use_trove) {
+	if (forge_get_config('use_trove')) {
 		$TABS_IDS[]='softwaremap';
 		$TABS_DIRS[]=util_make_url ('/softwaremap/') ;
 		$TABS_TITLES[]=_('Project&nbsp;Tree');
@@ -360,7 +360,7 @@
 			$selected=count($TABS_DIRS)-1;
 		}
 	}
-	if ($sys_use_snippet) {
+	if (forge_get_config('use_snippet')) {
 		$TABS_IDS[]='snippet';
 		$TABS_DIRS[]=util_make_url ('/snippet/') ;
 		$TABS_TITLES[]=_('Code&nbsp;Snippets');
@@ -368,7 +368,7 @@
 			$selected=count($TABS_DIRS)-1;
 		}
 	}
-	if ($sys_use_people) {
+	if (forge_get_config('use_people')) {
 		$TABS_IDS[]='people';
 		$TABS_DIRS[]=util_make_url ('/people/') ;
 		$TABS_TITLES[]=_('Project&nbsp;Openings');

Modified: trunk/gforge/www/themes/lite/Theme.class.php
===================================================================
--- trunk/gforge/www/themes/lite/Theme.class.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/themes/lite/Theme.class.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -251,28 +251,28 @@
 	}
 
        function mainMenu($params) {
-		global $sys_use_trove,$sys_use_snippet,$sys_use_people;
+
 		
 		$TABS_DIRS[]='/';
 		$TABS_DIRS[]='/my/';
-		if ($sys_use_trove) {
+		if (forge_get_config('use_trove')) {
 		        $TABS_DIRS[]='/softwaremap/';
 		}
-		if ($sys_use_snippet) {
+		if (forge_get_config('use_snippet')) {
 		        $TABS_DIRS[]='/snippet/';
 		}
-		if ($sys_use_people) {
+		if (forge_get_config('use_people')) {
 		        $TABS_DIRS[]='/people/';
 		}
 		$TABS_TITLES[]=_('Home');
 		$TABS_TITLES[]=_('My&nbsp;Page');
-		if ($sys_use_trove) {
+		if (forge_get_config('use_trove')) {
 		        $TABS_TITLES[]=_('Projects');
 		}
-		if ($sys_use_snippet) {
+		if (forge_get_config('use_snippet')) {
 		        $TABS_TITLES[]=_('Code&nbsp;Snippets');
 		}
-		if ($sys_use_people) {
+		if (forge_get_config('use_people')) {
 		        $TABS_TITLES[]=_('Project&nbsp;Openings');
 		}
 		

Modified: trunk/gforge/www/tracker/include/ArtifactTypeHtml.class.php
===================================================================
--- trunk/gforge/www/tracker/include/ArtifactTypeHtml.class.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/tracker/include/ArtifactTypeHtml.class.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -29,8 +29,8 @@
 	}
 
 	function header($params) {
-		global $HTML, $sys_use_tracker;
-		if (!$sys_use_tracker) {
+		global $HTML;
+		if (!forge_get_config('use_tracker')) {
 			exit_disabled();
 		}
 		$group_id= $this->Group->getID();

Modified: trunk/gforge/www/tracker/index.php
===================================================================
--- trunk/gforge/www/tracker/index.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/tracker/index.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -36,7 +36,7 @@
 require_once $gfcommon.'tracker/ArtifactCanned.class.php';
 require_once $gfcommon.'tracker/ArtifactTypeFactory.class.php';
 
-if (!$sys_use_tracker) {
+if (!forge_get_config('use_tracker')) {
 	exit_disabled();
 }
 

Modified: trunk/gforge/www/trove/index.php
===================================================================
--- trunk/gforge/www/trove/index.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/gforge/www/trove/index.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -18,7 +18,7 @@
 require_once('TroveCategoryFactory.class.php');
 require_once('include/utils.php');
 
-if (!$sys_use_trove) {
+if (!forge_get_config('use_trove')) {
 	exit_disabled();
 }
 

Modified: trunk/tests/code/deprecations/DeprecationsTest.php
===================================================================
--- trunk/tests/code/deprecations/DeprecationsTest.php	2010-04-20 16:52:17 UTC (rev 9547)
+++ trunk/tests/code/deprecations/DeprecationsTest.php	2010-04-20 16:56:41 UTC (rev 9548)
@@ -39,7 +39,30 @@
 			       'sys_theme',
 			       'sys_lang',
 			       'sys_default_timezone',
-			       'sys_default_country_code') ;
+			       'sys_default_country_code',
+			       'sys_use_scm',
+			       'sys_use_tracker',
+			       'sys_use_forum',
+			       'sys_use_pm',
+			       'sys_use_docman',
+			       'sys_use_news',
+			       'sys_use_mail',
+			       'sys_use_survey',
+			       'sys_use_frs',
+			       'sys_use_fti',
+			       'sys_use_ftp',
+			       'sys_use_trove',
+			       'sys_use_snippet',
+			       'sys_use_ssl',
+			       'sys_use_people',
+			       'sys_use_shell',
+			       'sys_use_ratings',
+			       'sys_use_ftpuploads',
+			       'sys_use_gateways',
+			       'sys_use_project_vhost',
+			       'sys_use_project_database',
+			       'sys_use_project_multimedia',
+			) ;
 
 		$pattern = implode ('|', $vars) ;
 		




More information about the Fusionforge-commits mailing list