This commit is contained in:
devdatt 2025-12-31 17:55:33 +05:30
parent d764c7effc
commit 185fd586a9
1 changed files with 27 additions and 3 deletions

View File

@ -64,8 +64,10 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
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">