Changeset 197 for trunk/export/index.php
- Timestamp:
- Jun 5, 2009, 11:51:12 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/export/index.php
r194 r197 62 62 63 63 //print_r($_POST); 64 } else 65 { 66 $ExportSetting = unserialize($_SESSION['ExportSetting']); 67 } 64 } else $ExportSetting = unserialize($_SESSION['ExportSetting']); 68 65 } 69 66 if(!isset($ExportSetting['users-selection'])) $ExportSetting['users-selection'] = array(); 70 67 if(!isset($ExportSetting['Diacritics'])) $ExportSetting['Diacritics'] = 1; 71 if(!isset($ExportSetting['language-cz'])) $ExportSetting['language-cz'] = 1; 72 if(!isset($ExportSetting['language-sk'])) $ExportSetting['language-sk'] = 1; 73 if(!isset($ExportSetting['language-other'])) $ExportSetting['language-other'] = 1;68 foreach($LanguageList as $Language) 69 if($Language['Enabled'] == 1) 70 if(!isset($ExportSetting['language'.$Language['Id']])) $ExportSetting['language'.$Language['Id']] = 1; 74 71 if(!isset($ExportSetting['users-order'])) $ExportSetting['users-order'] = ''; 75 72 if(!isset($ExportSetting['Export'])) $ExportSetting['Export'] = $Addon_verses[0]; … … 82 79 foreach($FileList as $FileName) 83 80 { 84 if(file_exists($Path.$FileName) and ($FileName != '.') and ($FileName != '..'))85 {81 if(file_exists($Path.$FileName) and ($FileName != '.') and ($FileName != '..')) 82 { 86 83 //echo($Path.$FileName.'<br />'); 87 if(is_dir($Path.$FileName)) CreateZipFromDir($Zip, $Path.$FileName.'/', $ZipPath.$FileName.'/');88 else $Zip->addFile(file_get_contents($Path.$FileName), $ZipPath.$FileName);89 }84 if(is_dir($Path.$FileName)) CreateZipFromDir($Zip, $Path.$FileName.'/', $ZipPath.$FileName.'/'); 85 else $Zip->addFile(file_get_contents($Path.$FileName), $ZipPath.$FileName); 86 } 90 87 } 91 88 } … … 382 379 if(array_key_exists('groups', $_POST)) $ExportSetting['groups'] = $_POST['groups']; 383 380 $ExportSetting['Diacritics'] = array_key_exists('Diacritics', $_POST); 384 $ExportSetting['language-cz'] = array_key_exists('language-cz', $_POST);385 $ExportSetting['language-sk'] = array_key_exists('language-sk', $_POST);386 $ExportSetting['language-other'] = array_key_exists('language-other', $_POST);381 foreach($LanguageList as $Language) 382 if($Language['Enabled'] == 1) 383 $ExportSetting['language'.$Language['Id']] = array_key_exists('language'.$Language['Id'], $_POST); 387 384 388 385 if (array_key_exists('ExportSetting',$_GET)) … … 433 430 //echo('<input type="checkbox" name="Use" checked="true">Přidat výchovýběr databáze.<br />'); 434 431 435 echo(CheckBox('language-cz', $ExportSetting['language-cz'] == 'checked').'Český překlad<br />'. 436 CheckBox('language-sk', $ExportSetting['language-sk'] == 'checked').'Slovenský překlad<br />'. 437 CheckBox('language-other', $ExportSetting['language-other'] == 'checked').'Jiné jazyky<br />'); 432 foreach($LanguageList as $Language) 433 if($Language['Enabled'] == 1) 434 echo(CheckBox('language'.$Language['Id'], $ExportSetting['language'.$Language['Id']] == 'checked').$Language['Name'].'<br />'); 435 438 436 echo('</fieldset><br /></td><td class="Description">Pro správné zobrazení českých znaků ve hře je nutné používat upravené <a href="download/ceske_fonty_do_wow.zip">počeštěné fonty</a>.<br />Vyberte jaké jazyky se mají uvažovat při exportu.</td></tr><tr><td><fieldset><legend>Skupiny textů</legend>'); 439 437 echo('<select name="groups[]" size="15" multiple="multiple">');
Note:
See TracChangeset
for help on using the changeset viewer.