aboutsummaryrefslogtreecommitdiffstats
path: root/mod/photo.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-01-07 20:36:16 -0800
committerfriendica <info@friendica.com>2014-01-07 20:36:16 -0800
commit8b93881ce7ab4e0a8b0c8426da1ddfeed19c2309 (patch)
tree52d4b15d798933c068a8eb12374ac192db8fbb42 /mod/photo.php
parent401183780540812929e35a59348b7f2e347d4b8f (diff)
downloadvolse-hubzilla-8b93881ce7ab4e0a8b0c8426da1ddfeed19c2309.tar.gz
volse-hubzilla-8b93881ce7ab4e0a8b0c8426da1ddfeed19c2309.tar.bz2
volse-hubzilla-8b93881ce7ab4e0a8b0c8426da1ddfeed19c2309.zip
qr code support
Diffstat (limited to 'mod/photo.php')
-rw-r--r--mod/photo.php8
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();