change status online to •

This commit is contained in:
iBNu Maksum 2025-01-07 16:41:52 +07:00
parent 690e5912c0
commit 0dc50a68f5
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5
2 changed files with 14 additions and 5 deletions

View File

@ -114,10 +114,12 @@ switch ($action) {
//don't wait more than 5 seconds for response from device, otherwise we get timeout error.
ini_set('default_socket_timeout', 5);
if ((new $p['device'])->online_customer($c, $p['routers'])) {
echo '<span class="label label-success" title="online">&nbsp;</span>';
echo '<span style="color: green;" title="online">&bull;</span>';
}else{
echo '<span style="color: yellow;" title="offline">&bull;</span>';
}
} catch (Exception $e) {
echo '<span class="label label-danger" title="error">&nbsp;</span>';
echo '<span style="color: red;" title="'.$e->getMessage().'">&bull;</span>';
}
}
}
@ -141,10 +143,12 @@ switch ($action) {
//don't wait more than 5 seconds for response from device, otherwise we get timeout error.
ini_set('default_socket_timeout', 5);
if ((new $p['device'])->online_customer($c, $p['routers'])) {
$status = '<span class="label label-success" title="online">&nbsp;</span>';
$status = '<span style="color: green;" title="online">&bull;</span>';
}else{
$status = '<span style="color: yellow;" title="offline">&bull;</span>';
}
} catch (Exception $e) {
$status = '<span class="label label-danger" title="error">&nbsp;</span>';
$status = '<span style="color: red;" title="'.$e->getMessage().'">&bull;</span>';
}
}
}

View File

@ -948,5 +948,10 @@
"Total_SMS_Sent": "Total SMS Sent",
"Total_SMS_Failed": "Total SMS Failed",
"Total_WhatsApp_Sent": "Total WhatsApp Sent",
"Total_WhatsApp_Failed": "Total WhatsApp Failed"
"Total_WhatsApp_Failed": "Total WhatsApp Failed",
"First_Name": "First Name",
"Last_Name": "Last Name",
"Not_Working_with_Freeradius_Mysql": "Not Working with Freeradius Mysql",
"Radius_Rest_Interim_Update": "Radius Rest Interim-Update",
"in_minutes__leave_0_to_disable_this_feature_": "in minutes, leave 0 to disable this feature."
}