--- drupal-6.20/modules/system/system.admin.inc	2010-09-06 12:49:14.000000000 +0200
+++ ../coagul/coagul_final/modules/system/system.admin.inc	2011-02-27 10:15:52.000000000 +0100
@@ -1420,10 +1420,19 @@
     '#type' => 'radios',
     '#title' => t('Download method'),
     '#default_value' => variable_get('file_downloads', FILE_DOWNLOADS_PUBLIC),
-    '#options' => array(FILE_DOWNLOADS_PUBLIC => t('Public - files are available using HTTP directly.'), FILE_DOWNLOADS_PRIVATE => t('Private - files are transferred by Drupal.')),
+    '#options' => array(
+              FILE_DOWNLOADS_PUBLIC => t('Public - files are available using HTTP directly.'),
+              FILE_DOWNLOADS_PRIVATE => t('Private - files are transferred by Drupal.'),
+              FILE_DOWNLOADS_PUBLIC_REPOSITORY => t('Public repository - files are served using a specific URL prefix'),
+      ),
     '#description' => t('Choose the <em>Public download</em> method unless you wish to enforce fine-grained access controls over file downloads. Changing the download method will modify all download paths and may cause unexpected problems on an existing site.')
   );
-
+    $form['files_url_prefix'] = array(
+    '#type' => 'textfield',
+    '#title' => t('URL prefix for files'),
+    '#default_value' => variable_get('files_url_prefix', 'http://your.repository.server/some/directory/'),
+    '#description' => t('URL prefix used when generating links to files. Note that this settings will be used only if the download method is set to "Public repository".'),
+  );
   return system_settings_form($form);
 }
 
