Fix inclusions in banana feedgen cron
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 24 Sep 2007 07:38:12 +0000 (09:38 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 24 Sep 2007 07:38:12 +0000 (09:38 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
bin/cron/banana.feedgen.php
bin/cron/connect.db.inc.php [changed from file to symlink]

index b573adf..1847368 100755 (executable)
@@ -9,7 +9,7 @@
  ********************************************************************************/
 
 require_once 'connect.db.inc.php';
-require_once dirname(__FILE__).'/../include/banana/ml.inc.php';
+require_once dirname(__FILE__).'/../../include/banana/ml.inc.php';
 
 Banana::$mbox_helper = $globals->banana->mbox_helper;
 Banana::$spool_root = $globals->banana->spool_root;
deleted file mode 100644 (file)
index 1cade25c72898226666f92f40aad3a486560cb7f..0000000000000000000000000000000000000000
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-/***************************************************************************
- *  Copyright (C) 2003-2007 Polytechnique.org                              *
- *  http://opensource.polytechnique.org/                                   *
- *                                                                         *
- *  This program is free software; you can redistribute it and/or modify   *
- *  it under the terms of the GNU General Public License as published by   *
- *  the Free Software Foundation; either version 2 of the License, or      *
- *  (at your option) any later version.                                    *
- *                                                                         *
- *  This program is distributed in the hope that it will be useful,        *
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of         *
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
- *  GNU General Public License for more details.                           *
- *                                                                         *
- *  You should have received a copy of the GNU General Public License      *
- *  along with this program; if not, write to the Free Software            *
- *  Foundation, Inc.,                                                      *
- *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                *
- ***************************************************************************/
-
-ini_set('include_path',dirname(__FILE__).'/../include:' . dirname(__FILE__).'/../classes:/usr/share/php');
-
-require_once('xorg.inc.php');
-require_once('xorg.misc.inc.php');
-
-require_once 'xdb.php';
-
-$globals->baseurl = "https://www.polytechnique.org";
-// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
-?>
new file mode 120000 (symlink)
index 0000000000000000000000000000000000000000..55b7297113b8aa90cb3a11cd7ba5276521e2bc95
--- /dev/null
@@ -0,0 +1 @@
+../connect.db.inc.php
\ No newline at end of file