Changeset 800 for trunk/Modules
- Timestamp:
- Mar 16, 2014, 11:15:43 AM (11 years ago)
- Location:
- trunk/Modules
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/ClientVersion/ClientVersion.php
r790 r800 13 13 $this->Dependencies = array(''); 14 14 } 15 15 16 16 function Start() 17 17 { … … 38 38 return($Output); 39 39 } 40 40 41 41 function ShowItem() 42 42 { 43 $YesNo = array('Ne', 'Ano'); 44 $DbResult = $this->System->Database->query('SELECT * FROM ClientVersion WHERE Id='.($_GET['id']*1)); 45 if($DbResult->num_rows > 0) 46 { 47 $Version = $DbResult->fetch_assoc(); 48 49 $Output = '<h3>'.T('Client version').'</h3>'; 50 $Output .= '<table class="BaseTable">'. 43 if(array_key_exists('id', $_GET)) 44 { 45 $YesNo = array('Ne', 'Ano'); 46 $DbResult = $this->System->Database->query('SELECT * FROM ClientVersion WHERE Id='.($_GET['id']*1)); 47 if($DbResult->num_rows > 0) 48 { 49 $Version = $DbResult->fetch_assoc(); 50 51 $Output = '<h3>'.T('Client version').'</h3>'; 52 $Output .= '<table class="BaseTable">'. 51 53 '<tr><td>'.T('Version').'</td><td>'.$Version['Version'].'</td></tr>'. 52 54 '<tr><td>'.T('More information').'</td><td><a href="http://www.wowwiki.com/Patch_'.$Version['Version'].'">wowwiki.com'. … … 58 60 '</table>'; 59 61 $Output .= '<div><a href="?">'.T('All versions list').'</a></div>'; 60 if($Version['Imported']) 62 if($Version['Imported']) 61 63 $Output .= '<div><a href="'.$this->System->Link('/progress/?Version='.$Version['Version']).'">'.T('Progress').'</a></div>'; 62 } else $Output = ShowMessage(T('Item not found'), MESSAGE_CRITICAL); 64 } else $Output = ShowMessage(T('Item not found'), MESSAGE_CRITICAL); 65 } else $Output = ShowMessage(T('Item not found'), MESSAGE_CRITICAL); 63 66 return($Output); 64 67 } 65 68 66 69 function ShowList() 67 { 70 { 68 71 $this->Title = T('Game version'); 69 72 $DbResult = $this->System->Database->query('SELECT COUNT(*) FROM `ClientVersion`'); 70 73 $DbRow = $DbResult->fetch_row(); 71 $PageList = GetPageList($DbRow[0]); 74 $PageList = GetPageList($DbRow[0]); 72 75 73 76 $Output = '<h3>'.T('Game version').'</h3>'. … … 75 78 76 79 $TableColumns = array( 77 array('Name' => 'Version', 'Title' => T('Version')), 78 array('Name' => 'BuildNumber', 'Title' => T('Build')), 79 array('Name' => 'ReleaseDate', 'Title' => T('Release date')), 80 array('Name' => 'Title', 'Title' => T('Title')), 80 array('Name' => 'Version', 'Title' => T('Version')), 81 array('Name' => 'BuildNumber', 'Title' => T('Build')), 82 array('Name' => 'ReleaseDate', 'Title' => T('Release date')), 83 array('Name' => 'Title', 'Title' => T('Title')), 81 84 array('Name' => 'Imported', 'Title' => T('Imported')), 82 85 ); … … 84 87 $Output .= '<table class="BaseTable">'. 85 88 $Order['Output']; 86 89 87 90 $YesNo = array('Ne', 'Ano'); 88 91 … … 97 100 $Output .= '</table>'. 98 101 $PageList['Output']; 99 return($Output); 102 return($Output); 100 103 } 101 104 } -
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 -
trunk/Modules/Translation/Save.php
r727 r800 25 25 $Language = $_POST['Language'] * 1; 26 26 if(array_key_exists('End', $_POST)) $Complete = 1; 27 else $Complete = 0;27 else $Complete = 0; 28 28 29 29 // Get source text record from database by ID … … 34 34 35 35 // Get data for english original 36 $DbResult = $this->Database->query('SELECT * FROM `'.$Table.'` WHERE (`Entry`='.$SourceText['Entry']. 37 ') AND (`Language` = '.$this->System->Config['OriginalLanguage'].') AND (`VersionStart` = '.$SourceText['VersionStart'].38 ')AND (`VersionEnd` = '.$SourceText['VersionEnd'].')');36 $DbResult = $this->Database->query('SELECT * FROM `'.$Table.'` WHERE (`Entry`='.$SourceText['Entry'].') '. 37 'AND (`Language` = '.$this->System->Config['OriginalLanguage'].') AND (`VersionStart` = '.$SourceText['VersionStart'].') '. 38 'AND (`VersionEnd` = '.$SourceText['VersionEnd'].')'); 39 39 if($DbResult->num_rows > 0) 40 40 {
Note:
See TracChangeset
for help on using the changeset viewer.