-<?php
-/**
- * Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)
- * Copyright (C) 2002-2004 The Nucleus Group
- *
- * 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.
- * (see nucleus/documentation/index.html#license for more info)
- *
- * Class used to represent a collection of e-mail addresses, to which a
- * message can be sent (e.g. comment or karma vote notification).
- *
- * $Id: NOTIFICATION.php,v 1.1.1.1 2005-02-28 07:14:51 kimitake Exp $
- */
-class NOTIFICATION {
-
- // array of addresses that need to get a notification
- var $addresses = array();
-
- /**
- * takes one string as argument, containing multiple e-mail addresses
- * separated by semicolons
- * eg: site@demuynck.org;nucleus@demuynck.org;foo@bar.com
- */
- function NOTIFICATION($addresses) {
- $this->addresses = explode(';' , $addresses);
- }
-
- /**
- * returns true if all addresses are valid
- */
- function validAddresses() {
- foreach ( $this->addresses as $address ) {
- if (!isValidMailAddress(trim($address)))
- return 0;
- }
- return 1;
- }
-
- /**
- * Sends email messages to all the email addresses
- */
- function notify($title, $message, $from) {
- global $member;
-
- foreach ( $this->addresses as $address ) {
- $address = trim($address);
-
- if (!$address)
- continue;
-
- // don't send messages to yourself
- if ($member->isLoggedIn() && ($member->getEmail() == $address))
- continue;
-
- @mb_language('ja');
- @mb_internal_encoding(_CHARSET);
- @mb_send_mail($address, $title, $message, "From: ". $from);
- }
- }
-}
-
+<?php\r
+/**\r
+ * Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/) \r
+ * Copyright (C) 2002-2004 The Nucleus Group\r
+ *\r
+ * This program is free software; you can redistribute it and/or\r
+ * modify it under the terms of the GNU General Public License\r
+ * as published by the Free Software Foundation; either version 2\r
+ * of the License, or (at your option) any later version.\r
+ * (see nucleus/documentation/index.html#license for more info)\r
+ *\r
+ * Class used to represent a collection of e-mail addresses, to which a\r
+ * message can be sent (e.g. comment or karma vote notification).\r
+ */\r
+class NOTIFICATION {\r
+\r
+ // array of addresses that need to get a notification\r
+ var $addresses = array();\r
+\r
+ /**\r
+ * takes one string as argument, containing multiple e-mail addresses\r
+ * separated by semicolons\r
+ * eg: site@demuynck.org;nucleus@demuynck.org;foo@bar.com\r
+ */\r
+ function NOTIFICATION($addresses) {\r
+ $this->addresses = explode(';' , $addresses);\r
+ }\r
+\r
+ /**\r
+ * returns true if all addresses are valid\r
+ */\r
+ function validAddresses() {\r
+ foreach ( $this->addresses as $address ) {\r
+ if (!isValidMailAddress(trim($address))) \r
+ return 0;\r
+ }\r
+ return 1;\r
+ }\r
+ \r
+ /**\r
+ * Sends email messages to all the email addresses\r
+ */\r
+ function notify($title, $message, $from) {\r
+ global $member;\r
+ \r
+ foreach ( $this->addresses as $address ) {\r
+ $address = trim($address);\r
+ \r
+ if (!$address)\r
+ continue;\r
+ \r
+ // don't send messages to yourself\r
+ if ($member->isLoggedIn() && ($member->getEmail() == $address))\r
+ continue;\r
+ \r
+ @mb_language('ja');\r
+ @mb_internal_encoding(_CHARSET);\r
+ @mb_send_mail($address, $title, $message, "From: ". $from);\r
+ }\r
+ }\r
+}\r
+\r
?>
\ No newline at end of file