From 0db4dd70b35ef049c8096432d3f933b3a506c6f3 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Tue, 27 Jul 2010 01:37:22 +0000 Subject: [PATCH] enhanced svn_base_url to support multiple URLs --- codepot/etc/codepot.ini.in | 11 +++++++---- codepot/src/codepot/views/project_home.php | 14 +++++++++++++- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/codepot/etc/codepot.ini.in b/codepot/etc/codepot.ini.in index 86f78fb2..bfac2965 100644 --- a/codepot/etc/codepot.ini.in +++ b/codepot/etc/codepot.ini.in @@ -59,11 +59,13 @@ https_url = "https://${SERVER_NAME}${REQUEST_URI}" api_base_url = "http://127.0.0.1" ;------------------------------------------------------------------------------ -; Subversion base URL +; Command-separated list of subversion base URLs ;------------------------------------------------------------------------------ ; This URL depends on the webdav configuration for subversion repository. ; If you have your repository enabled with SSL under /svn, you can set this to ; https://${SERVER_NAME}/svn. +; You may specify multiple URLs separated with a comma as shown below: +; "http://${SERVER_NAME}/svn, https://${SERVER_NAME}/svn" ;------------------------------------------------------------------------------ svn_base_url = "http://${SERVER_NAME}:${SERVER_PORT}/svn" @@ -75,12 +77,13 @@ login_model = "LdapLoginModel" ;------------------------------------------------------------------------------ ; Comma separated list of system administrator IDs ;------------------------------------------------------------------------------ -; sysadmin_userids = tom, dick, jane +; sysadmin_userids = "tom, dick, jane" ;------------------------------------------------------------------------------ -sysadmin_userids = +sysadmin_userids = "" ;------------------------------------------------------------------------------ -; Maximum file upload size in Kbytes +; Maximum file upload size in Kbytes. You may have to adjust PHP settings +; for a large value to work. ;------------------------------------------------------------------------------ max_upload_size = "10000" diff --git a/codepot/src/codepot/views/project_home.php b/codepot/src/codepot/views/project_home.php index 68f4015c..2f2960f4 100644 --- a/codepot/src/codepot/views/project_home.php +++ b/codepot/src/codepot/views/project_home.php @@ -87,7 +87,19 @@ $this->load->view (
lang->line('Repository')?>
-converter->expand(CODEPOT_SVN_BASE_URL, $_SERVER) . '/' . $project->id) ?> +