diff options
| author | Maksymilian Jopek <maks@jopek.eu> | 2023-02-25 19:06:54 +0100 |
|---|---|---|
| committer | Maksymilian Jopek <maks@jopek.eu> | 2023-03-26 20:04:17 +0200 |
| commit | 19218d758d4fc0f8f5db5a97eb9dcfdb5086f844 (patch) | |
| tree | 9a5e956cd6561e7d1919e19e5d080c69017763c2 /api/change-order.php | |
| parent | 3df4ebc26d93afed16670e37edb26aa3b5a17317 (diff) | |
| download | mlos-19218d758d4fc0f8f5db5a97eb9dcfdb5086f844.tar.gz mlos-19218d758d4fc0f8f5db5a97eb9dcfdb5086f844.tar.zst mlos-19218d758d4fc0f8f5db5a97eb9dcfdb5086f844.zip | |
Remove path from repo
Add start script
Diffstat (limited to 'api/change-order.php')
| -rw-r--r-- | api/change-order.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/api/change-order.php b/api/change-order.php index b498605..8901187 100644 --- a/api/change-order.php +++ b/api/change-order.php @@ -4,8 +4,8 @@ if (empty($_POST["old-order"]) || empty($_POST["new-order"])) { error_log("not enough post"); exit(0); } -$path = "/home/maks/school/clientApps/mlos/src/db.xml"; -require_once "/home/maks/school/clientApps/mlos/src/data.php"; +$path = "%PWD%src/db.xml"; +require_once "%PWD%src/data.php"; $old_order = $_POST["old-order"]; $new_order = $_POST["new-order"]; |
