Add debug output

dev
mdPlusPlus 1 year ago
parent 8907861656
commit 6963797dab

@ -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);
}
?>
?>

@ -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" .

Loading…
Cancel
Save