-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- README: update formatting and cleanup - Fix undefined placeholder warnings - take picture: red error message - Allow admins to choose what gets deleted at reset (inspired by #178) - always: - delete db.txt - optional (but enabled by default): - delete images - delete "mail-addresses.txt - delete personal config (my.config.inc.php) - Add possibility to choose dark countdown background (inspired by #198 ) - Allow defining Photobooth web server IP to fix image download via QR-Code if Photobooth is accessed via localhost/127.0.0.1
- Loading branch information
Showing
14 changed files
with
201 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
<?php | ||
require_once('../lib/config.php'); | ||
|
||
if (!isset($config['webserver_ip'])) { | ||
$SERVER_IP = $_SERVER['HTTP_HOST']; | ||
} else { | ||
$SERVER_IP = $config['webserver_ip']; | ||
} | ||
|
||
$filename = $_GET['filename']; | ||
include('../vendor/phpqrcode/qrlib.php'); | ||
$url = 'http://'.$_SERVER['HTTP_HOST'].'/api/download.php?image='; | ||
$url = 'http://'.$SERVER_IP.'/api/download.php?image='; | ||
QRcode::png($url.$filename, false, QR_ECLEVEL_H, 10); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.