Created
September 7, 2016 13:24
-
-
Save oaltman/fc2c605e1fb3cf8ab6b21f66d538bc52 to your computer and use it in GitHub Desktop.
QR platba
This file contains hidden or 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
RewriteEngine on | |
RewriteRule ^([0-9]+)/(.*)$ index.php?castka=$1&msg=$2 [L] | |
RewriteRule ^([0-9]+)$ index.php?castka=$1% |
This file contains hidden or 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
<?php | |
$message = $_GET['msg'] ? $_GET['msg'] : ""; | |
$castka = $_GET['castka']; | |
header('Content-Type: image/png'); | |
echo file_get_contents("https://api.paylibo.com/paylibo/generator/czech/image?compress=false&size=250&accountNumber=1425870014&bankCode=3030&amount=".$castka."¤cy=CZK&branding=false&message=".$message); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment