From d5500c1835d24bb13ed0493822f0c0e0a4bc66f8 Mon Sep 17 00:00:00 2001 From: Vincent Zanotti Date: Sat, 25 Oct 2008 19:23:59 +0200 Subject: [PATCH] Fixes the include path for some of our scripts (platal/core split). Signed-off-by: Vincent Zanotti --- bin/cron/cron_validations.php | 2 +- bin/cron/google_apps.php | 6 +++--- bin/cron/notifs.send.php | 6 +++--- bin/emails.broken.php | 2 +- bin/newsletter.send.php | 6 +++--- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/bin/cron/cron_validations.php b/bin/cron/cron_validations.php index 6efa5ba..535dcf5 100755 --- a/bin/cron/cron_validations.php +++ b/bin/cron/cron_validations.php @@ -26,7 +26,7 @@ $M_PERIOD = "INTERVAL 3 HOUR"; // période d'envoi des mails de 3h $R_PERIOD = "INTERVAL 6 HOUR"; // période de réponse moyenne de 6h -require('./connect.db.inc.php'); +require('connect.db.inc.php'); require('plmailer.php'); $res = XDB::query("SELECT count(r.stamp), UNIX_TIMESTAMP(MIN(r.stamp)), diff --git a/bin/cron/google_apps.php b/bin/cron/google_apps.php index 698968e..50212ae 100755 --- a/bin/cron/google_apps.php +++ b/bin/cron/google_apps.php @@ -23,9 +23,9 @@ // Updates the gapps_accounts table with Plat/al information. // Cleans-up the job queue, and execute post-queue hooks. -require_once('../connect.db.inc.php'); -require_once('../../classes/plmailer.php'); -require_once('../../include/googleapps.inc.php'); +require_once('connect.db.inc.php'); +require_once('plmailer.php'); +require_once('googleapps.inc.php'); if (!$globals->mailstorage->googleapps_domain) { exit; } diff --git a/bin/cron/notifs.send.php b/bin/cron/notifs.send.php index ac67dc7..4995ad2 100755 --- a/bin/cron/notifs.send.php +++ b/bin/cron/notifs.send.php @@ -20,9 +20,9 @@ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ***************************************************************************/ -require_once('./connect.db.inc.php'); -require_once('../../classes/plmailer.php'); -require_once("../../include/notifs.inc.php"); +require_once('connect.db.inc.php'); +require_once('plmailer.php'); +require_once('notifs.inc.php'); $all = new AllNotifs(); diff --git a/bin/emails.broken.php b/bin/emails.broken.php index d371854..6f3b4af 100755 --- a/bin/emails.broken.php +++ b/bin/emails.broken.php @@ -24,7 +24,7 @@ ini_set('include_path', '.:../include:/usr/share/php'); require_once('connect.db.inc.php'); require_once('emails.inc.php'); -require_once('../classes/plmailer.php'); +require_once('plmailer.php'); $opts = getopt('i:o:'); if (($opts['i'] && $opts['i'] == '-') || empty($opts['i'])) { diff --git a/bin/newsletter.send.php b/bin/newsletter.send.php index c5c8178..3e23af5 100755 --- a/bin/newsletter.send.php +++ b/bin/newsletter.send.php @@ -20,9 +20,9 @@ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ***************************************************************************/ -require_once('./connect.db.inc.php'); -require_once('../classes/plmailer.php'); -require_once("newsletter.inc.php"); +require_once('connect.db.inc.php'); +require_once('plmailer.php'); +require_once('newsletter.inc.php'); $opt = getopt('i:h'); -- 2.1.4