mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-04 10:15:03 +02:00
Different Reminder for PPPOE and Hotspot using <divider>
This commit is contained in:
parent
827bb8706d
commit
3c7e6c7a64
4 changed files with 109 additions and 24 deletions
|
@ -393,6 +393,18 @@ class Message
|
|||
}
|
||||
}
|
||||
|
||||
public static function getMessageType($type, $message){
|
||||
if(strpos($message, "<divider>") === false){
|
||||
return $message;
|
||||
}
|
||||
$msgs = explode("<divider>", $message);
|
||||
if($type == "PPPOE"){
|
||||
return $msgs[1];
|
||||
}else{
|
||||
return $msgs[0];
|
||||
}
|
||||
}
|
||||
|
||||
public static function logMessage($messageType, $recipient, $messageContent, $status, $errorMessage = null)
|
||||
{
|
||||
$log = ORM::for_table('tbl_message_logs')->create();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue