From 637cdd1e23a6faadfea3988da80ee3648cf8999a Mon Sep 17 00:00:00 2001 From: z0rglub Date: Wed, 10 Sep 2003 22:24:03 +0000 Subject: Mail notification for admins git-svn-id: http://piwigo.org/svn/trunk@85 68402e56-0260-453c-a942-63ccdbb3a9ee --- picture.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'picture.php') diff --git a/picture.php b/picture.php index 403301de7..4af9ce5ed 100644 --- a/picture.php +++ b/picture.php @@ -605,6 +605,15 @@ if ( $conf['show_comments'] ) } $vtp->setVar( $handle, 'information.content', $message ); $vtp->closeSession( $handle, 'information' ); + // notification to the administrators + if ( $conf['mail_notification'] ) + { + $cat_name = get_cat_display_name( $page['cat_name'], ' > ', '' ); + $cat_name = strip_tags( $cat_name ); + if ( $page['name'] == '' ) $picture = $page['file']; + else $picture = $page['name']; + notify( 'comment', $cat_name.' > '.$picture ); + } } else { -- cgit v1.2.3