Changeset 780 for trunk/Modules/Download
- Timestamp:
- Feb 3, 2014, 10:23:10 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Download/Download.php
r766 r780 94 94 $Output .= $PageList['Output']; 95 95 $TableColumns = array( 96 array('Name' => ' Id', 'Title' => T('Download')),97 array('Name' => 'Title', 'Title' => T('Name2') ),96 array('Name' => 'Version', 'Title' => T('Download')), 97 array('Name' => 'Title', 'Title' => T('Name2'),), 98 98 array('Name' => 'TimeCreate', 'Title' => T('Creation date')), 99 99 array('Name' => 'Description', 'Title' => T('Description')), … … 111 111 $ExportId = $DbExport['Id']; 112 112 113 $filename = $this->System->Config['Web']['TempFolder'].'Export/'.$ExportId.'/'.'Instalace_CzechWoW_'.$DbExport['Version'].'.exe'; 113 if ($DbExport['OutputType'] == 10) 114 $filename = $this->System->Config['Web']['TempFolder'].'Export/'.$ExportId.'/'.'Instalace_CzechWoW_'.$DbExport['Version'].'.exe'; 115 if ($DbExport['OutputType'] == 7) 116 $filename = $this->System->Config['Web']['TempFolder'].'Export/'.$ExportId.'/'.'CzWoW_Addon-'.$DbExport['Version'].'.zip'; 114 117 115 118 if ($DbExport['OutputType'] == 10) 116 119 $Output .= '<tr><td><a href="'.$this->System->Link('/'.$filename). 117 120 '">CzechWoW_'.$DbExport['Version'].'.exe</a><br /> <a href="'. 121 $this->System->Link('/export/?Action=View&ExportId='.$ExportId).'">Export '.$ExportId.'</a></td>'; 122 else 123 if ($DbExport['OutputType'] == 7) 124 $Output .= '<tr><td><a href="'.$this->System->Link('/'.$filename). 125 '">CzWoW_Addon-'.$DbExport['Version'].'.zip</a><br /> <a href="'. 118 126 $this->System->Link('/export/?Action=View&ExportId='.$ExportId).'">Export '.$ExportId.'</a></td>'; 119 127 else … … 124 132 $Output .= '<td>'.$DbExport['Title'].'</td>'; //.'<td>'.$DbExport['ClientVersion'].'</td>'; 125 133 126 if (( $DbExport['OutputType'] == 10) and (file_exists($filename)))134 if ((($DbExport['OutputType'] == 10) or ($DbExport['OutputType'] == 7)) and (file_exists($filename))) 127 135 $Output .= '<td>'.date('d.m.y H:i',filemtime($filename)).'</td>'; 128 136 else
Note:
See TracChangeset
for help on using the changeset viewer.