diff --git a/.gitignore b/.gitignore index 8b13789..da23f20 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ - +/data/users.json +/data/tickets.json diff --git a/php/delete_ticket.php b/php/delete_ticket.php index b61d594..452bed4 100644 --- a/php/delete_ticket.php +++ b/php/delete_ticket.php @@ -13,7 +13,7 @@ if($index === null){ exit; } -$ticketsPath = __DIR__ . '../data/tickets.json'; +$ticketsPath = '../data/tickets.json'; $tickets = []; if(file_exists($ticketsPath)){ diff --git a/php/save_ticket.php b/php/save_ticket.php index 503ebf3..5071b78 100644 --- a/php/save_ticket.php +++ b/php/save_ticket.php @@ -22,7 +22,7 @@ $newTicket = [ 'date' => $date ]; -$ticketsPath = __DIR__ . '../data/tickets.json'; +$ticketsPath ='../data/tickets.json'; $tickets = []; if (file_exists($ticketsPath)) { diff --git a/php/update_ticket.php b/php/update_ticket.php index 2788f78..b3a5414 100644 --- a/php/update_ticket.php +++ b/php/update_ticket.php @@ -14,7 +14,7 @@ if($index === null || $ticket === null){ exit; } -$ticketsPath = __DIR__ . '../data/tickets.json'; +$ticketsPath = '../data/tickets.json'; $tickets = []; if(file_exists($ticketsPath)){