Hallo,
entweder bin ich zu doof es zu finden oder es gibt die Funktion garnicht.
Automatische Benachrichtung bei Erhalt einer PM.
Danke
verwendete ilch Version: 1.1 P
betroffene Homepage: paintballconnection.de
Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
Geschlossen |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | function sendpm ( $sid , $eid , $ti , $te , $status = 0) { if ( is_array ( $eid )) { db_query( "INSERT INTO `prefix_pm` (`sid`,`eid`,`time`,`titel`,`txt`,`status`) " . "SELECT " . $sid . ",`prefix_user`.`id`,'" .time(). "','" . $ti . "','" . $te . "'," . $status . " FROM `prefix_user` WHERE `prefix_user`.`id` IN (" . implode( ',' , $eid ) . ")" ); } else { db_query( "INSERT INTO `prefix_pm` (`sid`,`eid`,`time`,`titel`,`txt`,`status`) VALUES (" . $sid . "," . $eid . ",'" .time(). "','" . $ti . "','" . $te . "'," . $status . ")" ); } $mailAddresses = array (); $mailQry = db_query( 'SELECT email FROM prefix_user WHERE id IN (' . implode( ',' , ( array ) $eid ) . ')' ); while ( $row = db_fetch_assoc( $mailQry )) { $mailAddresses [] = $row [ 'email' ]; } $mailAddresses = array_filter ( $mailAddresses ); foreach ( $mailAddresses as $mailAddress ) { icmail( $mailAddress , "New PM" , "You have receiced a new message. You can read it here: " . $_SERVER [ 'HTTP_HOST' ] . $_SERVER [ 'PHP_SELF' ] . '?forum-privmsg abrufen.' . "\n\nTitel:" . $ti . "\n\n" . $te ); } } |
1 | $mailAddresses = []; |
Geschlossen | ||
![]() |
Zurück zu Allgemein |