alert
This commit is contained in:
parent
d764c7effc
commit
185fd586a9
|
|
@ -64,8 +64,10 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|||
curl_close($ch);
|
||||
$data = json_decode($response, true);
|
||||
|
||||
error_log($data['status']);
|
||||
error_log($data['message']);
|
||||
echo '<div class="alert success">'
|
||||
. '<strong>Message:</strong> '
|
||||
. htmlspecialchars($data['message'], ENT_QUOTES, 'UTF-8')
|
||||
. '</div>';
|
||||
break;
|
||||
case 'reset':
|
||||
$files = glob('/var/www/encoder/*.json');
|
||||
|
|
@ -263,6 +265,28 @@ include 'header.php';
|
|||
return confirm("Are you sure you want to download backup ? ");
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
.alert {
|
||||
padding: 10px;
|
||||
border-radius: 4px;
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
.alert.success {
|
||||
background: #e6fffa;
|
||||
color: #065f46;
|
||||
}
|
||||
|
||||
.alert.error {
|
||||
background: #fee2e2;
|
||||
color: #7f1d1d;
|
||||
}
|
||||
|
||||
.alert.warning {
|
||||
background: #fff7ed;
|
||||
color: #9a3412;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
<div class="containerindex">
|
||||
|
|
|
|||
Loading…
Reference in New Issue