- Timestamp:
- Feb 18, 2009, 8:33:41 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/addon/make.php
r99 r108 90 90 $SelectedUsers = substr($SelectedUsers, 1); 91 91 92 if($SelectedUsers == '') $WhereUsers = 1; 93 else $WhereUsers = '(User IN ('.$SelectedUsers.'))'; 92 if($SelectedUsers == '') 93 { 94 $WhereUsers = 1; 95 $OrderByUserList = ''; 96 } else 97 { 98 $WhereUsers = '(User IN ('.$SelectedUsers.'))'; 99 $OrderByUserList = ' ORDER BY FIELD(User, '.$SelectedUsers.')'; 100 } 94 101 95 102 foreach($TranslationTree as $Group) … … 110 117 111 118 $Buffer = 'CZWOW_'.$Column['AddonFileName']. 112 '_count='.$FileIndex.'; CZWOW_'.$Column['AddonFileName'].'_'.$FileIndex.'={'; 119 '_count='.$FileIndex.'; CZWOW_'.$Column['AddonFileName'].'_'.$FileIndex.'={'; 113 120 114 $Query = 'SELECT T2.'.$Column['Column'].' AS Translation, T3.'.$Column['Column'].' as Original FROM (SELECT T1.entry, T1.'.$Column['Column'].' FROM (SELECT entry,'.$Column['Column'].' FROM '.$Group['TablePrefix'].' WHERE (Complete = 1) AND '.$WhereLang.' AND '.$WhereUsers. ' ORDER BY FIELD(User, '.$SelectedUsers.')) AS T1 GROUP BY T1.entry) as T2 JOIN '.$Group['TablePrefix'].' AS T3 ON (T2.entry = T3.entry) AND (T3.Language = 0)';121 $Query = 'SELECT T2.'.$Column['Column'].' AS Translation, T3.'.$Column['Column'].' as Original FROM (SELECT T1.entry, T1.'.$Column['Column'].' FROM (SELECT entry,'.$Column['Column'].' FROM '.$Group['TablePrefix'].' WHERE (Complete = 1) AND '.$WhereLang.' AND '.$WhereUsers.$OrderByUserList.') AS T1 GROUP BY T1.entry) as T2 JOIN '.$Group['TablePrefix'].' AS T3 ON (T2.entry = T3.entry) AND (T3.Language = 0)'; 115 122 $DbResult = $Database->SQLCommand($Query); 116 123 while($Line = mysql_fetch_array($DbResult)) … … 156 163 $SelectedUsers = substr($SelectedUsers, 1); 157 164 158 if($SelectedUsers == '') $WhereUsers = 1; 159 else $WhereUsers = '(User IN ('.$SelectedUsers.'))'; 165 if($SelectedUsers == '') 166 { 167 $WhereUsers = 1; 168 $OrderByUserList = ''; 169 } else 170 { 171 $WhereUsers = '(User IN ('.$SelectedUsers.'))'; 172 $OrderByUserList = ' ORDER BY FIELD(User, '.$SelectedUsers.')'; 173 } 160 174 161 175 $Buffer = "local f=function(name, en, cz) CzWoW_interface[name]=cz; CzWoW_interface_entoname[en]=name; end; CzWoW_interface={ };CzWoW_interface_entoname={ };\n"; 162 176 $Group = $TranslationTree[9]; // client table 163 177 $Column['Column'] = 'Text'; 164 $Query = 'SELECT T2.'.$Column['Column'].' AS Translation, T3.'.$Column['Column'].' as Original, T3.id_text FROM (SELECT T1.entry, T1.'.$Column['Column'].' FROM (SELECT entry,'.$Column['Column'].' FROM '.$Group['TablePrefix'].' WHERE (Complete = 1) AND '.$WhereLang.' AND '.$WhereUsers. ' ORDER BY FIELD(User, '.$SelectedUsers.')) AS T1 GROUP BY T1.entry) as T2 JOIN '.$Group['TablePrefix'].' AS T3 ON (T2.entry = T3.entry) AND (T3.Language = 0)';178 $Query = 'SELECT T2.'.$Column['Column'].' AS Translation, T3.'.$Column['Column'].' as Original, T3.id_text FROM (SELECT T1.entry, T1.'.$Column['Column'].' FROM (SELECT entry,'.$Column['Column'].' FROM '.$Group['TablePrefix'].' WHERE (Complete = 1) AND '.$WhereLang.' AND '.$WhereUsers.$OrderByUserList.') AS T1 GROUP BY T1.entry) as T2 JOIN '.$Group['TablePrefix'].' AS T3 ON (T2.entry = T3.entry) AND (T3.Language = 0)'; 165 179 $DbResult = $Database->SQLCommand($Query); 166 180 while($Line = mysql_fetch_array($DbResult)) -
trunk/download.php
r103 r108 6 6 if(array_key_exists('ExportSetting', $_COOKIE)) 7 7 $_SESSION['ExportSetting'] = $_COOKIE['ExportSetting']; 8 else $_SESSION['ExportSetting'] = array();8 else $_SESSION['ExportSetting'] = ''; 9 9 10 10 setcookie('ExportSetting', $_SESSION['ExportSetting']); … … 175 175 '<a href="'.$SaveFilename.'">CzWoW_Addon.zip</a><br />'. 176 176 'Pokud se vám zdá, že filtr na export nefunguje, vymažte si vyrovnávací paměť prohlížeče a zkuste stáhnout soubor znovu.'); 177 echo('<br /><strong>Použití ve hře</strong><br />Menu addonu ve hře vyvol éte povelem /czwow.');177 echo('<br /><strong>Použití ve hře</strong><br />Menu addonu ve hře vyvoláte povelem /czwow.'); 178 178 break; 179 179 case 'DBC': -
trunk/includes/global.php
r107 r108 237 237 <tr> 238 238 <td colspan="3" class="page-bottom">Autoři: maron, chronos <a href="http://wowpreklad.zdechov.net/trac/wowpreklad/browser/trunk">Zdrojové soubory</a></td></tr>'); 239 if($Config['Web']['ShowRuntimeInfo'] == true) echo('<tr><td colspan="3" style="text-align: center;">Doba generování: '.$ScriptGenerateDuration.' s Použitá paměť: '.HumanSize(memory_get_peak_usage(FALSE)).'</td></tr>');239 if($Config['Web']['ShowRuntimeInfo'] == true) echo('<tr><td colspan="3" style="text-align: center;">Doba generování: '.$ScriptGenerateDuration.' s / '.ini_get('max_execution_time').' s Použitá paměť: '.HumanSize(memory_get_peak_usage(FALSE)).' / '.ini_get('memory_limit').'B</td></tr>'); 240 240 echo('</table> 241 241 </body>
Note:
See TracChangeset
for help on using the changeset viewer.