Changeset 1901 for trunk/upload.php
- Timestamp:
- Mar 13, 2007, 12:10:35 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/upload.php
r1900 r1901 223 223 pwg_query( $query ); 224 224 $page['waiting_id'] = mysql_insert_id(); 225 226 if ($conf['email_admin_on_picture_uploaded']) 227 { 228 include_once(PHPWG_ROOT_PATH.'include/functions_mail.inc.php'); 229 230 $waiting_url = get_absolute_root_url().'admin.php?page=waiting'; 231 232 $content = 233 'Category: '.get_cat_display_name($category['upper_names'], null, false)."\n" 234 .'Picture name: '.$_FILES['picture']['name']."\n" 235 .'User: '.$_POST['username']."\n" 236 .'Email: '.$_POST['mail_address']."\n" 237 .'Picture name: '.$_POST['name']."\n" 238 .'Author: '.$_POST['author']."\n" 239 .'Creation Date: '.$_POST['date_creation']."\n" 240 .'Comment: '.$_POST['comment']."\n" 241 .get_block_mail_admin_info() 242 .'Waiting page: '.$waiting_url."\n"; 243 244 pwg_mail 245 ( 246 format_email('administrators', get_webmaster_mail_address()), 247 array 248 ( 249 'subject' => 'PWG picture uploaded by '.$_POST['username'], 250 'content' => $content, 251 'Bcc' => get_administrators_email() 252 ) 253 ); 254 } 225 255 } 226 256 }
Note: See TracChangeset
for help on using the changeset viewer.