Changeset 800 for trunk/Modules/Download/Download.php
- Timestamp:
- Mar 16, 2014, 11:15:43 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Download/Download.php
r791 r800 17 17 { 18 18 $this->System->RegisterPage('download', 'PageDownload'); 19 $this->System->RegisterPage('download.php', 'PageDownload');20 19 $this->System->RegisterMenuItem(array( 21 20 'Title' => T('Download'), … … 35 34 $Output = '<h3>'.T('Accessories for client').'</h3>'. 36 35 '<strong><a href="'.$fileslink.'/WowLua/wowpatcher.exe">wowpatcher</a></strong> - '.T('Tool to command line, which search and edit file wow.exe for support editing files Glue Strings.lua and GlobalStrings.lua.').' '. 37 T('Designed for one-time creation of new modified version of wow.exe. Help can be called with the - help option. The ability to modify future versions not guaranteed.').' '. 36 T('Designed for one-time creation of new modified version of wow.exe. Help can be called with the - help option. The ability to modify future versions not guaranteed.').' '. 38 37 '<br /><br/>'. 39 '<strong>WowLua</strong> - '.T('Specific modified version of WoW.exe for free servers with support for translation Lua files').'<br/>'. 38 '<strong>WowLua</strong> - '.T('Specific modified version of WoW.exe for free servers with support for translation Lua files').'<br/>'. 40 39 'enGB a enUS: '. 41 40 ' <a href="'.$fileslink.'/WowLua/WowLua_3.3.5a.exe">3.3.5a</a>'. … … 46 45 ' <a href="'.$fileslink.'/WowLua/WowLua_1.12.1.exe">1.12.1</a>'. 47 46 '<br/><br/>'. 48 '<strong>WoWMe</strong> - '.T('Edited files wow.exe with support of translation dbc files').':<br/>'. 47 '<strong>WoWMe</strong> - '.T('Edited files wow.exe with support of translation dbc files').':<br/>'. 49 48 '<a href="'.$fileslink.'/WoWMe/WoWMe_4.3.4.zip">4.3.4</a> '. 50 49 '<a href="'.$fileslink.'/WoWMe/WoWMe_3.2.0.rar">3.2.0</a> '. … … 54 53 '<br/><br/>'. 55 54 '<strong>CzechWoW</strong> - '.T('Czech for client with edited client files (old)').'<br/>'; 56 55 57 56 $Output .= '<a href="'.$fileslink.'/CzechWoW/Instalace_CzechWoW_3.3.5a_2010-09-09.exe">Instalace CzechWoW 3.3.5a 2010-09-09.exe</a><br/>'. 58 57 '<a href="'.$fileslink.'/CzechWoW/Instalace_CzechWoW_3.3.3a_2010-04-23.exe">Instalace CzechWoW 3.3.3a 2010-04-23.exe</a><br/>'. … … 77 76 return($Output); 78 77 } 79 80 function ShowDownload() 78 79 function ShowDownload() 81 80 { 82 81 $Output = '<h3>'.T('Download czech').'</h3><br />'; 83 82 84 83 $Output .= T('Additional files: modified wow.exe, fonts to game, translated interface aowow and more can be found on page').' <a href="'.$this->System->Link('/download/?Files').'">'.T('Files').'</a><br />'; 85 84 $Output .= T('If none of these files is suitable for you, for example, to the Czech without the translated interface. You can generate your own section in section').' <a href="'.$this->System->Link('/export').'">'.T('Export').'</a><br /><br />'; … … 87 86 $Output .= T('If you no longer want translation in game, you can uninstall it by file Uninstall.exe at the directory of game.').'<br />'; 88 87 $Output .= '<br /><br />'; 89 88 90 89 $DbResult = $this->System->Database->query('SELECT COUNT(*) FROM `Export` WHERE `Featured`=1'); 91 90 $DbRow = $DbResult->fetch_row(); 92 $PageList = GetPageList($DbRow[0]); 91 $PageList = GetPageList($DbRow[0]); 93 92 94 93 $Output .= $PageList['Output']; 95 94 $TableColumns = array( 96 array('Name' => 'Version', 'Title' => T('Download')), 97 array('Name' => 'Title', 'Title' => T('Name2'),), 98 array('Name' => 'TimeCreate', 'Title' => T('Creation date')), 95 array('Name' => 'Version', 'Title' => T('Download')), 96 array('Name' => 'Title', 'Title' => T('Name2'),), 97 array('Name' => 'TimeCreate', 'Title' => T('Creation date')), 99 98 array('Name' => 'Description', 'Title' => T('Description')), 100 ); 99 ); 101 100 $Order = GetOrderTableHeader($TableColumns, 'Id', 1); 102 101 $Output .= '<table class="BaseTable">'. 103 $Order['Output']; 102 $Order['Output']; 104 103 $DbRows = $this->Database->query('SELECT `ClientVersion`.`Version` AS `Version`, '. 105 104 '`Export`.`Id`, `Export`.`ClientVersion`, `Export`.`OutputType`, `Export`.`Title`, '. … … 107 106 'JOIN `ClientVersion` as `ClientVersion` ON `ClientVersion`.`Id`=`Export`.`ClientVersion` '. 108 107 'WHERE `Featured`=1 '.$Order['SQL'].$PageList['SQLLimit']); 109 while ($DbExport = $DbRows->fetch_assoc()) 108 while ($DbExport = $DbRows->fetch_assoc()) 110 109 { 111 110 $ExportId = $DbExport['Id']; 112 111 113 112 if ($DbExport['OutputType'] == 10) 114 113 $filename = $this->System->Config['Web']['TempFolder'].'Export/'.$ExportId.'/'.'Instalace_CzechWoW_'.$DbExport['Version'].'.exe'; 115 114 if ($DbExport['OutputType'] == 7) 116 115 $filename = $this->System->Config['Web']['TempFolder'].'Export/'.$ExportId.'/'.'CzWoW_Addon-'.$DbExport['Version'].'.zip'; 117 116 118 117 if ($DbExport['OutputType'] == 10) 119 118 $Output .= '<tr><td><a href="'.$this->System->Link('/'.$filename). … … 129 128 $ExportId.'&Tab=7').'">'.T('Make export').'</a><br /> <a href="'. 130 129 $this->System->Link('/export/?Action=View&ExportId='.$ExportId).'">Export '.$ExportId.'</a></td>'; 131 130 132 131 $Output .= '<td>'.$DbExport['Title'].'</td>'; //.'<td>'.$DbExport['ClientVersion'].'</td>'; 133 132 134 133 if ((($DbExport['OutputType'] == 10) or ($DbExport['OutputType'] == 7)) and (file_exists($filename))) 135 134 $Output .= '<td>'.date('d.m.y H:i',filemtime($filename)).'</td>'; … … 137 136 $Output .= '<td> </td>'; 138 137 139 $Output .= 138 $Output .= 140 139 '<td>'.str_replace("\n", '<br />',$DbExport['Description']).'</td>'. 141 140 '</tr>'; … … 143 142 $Output .= '</table>'. 144 143 $PageList['Output']; 145 144 146 145 return($Output); 147 146 } 148 149 function Show() 147 148 function Show() 150 149 { 151 150 $this->Title = T('Download'); … … 153 152 if (isset($_GET['Files'])) $Output .= $this->ShowFiles(); 154 153 else $Output .= $this->ShowDownload(); 155 154 156 155 return($Output); 157 } 156 } 158 157 } 159
Note:
See TracChangeset
for help on using the changeset viewer.