qr_id route php getDog

This commit is contained in:
2022-12-15 23:32:34 +01:00
parent 01190c5ff2
commit a1727381ba
18 changed files with 381 additions and 10 deletions

23
php/php-dog/session.php Normal file
View File

@ -0,0 +1,23 @@
<?php
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Headers: access");
header("Access-Control-Allow-Methods: GET");
header("Content-Type: application/json; charset=UTF-8");
header("Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With");
session_start();
$return =
[
"success" => 0,
"user" => null
];
if (isset($_SESSION['user'])) {
$return =
[
"success" => 1,
"user" => $_SESSION['user']
];
}
echo json_encode($return);
?>