Changeset 85 for trunk/picture.php


Ignore:
Timestamp:
Sep 11, 2003, 12:24:03 AM (21 years ago)
Author:
z0rglub
Message:

Mail notification for admins

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/picture.php

    r84 r85  
    606606        $vtp->setVar( $handle, 'information.content', $message );
    607607        $vtp->closeSession( $handle, 'information' );
     608        // notification to the administrators
     609        if ( $conf['mail_notification'] )
     610        {
     611          $cat_name = get_cat_display_name( $page['cat_name'], ' > ', '' );
     612          $cat_name = strip_tags( $cat_name );
     613          if ( $page['name'] == '' ) $picture = $page['file'];
     614          else                       $picture = $page['name'];
     615          notify( 'comment', $cat_name.' > '.$picture );
     616        }
    608617      }
    609618      else
Note: See TracChangeset for help on using the changeset viewer.