Changeset 13886
- Timestamp:
- 12/14/07 10:14:45 (9 months ago)
- Files:
-
- trunk/midcom/midcom.helper.filesync/config/config.inc (modified) (1 diff)
- trunk/midcom/midcom.helper.filesync/config/manifest.inc.back (added)
- trunk/midcom/midcom.helper.filesync/exec/export_snippets.php (added)
- trunk/midcom/midcom.helper.filesync/exporter/snippet.php (added)
- trunk/midcom/midcom.helper.filesync/locale/default.en.txt (modified) (1 diff)
- trunk/midcom/midcom.helper.filesync/midcom/interfaces.php (modified) (1 diff)
- trunk/midcom/midcom.helper.filesync/style/index.php (deleted)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/midcom/midcom.helper.filesync/config/config.inc
r13816 r13886 1 1 'vcs_git_enable' => false, 2 'filesync_path' => '/var/spool/midgard/filesync', trunk/midcom/midcom.helper.filesync/locale/default.en.txt
r13816 r13886 3 3 ---LANGUAGE en 4 4 5 ---STRING This is the index6 This is the index 5 ---STRING midcom.helper.filesync 6 Site filesystem synchronizer 7 7 ---STRINGEND 8 9 ---STRING You can change this to something else :-)10 You can change this to something else :-)11 ---STRINGEND12 trunk/midcom/midcom.helper.filesync/midcom/interfaces.php
r13816 r13886 34 34 } 35 35 36 function prepare_dir($prefix) 37 { 38 $path = $this->_config->get('filesync_path'); 39 if (!file_exists($path)) 40 { 41 mkdir($path); 42 } 43 44 if (substr($path, -1) != '/') 45 { 46 $path .= '/'; 47 } 48 49 $module_dir = "{$path}snippets"; 50 if (!file_exists($module_dir)) 51 { 52 mkdir($module_dir); 53 } 54 55 return "{$module_dir}/"; 56 } 36 57 } 37 58 ?>
