summaryrefslogtreecommitdiffstats
path: root/public/cron.php
diff options
context:
space:
mode:
Diffstat (limited to 'public/cron.php')
-rw-r--r--public/cron.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/public/cron.php b/public/cron.php
new file mode 100644
index 0000000..ef5cdaa
--- /dev/null
+++ b/public/cron.php
@@ -0,0 +1,13 @@
+<?php
+require_once '../app/app.php';
+
+//Load OPML
+if (0 < $Planet->loadOpml($PlanetConfig->getOpmlFile())) {
+ $Planet->download(1.0);
+}
+
+if ($PlanetConfig->getDebug()) {
+ foreach ($Planet->errors as $error) {
+ echo $error->toString() . "\n";
+ }
+}