diff options
author | plegall <plg@piwigo.org> | 2005-08-24 22:22:29 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2005-08-24 22:22:29 +0000 |
commit | 429dd2ff626119727103297cd33b3c9a3b921d89 (patch) | |
tree | 5059b7d2bcc7bc849f65c6cb569e13900f0ab01c /include/functions.inc.php | |
parent | b08df0468873fa5e6f69a0737d3557bd1de0daa1 (diff) |
- deletion : no mail notification anymore. Feature replaced by RSS feed
notification.
- improvement : on waiting pictures management. Ability to validate all or
reject all in one clic.
- regrouped fields in admin/update
git-svn-id: http://piwigo.org/svn/trunk@849 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions.inc.php')
-rw-r--r-- | include/functions.inc.php | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php index 8a3a1f116..a37623ca2 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -433,48 +433,6 @@ function format_date($date, $type = 'us', $show_time = false) return $formated_date; } -// notify sends a email to every admin of the gallery -function notify( $type, $infos = '' ) -{ - global $conf; - - $headers = 'From: <'.$conf['mail_webmaster'].'>'."\n"; - $headers.= 'Reply-To: '.$conf['mail_webmaster']."\n"; - $headers.= 'X-Mailer: PhpWebGallery, PHP '.phpversion(); - - $options = '-f '.$conf['mail_webmaster']; - // retrieving all administrators - $query = 'SELECT username,mail_address,language'; - $query.= ' FROM '.USERS_TABLE; - $query.= " WHERE status = 'admin'"; - $query.= ' AND mail_address IS NOT NULL'; - $query.= ';'; - $result = pwg_query( $query ); - while ( $row = mysql_fetch_array( $result ) ) - { - $to = $row['mail_address']; - include( PHPWG_ROOT_PATH.'language/'.$row['language'].'/common.lang.php' ); - $content = $lang['mail_hello']."\n\n"; - switch ( $type ) - { - case 'upload' : - $subject = $lang['mail_new_upload_subject']; - $content.= $lang['mail_new_upload_content']; - break; - case 'comment' : - $subject = $lang['mail_new_comment_subject']; - $content.= $lang['mail_new_comment_content']; - break; - } - $infos = str_replace( ' ', ' ', $infos ); - $infos = str_replace( '−', '-', $infos ); - $content.= "\n\n".$infos; - $content.= "\n\n-- \nPhpWebGallery ".PHPWG_VERSION; - $content = wordwrap( $content, 72 ); - @mail( $to, $subject, $content, $headers, $options ); - } -} - function pwg_write_debug() { global $debug; |