Skip to content

Commit

Permalink
debug currentLocale cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed Oct 26, 2024
1 parent bffd6cc commit fa8ce44
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions php/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@
define("METADATA_URL", "https://litcal.johnromanodorazio.com/api/{$endpointV}/calendars");
$directAccess = (basename(__FILE__) === basename($_SERVER['SCRIPT_FILENAME']));

if (false === $directAccess) {
if (!empty($_COOKIE["currentLocale"])) {
echo '<!-- value of currentLocale: ' . $_COOKIE["currentLocale"] . ' -->';
} else {
echo '<!-- currentLocale cookie is empty! -->';
}
}

$litSettings = new LitSettings($_GET, $directAccess);

$nationalCalendarOptions = '<option value="">---</option>';
Expand Down

0 comments on commit fa8ce44

Please sign in to comment.