From cb39e9294328ae83287b15e6a16da6c0179544d6 Mon Sep 17 00:00:00 2001
From: Laurent Destailleur <eldy@users.sourceforge.net>
Date: Mon, 9 Nov 2009 14:03:25 +0000
Subject: [PATCH] Qual: Removed deprecated file.

---
 scripts/emailings/mailing-prepare.php | 58 ---------------------------
 1 file changed, 58 deletions(-)
 delete mode 100644 scripts/emailings/mailing-prepare.php

diff --git a/scripts/emailings/mailing-prepare.php b/scripts/emailings/mailing-prepare.php
deleted file mode 100644
index eadaef152f1..00000000000
--- a/scripts/emailings/mailing-prepare.php
+++ /dev/null
@@ -1,58 +0,0 @@
-<?PHP
-/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.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.
- */
-
-/**
- *	\file       scripts/emailing/mailing-prepare.php
- *	\ingroup    mailing
- *	\brief      Script pour preparer les destinataires d'un mailing
- *	\version	$Id$
- */
-
-require_once("../../htdocs/master.inc.php");
-
-$error = 0;
-
-$sql = "SELECT m.rowid, m.cible";
-$sql .= " FROM ".MAIN_DB_PREFIX."mailing as m";
-$sql .= " WHERE m.statut in (0,1)";
-
-if ( $db->query($sql) )
-{
-	$num = $db->num_rows();
-	$i = 0;
-
-	while ($i < $num)
-	{
-		$row = $db->fetch_row();
-
-		dol_syslog("mailing-prepare: mailing $row[0]");
-		dol_syslog("mailing-prepare: mailing module $row[1]");
-
-		require_once(DOL_DOCUMENT_ROOT.'/includes/modules/mailings/'.$row[1].'.modules.php');
-
-		$classname = "mailing_".$row[1];
-
-		$obj = new $classname($db);
-		$obj->add_to_target($row[0]);
-
-		$i++;
-
-	}
-}
-
-?>
-- 
GitLab