ordersprinter/webapp/php/utilities/osqrcode.php

24 lines
329 B
PHP
Raw Normal View History

2020-11-19 23:13:57 +01:00
<?php
error_reporting(E_ERROR);
require_once (__DIR__. '/../3rdparty/phpqrcode.php');
class OsQrcode {
public static function createQrCodeForLink($text) {
QRcode::png($text);
}
}
$cmd = $_GET["cmd"];
$arg = $_GET["arg"];
switch($cmd) {
case "link":
OsQrcode::createQrCodeForLink($arg);
break;
default:
break;
}