Changeset 299
- Timestamp:
- Dec 28, 2009, 5:29:36 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/TranslationList.php
r288 r299 255 255 $Total = 0; 256 256 foreach($TranslationTree as $Group) 257 257 if($Group['TablePrefix'] != '') 258 258 { 259 259 $Export = 'XML'; … … 261 261 if($Group['MangosTable'] != '') 262 262 { 263 $Export .= ', SQL';264 $Import = 'SQL '.$Group['MangosDatabase'].'.'.$Group['MangosTable'];263 $Export .= ', SQL'; 264 $Import = 'SQL '.$Group['MangosDatabase'].'.'.$Group['MangosTable']; 265 265 } 266 266 if($Group['DBCFileName'] != '') 267 267 { 268 $Export .= ', DBC';269 $Import = $Group['DBCFileName'].'.dbc';268 $Export .= ', DBC'; 269 $Import = $Group['DBCFileName'].'.dbc'; 270 270 } 271 271 if($Group['LuaFileName'] != '') 272 272 { 273 $Export .= ', Lua';274 $Import = $Group['LuaMPQFolder'].'/'.$Group['LuaFileName'].'.lua';273 $Export .= ', Lua'; 274 $Import = $Group['LuaMPQFolder'].'/'.$Group['LuaFileName'].'.lua'; 275 275 } 276 276 foreach($Group['Items'] as $Item) 277 277 if(($Item['AddonFileName'] != '') and (substr($Export, -5) != 'Addon')) 278 {279 $Export .= ', Addon';278 { 279 $Export .= ', Addon'; 280 280 } 281 281 echo('<tr><td><a href="?group='.$Group['Id'].'&action=filter">'.$Group['Name'].'</a></td><td>'.$Import.'</td><td>'.$Export.'</td><td><a title="Změny po posledním importu u vybrané překladové skupiny" href="log.php?group='.$Group['Id'].'&type=11">'.HumanDate($Group['LastImport']).'</a></td><td>'.GetVersionWOW($Group['LastVersion']).'</td></tr>'); -
trunk/export/export_output.php
r297 r299 6 6 include_once('export.php'); 7 7 include_once('create_addon.php'); 8 9 //ini_set('memory_limit', '100M'); 8 10 9 11 function CreateZipFromDir(&$Zip, $Path, $ZipPath) … … 113 115 $SaveFilename = $Addon->TempDir.'CzWoW_Addon-'.$Addon->ClientVersion['Version'].'.zip'; 114 116 $Zip = new zipfile(); 115 CreateZipFromDir($Zip, $Addon->TempDir , 'CzWoW/');117 CreateZipFromDir($Zip, $Addon->TempDir.'CzWoW/', 'CzWoW/'); 116 118 $Zip->addFile(file_get_contents('files/'.$Addon->ClientVersion['Version'].'/CzWoW/OptionsFrame.xml'), 'CzWoW/OptionsFrame.xml'); 117 119 $Zip->addFile(file_get_contents('files/'.$Addon->ClientVersion['Version'].'/CzWoW/CzWoW.xml'), 'CzWoW/CzWoW.xml'); -
trunk/export/index.php
r298 r299 110 110 { 111 111 $Database->SQLCommand('DELETE FROM Export WHERE Id='.$_GET['ExportId']); 112 delete_directory('../tmp/Export/'.$_GET['ExportId'].'/');112 DeleteDirectory('../tmp/Export/'.$_GET['ExportId'].'/'); 113 113 echo('Export smazán.<br/><br/>'); 114 114 $_GET['Filter'] = 'my'; -
trunk/includes/global_function.php
r298 r299 525 525 } 526 526 527 function delete_directory($dirname)527 function DeleteDirectory($dirname) 528 528 { 529 529 if(is_dir($dirname)) … … 536 536 { 537 537 if(!is_dir($dirname.'/'.$file)) unlink($dirname.'/'.$file); 538 else delete_directory($dirname.'/'.$file);538 else DeleteDirectory($dirname.'/'.$file); 539 539 } 540 540 }
Note:
See TracChangeset
for help on using the changeset viewer.