This commit is contained in:
devdatt 2025-12-31 17:57:41 +05:30
parent 185fd586a9
commit 8b37e0d76b
1 changed files with 4 additions and 26 deletions

View File

@ -62,12 +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);
echo '<div class="alert success">' echo '<script>alert("'
. '<strong>Message:</strong> ' . htmlspecialchars($data['message'], ENT_QUOTES)
. htmlspecialchars($data['message'], ENT_QUOTES, 'UTF-8') . '");</script>';
. '</div>';
break; break;
case 'reset': case 'reset':
$files = glob('/var/www/encoder/*.json'); $files = glob('/var/www/encoder/*.json');
@ -265,28 +265,6 @@ 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">