summaryrefslogtreecommitdiffstats
path: root/test_index.php
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2012-09-04 13:42:16 +0000
committerRomain d'Alverny <rda@mageia.org>2012-09-04 13:42:16 +0000
commit5c426d34bcddc9ef198f8da968ac34ae16692776 (patch)
treeeda9bf16e43eda52da095e6e39941cc73e76b9cf /test_index.php
parented760b3ef9ed44d2346e4c9358e530af74dbe3ae (diff)
downloadpkgsubmit-5c426d34bcddc9ef198f8da968ac34ae16692776.tar
pkgsubmit-5c426d34bcddc9ef198f8da968ac34ae16692776.tar.gz
pkgsubmit-5c426d34bcddc9ef198f8da968ac34ae16692776.tar.bz2
pkgsubmit-5c426d34bcddc9ef198f8da968ac34ae16692776.tar.xz
pkgsubmit-5c426d34bcddc9ef198f8da968ac34ae16692776.zip
new get_upload_time()
Diffstat (limited to 'test_index.php')
-rw-r--r--test_index.php10
1 files changed, 1 insertions, 9 deletions
diff --git a/test_index.php b/test_index.php
index fa83a4e..2382330 100644
--- a/test_index.php
+++ b/test_index.php
@@ -170,15 +170,7 @@ if ($total > 0) {
}
}
-// check if emi is running
-$upload_time = null;
-$stat = null;
-if (file_exists('/var/lib/schedbot/tmp/upload')) {
- $stat = stat('/var/lib/schedbot/tmp/upload');
- if ($stat) {
- $upload_time = $stat['mtime'];
- }
-}
+$upload_time = get_upload_time();
$last_pkg = ($_GET['last'] && $total > 0) ? reset($pkgs) : null
publish_stats_headers($stats, $last_pkg);