Notification Message Editor

This commit is contained in:
Ibnu Maksum
2023-08-14 11:24:27 +07:00
parent aeeb04fd67
commit 1904e5e8a0
10 changed files with 224 additions and 97 deletions

View File

@ -18,9 +18,15 @@ ORM::configure('logging', true);
include "autoload/Hookers.php";
// notification message
if(file_exists("uploads/notifications.json")){
$_notifmsg =json_decode(file_get_contents('uploads/notifications.json'), true);
}else{
$_notifmsg = json_decode(file_get_contents('uploads/notifications.default.json'), true);
}
//register all plugin
foreach (glob("system/plugin/*.php") as $filename) {
foreach (glob("plugin/*.php") as $filename) {
include $filename;
}
@ -55,7 +61,7 @@ foreach ($result as $value) {
}
date_default_timezone_set($config['timezone']);
$textExpired = $config['user_notification_expired_text'];
$textExpired = $_notifmsg['expired'];
$d = ORM::for_table('tbl_user_recharges')->where('status', 'on')->find_many();