";
$replyto = $sender;
$footer = "
Stay Brutal!
// DIE
http://www.executionroom.com
info@executionroom.com
";
class Email {
	public $timestamp;
	public $email;
	public function Email($email, $timestamp)
	{
		$this->email = $email;
		$this->timestamp = $timestamp;
	}
	function send($subject, $message) {
		global $subject_prefix;
		global $sender;
		global $replyto;
		global $footer;
		$message .= $footer;
		$message .= "\nTo stop receiving this newsletter, click the following link: http://www.executionroom.com/?page=news&action=unsubscribe&email=". $this->email . "\n";
		$headers = "From: " . $sender . "\r\n";
		$headers .= "Reply-To: " . $replyto . "\r\n";
		$headers .= "Content-Type: text/plain; charset=iso-8859-1\r\n";
		$headers .= "X-Mailer: PHP/" . phpversion();
		$subject = "[".$subject_prefix."] " . $subject;
		
		$ret = mail($this->email, $subject, $message, $headers);
		if(!$ret) echo "Fail(".$this->email.")";
 
		//usleep(100000);
	}
}
class Mailinglist {
	private $file;
	private $mailinglist = array();
	public function add($email) {
		$key = $email->email;
		$this->mailinglist[$key] = $email;
	}
	
	public function remove($email) {
		if(array_key_exists($email, $this->mailinglist)) {
			unset($this->mailinglist[$email]);
		}
	}
	public function write()
	{
		$fp = fopen($this->file, "w");
		fwrite($fp, "\n");
		fwrite($fp, "