From 148bc613202a7525f79813ac50508bf9c3a07b96 Mon Sep 17 00:00:00 2001 From: james Date: Wed, 2 Dec 2009 22:19:42 +0000 Subject: [PATCH] Don't need this file anymore :) --- admin/send_communication.php | 78 ------------------------------------ 1 file changed, 78 deletions(-) delete mode 100644 admin/send_communication.php diff --git a/admin/send_communication.php b/admin/send_communication.php deleted file mode 100644 index 5621b21..0000000 --- a/admin/send_communication.php +++ /dev/null @@ -1,78 +0,0 @@ - - Copyright (C) 2005 James Grant - - 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, version 2. - - 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; see the file COPYING. If not, write to - the Free Software Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. -*/ -?> -from; - $subject=$communication->subject; - $body=$communication->body; - $headers="From: $from\r\nReply-To: $from\r\nReturn-Path: $from\r\n"; - $x=1; - - if(array_key_exists($to,$mailqueries)) - { - $q=mysql_query($mailqueries[$to]['query']); - while($r=mysql_fetch_object($q)) - { - if($r->firstname && $r->lastname) - $to="$r->firstname $r->lastname <".$r->email.">"; - else if($r->firstname) - $to="$r->firstname <".$r->email.">"; - else - $to=$r->email; - - mail($to,$subject,$body,$headers); - $fp=fopen("../data/communication.lock.$id","w"); - fputs($fp,$x."\n"); - fclose($fp); - usleep(rand($sleepmin,$sleepmax)); - $x++; - - } - unlink("../data/communication.lock.$id"); - unlink("../data/communication.lock"); - } - else - echo i18n("Unknown 'to' to send email communication to (%1)",array($to)); - -} -else -{ - //no communication to send... why were we called?!?!?! -} - -?>