Skip to content

Instantly share code, notes, and snippets.

@oaltman
Created September 7, 2016 13:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save oaltman/fc2c605e1fb3cf8ab6b21f66d538bc52 to your computer and use it in GitHub Desktop.
Save oaltman/fc2c605e1fb3cf8ab6b21f66d538bc52 to your computer and use it in GitHub Desktop.
QR platba
RewriteEngine on
RewriteRule ^([0-9]+)/(.*)$ index.php?castka=$1&msg=$2 [L]
RewriteRule ^([0-9]+)$ index.php?castka=$1%
<?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."&currency=CZK&branding=false&message=".$message);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment