Ignore:
Timestamp:
Mar 1, 2015, 3:38:19 PM (10 years ago)
Author:
chronos
Message:
  • Modified: Removed generation of user level to images as files. Level images ware replaced by HTML progress bar.
  • Modified: User XP level and translated count is now calculated during every translation save operation rather then calculated in user list and group view page show.
  • Fixed: Wrong indentation in some files.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Export/ProcessTask.php

    r816 r826  
    1010
    1111//LoadCommandLineParameters();
    12   $System = new System();
    13   $System->DoNotShowPage = true;
    14     $System->Run();
    15 
    16 function SetProgress($Export,$per) {
     12$System = new System();
     13$System->DoNotShowPage = true;
     14$System->Run();
     15
     16function SetProgress($Export, $Progress)
     17{
    1718   global $System;
    18         $System->Database->query('UPDATE `ExportTask` SET `Progress`='.$per.' WHERE `Export`='.$Export->Id);
    19 }
    20 
     19
     20   $System->Database->query('UPDATE `ExportTask` SET `Progress`='.$Progress.' WHERE `Export`='.$Export->Id);
     21}
    2122
    2223function DeleteOldFiles($deldir)
    2324{
    24         if(file_exists($deldir.'/'))
    25         {
    26           $Dir = opendir($deldir.'/') ;
    27           while(($File = readdir($Dir)) !== false)
    28           {
    29             if(($File != '..') and ($File != '.') and (!is_dir("$File"))) unlink($deldir.'/'.$File);
    30           }
    31           closedir($Dir);
    32         }
    33 
    34 }
    35 
    36 function rcopy($src, $dst) {
     25  if(file_exists($deldir.'/'))
     26  {
     27    $Dir = opendir($deldir.'/') ;
     28    while(($File = readdir($Dir)) !== false)
     29    {
     30      if(($File != '..') and ($File != '.') and (!is_dir("$File"))) unlink($deldir.'/'.$File);
     31    }
     32    closedir($Dir);
     33  }
     34}
     35
     36function rcopy($src, $dst)
     37{
    3738 // echo  $src.' '.$dst."\n";
    3839  if (file_exists($dst)) DeleteOldFiles($dst);
     
    4647}
    4748
    48 function GetWinZPatch($patch) {
     49function GetWinZPatch($patch)
     50{
    4951  //TMP="Z:\\a\\www\\wowpreklad\\tmp\\Export\\${EXPORTID}\\"
    5052  $patch = str_replace(DIRECTORY_SEPARATOR,'\\',$patch);
     
    5355}
    5456
    55 function MPQPack($packdir) {
    56 
     57function MPQPack($packdir)
     58{
    5759  if(file_exists($packdir.DIRECTORY_SEPARATOR))
    5860  {
Note: See TracChangeset for help on using the changeset viewer.