mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 07:50:11 +01:00
Fixed export-attachments.php typo
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
be39146fd2
commit
3bb6b401a1
9
contrib/export-attachments/export-attachments.php
Normal file → Executable file
9
contrib/export-attachments/export-attachments.php
Normal file → Executable file
@ -1,6 +1,7 @@
|
|||||||
|
#!/usr/bin/php
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
define('LOCK_FILE', '/var/piler/tmp/export-attachments.lock');
|
define('EXPORT_LOCK_FILE', '/var/piler/tmp/export-attachments.lock');
|
||||||
|
|
||||||
$webuidir = "";
|
$webuidir = "";
|
||||||
|
|
||||||
@ -52,9 +53,9 @@ Registry::set('auditor_user', 1);
|
|||||||
|
|
||||||
openlog("export-attachments", LOG_PID, LOG_MAIL);
|
openlog("export-attachments", LOG_PID, LOG_MAIL);
|
||||||
|
|
||||||
$fp = fopen(LOCK_FILE, "w");
|
$fp = fopen(EXPORT_LOCK_FILE, "w");
|
||||||
if(!flock($fp, LOCK_EX)) {
|
if(!flock($fp, LOCK_EX)) {
|
||||||
syslog(LOG_INFO, "WARN: couldn't get a lock on " . LOCK_FILE);
|
syslog(LOG_INFO, "WARN: couldn't get a lock on " . EXPORT_LOCK_FILE);
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -68,7 +69,7 @@ $domains = $domain->get_mapped_domains();
|
|||||||
$last_id = $attachment->get_last_attachment_id();
|
$last_id = $attachment->get_last_attachment_id();
|
||||||
$start_id = $attachment->get_checkpoint();
|
$start_id = $attachment->get_checkpoint();
|
||||||
|
|
||||||
syslog(LOG_INFO, "start: $start, limit: $limit");
|
syslog(LOG_INFO, "start: $start_id, limit: $last_id");
|
||||||
|
|
||||||
|
|
||||||
for($i=$start_id; $i<$last_id; $i++) {
|
for($i=$start_id; $i<$last_id; $i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user