Changeset 899 for trunk/Modules/Export
- Timestamp:
- Aug 30, 2023, 10:46:15 PM (16 months ago)
- Location:
- trunk/Modules/Export
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Export/Export.php
r898 r899 298 298 function HaveVariable($String1, $String2, $StartChar = '$') 299 299 { 300 if ( strpos($String1, $StartChar) !== false)300 if (($String1 != '') and (strpos($String1, $StartChar) !== false)) 301 301 { 302 302 while (strpos($String1, $StartChar) !== false) … … 311 311 if (strpos($Variable, chr(10))) $Variable = substr($Variable, 0, strpos($Variable, chr(10))); 312 312 313 if (($Variable != '') and ( strpos($String2, $Variable) === false))313 if (($Variable != '') and (($String2 == '') or (strpos($String2, $Variable) === false))) 314 314 { 315 315 return false; -
trunk/Modules/Export/ProcessTask.php
r894 r899 65 65 while (($File = readdir($Dir)) !== false) 66 66 { 67 if (($File != '..') and ($File != '.')) { 67 if (($File != '..') and ($File != '.')) 68 { 68 69 $File = str_replace('/', DIRECTORY_SEPARATOR, $File); 69 70 $InDir = ''; 70 if (strpos($packdir, 'dbc') !== false) { 71 if (strpos($packdir, 'dbc') !== false) 72 { 71 73 $InDir = 'DBFilesClient\\'; 72 74 if (DIRECTORY_SEPARATOR == '/') // linux 73 75 $InDir = 'DBFilesClient\\\\'; 74 76 } 75 if (strpos($packdir.$File, 'luaGlobal') !== false) { 77 if (strpos($packdir.$File, 'luaGlobal') !== false) 78 { 76 79 $InDir = 'Interface\\FrameXML\\'; 77 80 if (DIRECTORY_SEPARATOR == '/') // linux 78 81 $InDir = 'Interface\\\\FrameXML\\\\'; 79 82 } 80 if (strpos($packdir.$File, 'luaGlue') !== false) { 83 if (strpos($packdir.$File, 'luaGlue') !== false) 84 { 81 85 $InDir = 'Interface\\GlueXML\\'; 82 86 if (DIRECTORY_SEPARATOR == '/') // linux … … 85 89 86 90 if (DIRECTORY_SEPARATOR == '/') // linux 87 echo exec('wine cmd /C mpq.exe "'.$this->GetWinZPatch($packdir.DIRECTORY_SEPARATOR. 91 { 92 echo(exec('wine mpq.exe "'.$this->GetWinZPatch($packdir.DIRECTORY_SEPARATOR. 88 93 '..'.DIRECTORY_SEPARATOR).'patch-5.MPQ" '.$InDir.basename($File).' "'. 89 $this->GetWinZPatch($packdir.DIRECTORY_SEPARATOR).$File.'" ') ;90 94 $this->GetWinZPatch($packdir.DIRECTORY_SEPARATOR).$File.'" ')); 95 } else 91 96 if (DIRECTORY_SEPARATOR == '\\') // windows 92 echo exec('mpq.exe "'.$packdir.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR. 93 'patch-5.MPQ" '.$InDir.basename($File).' "'.$packdir.DIRECTORY_SEPARATOR.$File.'" '); 94 95 echo "\n"; 97 { 98 echo(exec('mpq.exe "'.$packdir.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR. 99 'patch-5.MPQ" '.$InDir.basename($File).' "'.$packdir.DIRECTORY_SEPARATOR.$File.'" ')); 100 } 101 102 echo("\n"); 96 103 } 97 104 }
Note:
See TracChangeset
for help on using the changeset viewer.