mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-06-25 19:18:33 +02:00
change status online to •
This commit is contained in:
parent
690e5912c0
commit
0dc50a68f5
2 changed files with 14 additions and 5 deletions
|
@ -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"> </span>';
|
||||
echo '<span style="color: green;" title="online">•</span>';
|
||||
}else{
|
||||
echo '<span style="color: yellow;" title="offline">•</span>';
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
echo '<span class="label label-danger" title="error"> </span>';
|
||||
echo '<span style="color: red;" title="'.$e->getMessage().'">•</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"> </span>';
|
||||
$status = '<span style="color: green;" title="online">•</span>';
|
||||
}else{
|
||||
$status = '<span style="color: yellow;" title="offline">•</span>';
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
$status = '<span class="label label-danger" title="error"> </span>';
|
||||
$status = '<span style="color: red;" title="'.$e->getMessage().'">•</span>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue