Changeset 681 for trunk/Modules/Export/Export.php
- Timestamp:
- Jan 1, 2014, 2:40:05 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Export/Export.php
r677 r681 101 101 102 102 return($Query); 103 } 104 105 function NeedGeneration() 106 { 107 $this->LoadFilters(); 108 if ($this->Export['OutputType'] == 10) $file = $this->TempDir.'Instalace_CzechWoW_'.$this->ClientVersion['Version'].'.exe'; 109 if ($this->Export['OutputType'] == 9) $file = $this->TempDir.'CzWoW_DBC.zip'; 110 111 if (file_exists($file)) 112 $date = date('Y-m-d H:i',(filemtime($file))); 113 else return(true); 114 // echo $file; 115 116 $DbResult = $this->Database->query('SELECT `Group`.* FROM `ExportGroup` '. 117 'JOIN `Group` ON `Group`.`Id` = `ExportGroup`.`Group` WHERE `ExportGroup`.`Export`='.$this->Id); 118 $result = false; 119 while($Group = $DbResult->fetch_assoc()) 120 { 121 $Query = 'SELECT * FROM `'.$Group['TablePrefix'].'` AS `T`'. 122 ' JOIN `ExportUser` ON (`ExportUser`.`User`=`T`.`User`) AND (`ExportUser`.`Export`='.$this->Id.') '. 123 ' JOIN `User` ON `User`.`ID`=`T`.`User`'. 124 ' JOIN `ExportLanguage` ON (`ExportLanguage`.`Export`='.$this->Id.')'. 125 ' WHERE ( \''.$date.'\' < `T`.`ModifyTime`) AND (`Complete` = 1) AND (`VersionStart` <= '.$this->ClientVersion['BuildNumber'].') AND (`VersionEnd` >= '.$this->ClientVersion['BuildNumber'].')'. 126 ' '; 127 128 $DbResult2 = $this->Database->query($Query); 129 if ($DbResult2->num_rows > 0) { 130 $result = true; 131 } 132 } 133 return($result); 103 134 } 104 135
Note:
See TracChangeset
for help on using the changeset viewer.