Skip to content

Instantly share code, notes, and snippets.

@ondrejsika
Forked from oaltman/.htaccess
Created September 7, 2016 13:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ondrejsika/bccc5a1e5beb8740968521150c45ae6a to your computer and use it in GitHub Desktop.
Save ondrejsika/bccc5a1e5beb8740968521150c45ae6a 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