24 lines
329 B
PHP
24 lines
329 B
PHP
<?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;
|
|
}
|
|
|