1<?php
2if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
3if(!defined('DW_COMMITS_DB')) define('DW_COMMITS_DB',DOKU_INC.'lib/plugins/dwcommits/db/');
4
5$dwc_dates = array('11-11-2010');
6$dwc_gits = array(DW_COMMITS_DB . 'git');
7
8if(file_exists(DOKU_PLUGIN . 'dwcommits/conf/default.local.ini')) {
9
10 $ini_array = parse_ini_file(DOKU_PLUGIN . 'dwcommits/conf/default.local.ini', true);
11 foreach ($ini_array as $name=>$a) {
12      if($name == 'dates')$dwc_dates = array_merge($dwc_dates, $a);
13      if($name == 'other_gits')$dwc_gits = array_merge($dwc_gits, $a);
14      if($name == 'dwc_gits') {
15           foreach($a as $git_dir) {
16            $dwc_gits[] = DW_COMMITS_DB . $git_dir;
17           }
18      }
19 }
20}
21$meta['default_date']  = array('multichoice','_choices' => $dwc_dates);
22$meta['default_git'] = array('multichoice','_choices' => $dwc_gits);
23$meta['git_binary'] = array('string');
24$meta['auto_id'] = array('string');
25
26