Changeset 766
- Timestamp:
- Jan 27, 2014, 10:28:05 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Download/Download.php
r742 r766 32 32 function ShowFiles() 33 33 { 34 $this->Title = T('Download');35 34 $fileslink = $this->System->Link('/files'); 36 35 $Output = '<h3>Doplňky pro klienta</h3>'. … … 79 78 } 80 79 81 function ShowDownload() {82 global $System;80 function ShowDownload() 81 { 83 82 $Output = '<h3>Stažení češtiny</h3><br />'; 84 83 … … 89 88 $Output .= '<br /><br />'; 90 89 91 $Output .= '<table class="BaseTable">'; 92 $Output .= '<tr><th>Stáhnout</th><th>Název</th><th>Datum vytvoření</th><th>Popis</th></tr>'; 93 $DbRows = $this->System->Database->query('SELECT `ClientVersion`.`Version` as Version, `Export`.`Id`,`Export`.`ClientVersion`,`Export`.`OutputType`,`Export`.`Title`,`Export`.`Description` FROM `Export` JOIN `ClientVersion` as `ClientVersion` ON `ClientVersion`.`Id`=`Export`.`ClientVersion` WHERE `Featured`=1 ORDER BY `ClientVersion`.`BuildNumber` DESC'); 94 while ($DbExport = $DbRows->fetch_assoc()) { 95 // echo $DbExport['BuildNumber'].'<br />'; 90 $DbResult = $this->System->Database->query('SELECT COUNT(*) FROM `Export` WHERE `Featured`=1'); 91 $DbRow = $DbResult->fetch_row(); 92 $PageList = GetPageList($DbRow[0]); 93 94 $Output .= $PageList['Output']; 95 $TableColumns = array( 96 array('Name' => 'Id', 'Title' => T('Download')), 97 array('Name' => 'Title', 'Title' => T('Name2')), 98 array('Name' => 'TimeCreate', 'Title' => T('Creation date')), 99 array('Name' => 'Description', 'Title' => T('Description')), 100 ); 101 $Order = GetOrderTableHeader($TableColumns, 'Id', 1); 102 $Output .= '<table class="BaseTable">'. 103 $Order['Output']; 104 $DbRows = $this->Database->query('SELECT `ClientVersion`.`Version` AS `Version`, '. 105 '`Export`.`Id`, `Export`.`ClientVersion`, `Export`.`OutputType`, `Export`.`Title`, '. 106 '`Export`.`Description` FROM `Export` '. 107 'JOIN `ClientVersion` as `ClientVersion` ON `ClientVersion`.`Id`=`Export`.`ClientVersion` '. 108 'WHERE `Featured`=1 '.$Order['SQL'].$PageList['SQLLimit']); 109 while ($DbExport = $DbRows->fetch_assoc()) 110 { 96 111 $ExportId = $DbExport['Id']; 97 112 98 $filename = $ System->Config['Web']['TempFolder'].'Export/'.$ExportId.'/'.'Instalace_CzechWoW_'.$DbExport['Version'].'.exe';113 $filename = $this->System->Config['Web']['TempFolder'].'Export/'.$ExportId.'/'.'Instalace_CzechWoW_'.$DbExport['Version'].'.exe'; 99 114 100 115 if ($DbExport['OutputType'] == 10) 101 $Output .= '<tr><td><a href="'.$System->Link('/'.$filename).'">CzechWoW_'.$DbExport['Version'].'.exe</a><br /> <a href="'.$System->Link('/export/?Action=View&ExportId='.$ExportId).'">Export '.$ExportId.'</a></td>'; 116 $Output .= '<tr><td><a href="'.$this->System->Link('/'.$filename). 117 '">CzechWoW_'.$DbExport['Version'].'.exe</a><br /> <a href="'. 118 $this->System->Link('/export/?Action=View&ExportId='.$ExportId).'">Export '.$ExportId.'</a></td>'; 102 119 else 103 $Output .= '<tr><td><a href="'.$System->Link('/export/?Action=View&ExportId='.$ExportId.'&Tab=7').'">Exportovat</a><br /> <a href="'.$this->System->Link('/export/?Action=View&ExportId='.$ExportId).'">Export '.$ExportId.'</a></td>'; 120 $Output .= '<tr><td><a href="'.$this->System->Link('/export/?Action=View&ExportId='. 121 $ExportId.'&Tab=7').'">Exportovat</a><br /> <a href="'. 122 $this->System->Link('/export/?Action=View&ExportId='.$ExportId).'">Export '.$ExportId.'</a></td>'; 104 123 105 124 $Output .= '<td>'.$DbExport['Title'].'</td>'; //.'<td>'.$DbExport['ClientVersion'].'</td>'; … … 108 127 $Output .= '<td>'.date('d.m.y H:i',filemtime($filename)).'</td>'; 109 128 else 110 $Output .= '<td> </td>';129 $Output .= '<td> </td>'; 111 130 112 // '<td>'.$Export['OutputType'].'</td>'.113 131 $Output .= 114 132 '<td>'.str_replace("\n", '<br />',$DbExport['Description']).'</td>'. 115 // '<td><a href="'.$this->System->Link('/export/?Action=View&ExportId='.$ExportId).'">Export '.$ExportId.'</a></td>'.116 133 '</tr>'; 117 118 $Output .= '</table>';119 120 134 } 135 $Output .= '</table>'. 136 $PageList['Output']; 137 121 138 return($Output); 122 139 } 123 140 124 function Show() { 141 function Show() 142 { 143 $this->Title = T('Download'); 125 144 $Output = ''; 126 145 if (isset($_GET['Files'])) $Output .= $this->ShowFiles(); … … 128 147 129 148 return($Output); 130 } 131 149 } 132 150 } 133 151 -
trunk/Modules/Referrer/Referrer.php
r637 r766 196 196 function Show() 197 197 { 198 $this->Title = T(' Banners');198 $this->Title = T('Promotion'); 199 199 if(array_key_exists('action', $_GET)) 200 200 { -
trunk/Modules/Server/Server.php
r639 r766 33 33 parent::__construct($System); 34 34 $this->Table = 'Server'; 35 $this->TableSQL = 'SELECT ` Name`, `URL`, `Parts`, `XPRate`, `GameplayStyle`, '.36 '`ClientVersion`.`Version` AS ` Version` FROM `Server` '.35 $this->TableSQL = 'SELECT `Server`.`Id`, `Name`, `URL`, `Parts`, `XPRate`, `GameplayStyle`, `Description`, `CheckIP`, `CheckPort`, '. 36 '`ClientVersion`.`Version` AS `ClientVersion` FROM `Server` '. 37 37 'LEFT JOIN `ClientVersion` ON `ClientVersion`.`Id` = `Server`.`ClientVersion`'; 38 38 $this->Definition = array( 39 'Name' => array('Type' => 'String', 'Title' => T('Name')), 40 'URL' => array('Type' => 'URL', 'Title' => T('URL')), 41 'Parts' => array('Type' => 'String', 'Title' => T('Translated')), 42 'XPRate' => array('Type' => 'String', 'Title' => T('XP rate')), 43 'GameplayStyle' => array('Type' => 'String', 'Title' => T('Style')), 44 'ClientVersion' => array('Type' => 'String', 'Title' => T('Client version')), 39 'Name' => array('Type' => 'String', 'Title' => T('Name'), 'InList' => true), 40 'URL' => array('Type' => 'URL', 'Title' => T('URL'), 'InList' => true), 41 'Parts' => array('Type' => 'String', 'Title' => T('Translated'), 'InList' => true), 42 'XPRate' => array('Type' => 'String', 'Title' => T('XP rate'), 'InList' => true), 43 'GameplayStyle' => array('Type' => 'String', 'Title' => T('Style'), 'InList' => true), 44 'ClientVersion' => array('Type' => 'String', 'Title' => T('Client version'), 'InList' => true), 45 'Description' => array('Type' => 'Text', 'Title' => T('Description'), 'InList' => false), 46 'CheckIP' => array('Type' => 'Text', 'Title' => T('Online check IP'), 'InList' => false), 47 'CheckPort' => array('Type' => 'Text', 'Title' => T('Online check port'), 'InList' => false), 45 48 ); 46 49 } -
trunk/includes/Version.php
r765 r766 6 6 // and system will need database update. 7 7 8 $Revision = 76 6; // Subversion revision8 $Revision = 767; // Subversion revision 9 9 $DatabaseRevision = 748; // Database structure revision 10 10 $ReleaseTime = '2014-01-27'; -
trunk/locale/cs.php
r748 r766 47 47 'New user registration' => 'Registrace nového uživatele', 48 48 'Translators' => 'Překladatelé', 49 'Name2' => 'Název', 49 50 'Name' => 'Jméno', 50 51 'Password' => 'Heslo', … … 146 147 'New item' => 'Nová položka', 147 148 'More information' => 'Více informací', 148 'Build number' => ' ',149 'Build number' => 'Datum sestavení', 149 150 'All versions list' => 'Seznam všech verzí', 150 151 'Forum' => 'Fórum', … … 153 154 'New Forum Message' => 'Nová zpráva v vláknu', 154 155 'New thread' => 'Nové vlákno', 156 'Creation date' => 'Datum vytvoření', 157 'Logs' => 'Záznamy', 158 'Online check IP' => 'Zkontroloat IP online', 159 'Online check port' => 'Zkontroloat port online', 155 160 'There are servers listed which are in fact offering translated game. '. 156 161 'There is resoluted if translation is offered either on client side, on server side or both. '. 157 'Term "Czech server" doesn\'t mean that server is operated by Czech people but that it is possible to play in Czech.' => 158 'Zde jsou uvedeny servery, které opravdu nabízí přeloženou hru. Rozlišuje se, jestli překlad je nabízen na straně klienta, serveru nebo obou.'.162 'Term "Czech server" doesn\'t mean that server is operated by Czech people but that it is possible to play in Czech.' => 163 'Zde jsou uvedeny servery, které opravdu nabízí přeloženou hru. Rozlišuje se, jestli překlad je nabízen na straně klienta, serveru nebo obou.'. 159 164 'Pojem "Český server" neznamená, že server je provozovaný čechy, ale že je možné hrát v češtině', 165 'Last translations' => 'Poslední překlady', 166 'View' => 'Zobrazit', 167 'Item' => 'Položka', 168 'Edit' => 'Upravit', 169 'List' => 'Seznam', 160 170 ); 161 171 } -
trunk/locale/en.php
r748 r766 153 153 'New Forum Message' => '', 154 154 'New thread' => '', 155 'Name2' => '', 156 'Creation date' => '', 157 'Logs' => '', 158 'Online check IP' => '', 159 'Online check port' => '', 155 160 'There are servers listed which are in fact offering translated game. '. 156 161 'There is resoluted if translation is offered either on client side, on server side or both. '. 157 162 'Term "Czech server" doesn\'t mean that server is operated by Czech people but that it is possible to play in Czech.' => '', 163 'Last translations' => '', 164 'View' => '', 165 'Item' => '', 166 'Edit' => '', 167 'List' => '', 158 168 ); 159 169 }
Note:
See TracChangeset
for help on using the changeset viewer.