Exemplo n.º 1
0
  </div>
<div class="form-horizontal settings-form">
  <div class="form-group dropdown-form-group">
    <label for="uploader" class="control-label col-sm-4"><?php 
echo getString('selectUploaders');
?>
:</label>
	<div class="col-sm-8">
		<select class="form-control" id="uploader" name="uploader[]" multiple>
			<?php 
echo $userOptions;
?>
		</select>
	</div>
	</div>
	<div class="form-group">
    <div class="col-sm-12">
      <button type="search" class="btn button" name="search"><?php 
echo getString('search');
?>
</button>
    </div>
    </div>
</form>
<h1 class="tab-header col-sm-12"><?php 
echo getString('listOfFiles');
?>
</h1>
<?php 
echo listOfFiles();
Exemplo n.º 2
0
        cancelMolecule();
        break;
    case 'about':
        aboutComponent();
        break;
    case 'exportdb':
        exportDB();
        break;
    case 'importdb':
        importDB($option);
        break;
    case 'importdbprocess':
        importDBProcess();
        break;
    case 'listoffiles':
        listOfFiles($option);
        break;
    case 'viewlog':
        showLogFile();
        break;
    case 'delfiles':
        delFiles($fid);
        break;
    default:
        showMolecules($option);
        break;
}
/**
 * Creates a new or edits and existing user record
 * @param int The id of the record, 0 if a new entry
 * @param string The current GET/POST option
 function listFileOf($dirname)
 {
     return listOfFiles($dirname);
 }
 function getData()
 {
     parent::getData();
     $param =& $this->param;
     if ($this->is_signed()) {
         $SCMUSER = $this->site->username();
     }
     include INC_DIR . "query.inc";
     @($commitsfiles = $_POST['commitsfiles']);
     if (!isset($commitsfiles)) {
         $commitsfiles = array();
     }
     @($only_user = $_POST['only_user']);
     @($only_tag = $_POST['only_tag']);
     if (isset($_POST['selected_years'])) {
         $selected_years = $_POST['selected_years'];
         if (!is_array($selected_years)) {
             $selected_years = split(':', $selected_years);
         }
     }
     if (isset($_GET['selected_years'])) {
         $selected_years = split(':', $_GET['selected_years']);
     }
     if (!isset($selected_years)) {
         $selected_years = array(strftime("%Y"));
     }
     $param['DIS_GET_SelectedYear'] = "";
     while (list($k, $y) = each($selected_years)) {
         if (strlen($y) > 0) {
             $param['DIS_GET_SelectedYear'] .= "{$y}:";
         }
     }
     $param['selected_years'] =& $selected_years;
     $param['DIS_Application'] = "query";
     // Commit files
     $param['DIS_CurrentCommitFile'] = SCMLogs_CurrentCommitFile();
     $param['DIS_CurrentCommitFileChecked'] = in_array($param['DIS_CurrentCommitFile'], $commitsfiles);
     $param['DIS_OnlyUser'] = $only_user;
     $param['DIS_OnlyTag'] = $only_tag;
     $param['DIS_UserFilter'] = userModulesText($SCMUSER);
     $param['DIS_CommitFiles'] = array();
     // [years => [month => [key=>files]]]
     $repo = SCMLogs_repository();
     $list_years = listOfDir($repo->logsdir);
     reset($list_years);
     krsort($list_years);
     while (list($k_year, $v_year_dir) = each($list_years)) {
         if (eregi("^[0-9]+\$", $k_year)) {
             $TMP_months = array();
             $list_months = listOfDir($v_year_dir);
             arsort($list_months);
             while (list($k_month, $v_month_dir) = each($list_months)) {
                 $list_files = listOfFiles($v_month_dir);
                 if (count($list_files) > 0) {
                     $TMP_files = array();
                     reset($list_files);
                     arsort($list_files);
                     while (list($k_file, $v_filename) = each($list_files)) {
                         if (in_array($k_file, $commitsfiles)) {
                             $TMP_files[$k_file] = True;
                         } else {
                             $TMP_files[$k_file] = False;
                         }
                     }
                     $TMP_months[$k_month] = $TMP_files;
                 }
             }
             $param['DIS_CommitFiles'][$k_year] = $TMP_months;
         }
     }
 }