Web · Wiki · Activities · Blog · Lists · Chat · Meeting · Bugs · Git · Translate · Archive · People · Donate

Commit bd9adc002f72f32813a6faef3ab60616e90e8dc9

Copy all not disabled files to the mirrored directory
  
339339 files.filename as filename
340340 FROM
341341 versions
342 INNER JOIN addons ON versions.addon_id = addons.id AND addons.status = 4 AND addons.inactive = 0
343 INNER JOIN files ON files.version_id = versions.id AND files.status = 4
342 INNER JOIN addons ON versions.addon_id = addons.id AND addons.status != 5 AND addons.inactive = 0
343 INNER JOIN files ON files.version_id = versions.id AND files.status != 5
344344 ORDER BY
345345 addons.id DESC
346346 ";
  
253253 ));
254254
255255 // If public, move to public rsync area
256 if ($this->data['File']['status'][$k] == STATUS_PUBLIC) {
256 if ($this->data['File']['status'][$k] != STATUS_DISABLED) {
257257 $this->Amo->copyFileToPublic($id, $file['File']['filename']);
258258 }
259259 }
  
589589 }
590590
591591 // Copy file to rsync area if public
592 if ($data['File']['db']['status'] == STATUS_PUBLIC) {
592 if ($data['File']['db']['status'] != STATUS_DISABLED) {
593593 $this->controller->Amo->copyFileToPublic($data['Addon']['id'], $filename);
594594 }
595595
  
278278 }
279279
280280 // Move to public rsync repo
281 if ($fileData['status'] == STATUS_PUBLIC) {
281 if ($fileData['status'] != STATUS_DISABLED) {
282282 $this->controller->Amo->copyFileToPublic($approvalData['addon_id'], $file['File']['filename']);
283283 }
284284
  
139139 ";
140140 $files = mysql_fetch_array(mysql_query($sql_query));
141141
142 if (defined(FILES_HOST))
142 if (defined('FILES_HOST'))
143143 $url = FILES_HOST . '/' . $row['id'] . '/' . $files['filename'];
144144 else
145145 $url = SITE_URL . '/downloads/file/' . $files['file_id'] . '/' . $files['filename'];