alert
This commit is contained in:
parent
d764c7effc
commit
185fd586a9
|
|
@ -62,10 +62,12 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||||
|
|
||||||
$response = curl_exec($ch);
|
$response = curl_exec($ch);
|
||||||
curl_close($ch);
|
curl_close($ch);
|
||||||
$data = json_decode($response,true);
|
$data = json_decode($response, true);
|
||||||
|
|
||||||
error_log($data['status']);
|
echo '<div class="alert success">'
|
||||||
error_log($data['message']);
|
. '<strong>Message:</strong> '
|
||||||
|
. htmlspecialchars($data['message'], ENT_QUOTES, 'UTF-8')
|
||||||
|
. '</div>';
|
||||||
break;
|
break;
|
||||||
case 'reset':
|
case 'reset':
|
||||||
$files = glob('/var/www/encoder/*.json');
|
$files = glob('/var/www/encoder/*.json');
|
||||||
|
|
@ -263,6 +265,28 @@ include 'header.php';
|
||||||
return confirm("Are you sure you want to download backup ? ");
|
return confirm("Are you sure you want to download backup ? ");
|
||||||
}
|
}
|
||||||
</script>
|
</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">
|
<div class="containerindex">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue