From a5b08e0daf0b42a664faa98e83398376dfedcbc6 Mon Sep 17 00:00:00 2001 From: mdPlusPlus Date: Fri, 20 Jan 2023 15:25:24 +0100 Subject: [PATCH] Add debug output --- php/generate-html.php | 4 ++-- sites/+components/qr_modals.php | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/php/generate-html.php b/php/generate-html.php index b942f8bc..d6bfb738 100644 --- a/php/generate-html.php +++ b/php/generate-html.php @@ -26,8 +26,8 @@ // This works? Yes, yes it does. // We do this to isolate the environment and include-once triggers, // otherwise we could include the documents in an ob_* wrapper. - $document = `php $phppath`; + $document = `php $phppath`; // should be identical to shell_exec("php $phppath") file_put_contents($docpath, $document); } -?> \ No newline at end of file +?> diff --git a/sites/+components/qr_modals.php b/sites/+components/qr_modals.php index dab45753..909d0cf0 100644 --- a/sites/+components/qr_modals.php +++ b/sites/+components/qr_modals.php @@ -12,7 +12,9 @@ // https://developers.google.com/chart/infographics/docs/qr_codes $png_cached = room_qr_code_cached($room_id); if (file_exists($png_cached)) +// fwrite(STDERR, "QR code found for " . $room_id . PHP_EOL); return base64_encode(file_get_contents($png_cached)); +// fwrite(STDERR, "QR code NOT found for " . $room_id . PHP_EOL); $data = urlencode($join_url); $api_url = "https://chart.googleapis.com/chart?cht=qr" .