aboutsummaryrefslogtreecommitdiffstats
path: root/mod/photo.php
diff options
context:
space:
mode:
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();