Changeset 299


Ignore:
Timestamp:
Dec 28, 2009, 5:29:36 PM (15 years ago)
Author:
george
Message:
  • Opraveno: Generovat addon z podsložky CzWoW.
Location:
trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/TranslationList.php

    r288 r299  
    255255  $Total = 0;
    256256  foreach($TranslationTree as $Group)
    257     if($Group['TablePrefix'] != '')
     257  if($Group['TablePrefix'] != '')
    258258  {
    259259    $Export = 'XML';
     
    261261    if($Group['MangosTable'] != '')
    262262    {
    263     $Export .= ', SQL';
    264     $Import = 'SQL '.$Group['MangosDatabase'].'.'.$Group['MangosTable'];
     263      $Export .= ', SQL';
     264      $Import = 'SQL '.$Group['MangosDatabase'].'.'.$Group['MangosTable'];
    265265    }
    266266    if($Group['DBCFileName'] != '')
    267267    {
    268     $Export .= ', DBC';
    269     $Import = $Group['DBCFileName'].'.dbc';
     268      $Export .= ', DBC';
     269      $Import = $Group['DBCFileName'].'.dbc';
    270270    }
    271271    if($Group['LuaFileName'] != '')
    272272    {
    273     $Export .= ', Lua';
    274     $Import = $Group['LuaMPQFolder'].'/'.$Group['LuaFileName'].'.lua';
     273      $Export .= ', Lua';
     274      $Import = $Group['LuaMPQFolder'].'/'.$Group['LuaFileName'].'.lua';
    275275    }
    276276    foreach($Group['Items'] as $Item)
    277277      if(($Item['AddonFileName'] != '') and (substr($Export, -5) != 'Addon'))
    278     {
    279       $Export .= ', Addon';
     278      {
     279        $Export .= ', Addon';
    280280      }
    281281    echo('<tr><td><a href="?group='.$Group['Id'].'&amp;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'].'&amp;type=11">'.HumanDate($Group['LastImport']).'</a></td><td>'.GetVersionWOW($Group['LastVersion']).'</td></tr>');
  • trunk/export/export_output.php

    r297 r299  
    66include_once('export.php');   
    77include_once('create_addon.php');
     8
     9//ini_set('memory_limit', '100M');
    810
    911function CreateZipFromDir(&$Zip, $Path, $ZipPath)
     
    113115    $SaveFilename = $Addon->TempDir.'CzWoW_Addon-'.$Addon->ClientVersion['Version'].'.zip';         
    114116    $Zip = new zipfile();
    115     CreateZipFromDir($Zip, $Addon->TempDir, 'CzWoW/');
     117    CreateZipFromDir($Zip, $Addon->TempDir.'CzWoW/', 'CzWoW/');
    116118    $Zip->addFile(file_get_contents('files/'.$Addon->ClientVersion['Version'].'/CzWoW/OptionsFrame.xml'), 'CzWoW/OptionsFrame.xml');
    117119    $Zip->addFile(file_get_contents('files/'.$Addon->ClientVersion['Version'].'/CzWoW/CzWoW.xml'), 'CzWoW/CzWoW.xml');
  • trunk/export/index.php

    r298 r299  
    110110      {
    111111        $Database->SQLCommand('DELETE FROM Export WHERE Id='.$_GET['ExportId']);
    112         delete_directory('../tmp/Export/'.$_GET['ExportId'].'/');
     112        DeleteDirectory('../tmp/Export/'.$_GET['ExportId'].'/');
    113113        echo('Export smazán.<br/><br/>');
    114114        $_GET['Filter'] = 'my';
  • trunk/includes/global_function.php

    r298 r299  
    525525}
    526526
    527 function delete_directory($dirname)
     527function DeleteDirectory($dirname)
    528528{
    529529  if(is_dir($dirname))
     
    536536      {
    537537        if(!is_dir($dirname.'/'.$file)) unlink($dirname.'/'.$file);
    538           else delete_directory($dirname.'/'.$file);   
     538          else DeleteDirectory($dirname.'/'.$file);   
    539539      }
    540540    }
Note: See TracChangeset for help on using the changeset viewer.