From 8b93881ce7ab4e0a8b0c8426da1ddfeed19c2309 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 7 Jan 2014 20:36:16 -0800 Subject: qr code support --- mod/photo.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'mod') diff --git a/mod/photo.php b/mod/photo.php index 6f047bea1..1319f9569 100644 --- a/mod/photo.php +++ b/mod/photo.php @@ -22,6 +22,14 @@ function photo_init(&$a) { // NOTREACHED } + if($photo === 'qr') { + $t = $_GET['qr']; + require_once('library/phpqrcode/phpqrcode.php'); + header("Content-type: image/png"); + QRcode::png(($t) ? $t : '.'); + killme(); + } + $observer_xchan = get_observer_hash(); $default = get_default_profile_photo(); -- cgit v1.2.3