mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-02 09:14:34 +02:00
Add Expired date for reminder
This commit is contained in:
parent
08153e6ec1
commit
a0b9e85f38
4 changed files with 27 additions and 9 deletions
|
@ -68,9 +68,13 @@ class Message
|
|||
|
||||
public static function sendPackageNotification($phone, $name, $package, $price, $message, $via)
|
||||
{
|
||||
global $u;
|
||||
$msg = str_replace('[[name]]', $name, $message);
|
||||
$msg = str_replace('[[package]]', $package, $msg);
|
||||
$msg = str_replace('[[price]]', $price, $msg);
|
||||
if($u){
|
||||
$msg = str_replace('[[expired_date]]', Lang::dateAndTimeFormat($u['expiration'], $u['time']), $msg);
|
||||
}
|
||||
if (
|
||||
!empty($phone) && strlen($phone) > 5
|
||||
&& !empty($message) && in_array($via, ['sms', 'wa'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue