update
This commit is contained in:
parent
b4565f5793
commit
961e56de48
|
|
@ -1,5 +1,4 @@
|
||||||
<?php include 'header.php'; ?>
|
<?php include 'header.php'; ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$jsonFile = __DIR__ . "/input.json";
|
$jsonFile = __DIR__ . "/input.json";
|
||||||
|
|
@ -9,7 +8,6 @@ if (!file_exists($jsonFile)) {
|
||||||
|
|
||||||
$data = json_decode(file_get_contents($jsonFile), true);
|
$data = json_decode(file_get_contents($jsonFile), true);
|
||||||
|
|
||||||
// Handle new service submission (AJAX POST)
|
|
||||||
if ($_SERVER["REQUEST_METHOD"] === "POST" && isset($_POST["action"]) && $_POST["action"] === "add") {
|
if ($_SERVER["REQUEST_METHOD"] === "POST" && isset($_POST["action"]) && $_POST["action"] === "add") {
|
||||||
$new = [
|
$new = [
|
||||||
"id" => time(),
|
"id" => time(),
|
||||||
|
|
@ -28,7 +26,6 @@ if ($_SERVER["REQUEST_METHOD"] === "POST" && isset($_POST["action"]) && $_POST["
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue