diff options
author | friendica <info@friendica.com> | 2014-01-07 20:36:16 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-01-07 20:36:16 -0800 |
commit | 8b93881ce7ab4e0a8b0c8426da1ddfeed19c2309 (patch) | |
tree | 52d4b15d798933c068a8eb12374ac192db8fbb42 /mod | |
parent | 401183780540812929e35a59348b7f2e347d4b8f (diff) | |
download | volse-hubzilla-8b93881ce7ab4e0a8b0c8426da1ddfeed19c2309.tar.gz volse-hubzilla-8b93881ce7ab4e0a8b0c8426da1ddfeed19c2309.tar.bz2 volse-hubzilla-8b93881ce7ab4e0a8b0c8426da1ddfeed19c2309.zip |
qr code support
Diffstat (limited to 'mod')
-rw-r--r-- | mod/photo.php | 8 |
1 files changed, 8 insertions, 0 deletions
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(); |