Switches email related classes to the new User model.
[platal.git] / bin / cron / banana.feedgen.php
deleted file mode 120000 (symlink)
index 355e1d0eb8a39d93a3bd5fb57abe44e007b62694..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1 +0,0 @@
-../banana.feedgen.php
\ No newline at end of file
new file mode 100755 (executable)
index 0000000000000000000000000000000000000000..e85766a04088e50f4380a347cbb40ffb2a406916
--- /dev/null
@@ -0,0 +1,21 @@
+#!/usr/bin/php5
+<?php
+/********************************************************************************
+ * spoolgen.php : spool generation
+ * --------------
+ *
+ * This file is part of the banana distribution
+ * Copyright: See COPYING files that comes with this distribution
+ ********************************************************************************/
+
+require_once 'connect.db.inc.php';
+require_once dirname(__FILE__).'/../../include/banana/ml.inc.php';
+ini_set('memory_limit', '128M');
+
+Banana::$mbox_helper = $globals->banana->mbox_helper;
+Banana::$spool_root = $globals->banana->spool_root;
+Banana::$nntp_host = "news://{$globals->banana->web_user}:{$globals->banana->web_pass}@{$globals->banana->server}:{$globals->banana->port}/";
+Banana::refreshAllFeeds(array('NNTP'));
+
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
+?>