7e47ce238b
添加了管理后台所需的图片资源、Excel文件、安装程序以及设计相关的图片文件
29 lines
942 B
PHP
29 lines
942 B
PHP
<?php
|
|
//-------------------------------插件
|
|
header("Content-type: text/html; charset=utf-8");
|
|
$json_data="{";
|
|
if(THIS_IN!="edt_ipad")
|
|
exit("错误的访问!");
|
|
$uid=check_cookie_jxs();
|
|
$msg_login=get_db_msg("select * from ".$table_pre."client where id='".$uid."'");
|
|
|
|
include THIS_FILE_ROOT.'/include/phpqrcode/phpqrcode.php';
|
|
//$value = $_COOKIE["edt_default_username"]; //二维码内容
|
|
$value = $msg_login["username"];
|
|
$errorCorrectionLevel = 'L';//容错级别
|
|
$matrixPointSize = 16;//生成图片大小
|
|
//$str = str_replace(PHP_EOL, '', $str);
|
|
//生成二维码图片
|
|
//QRcode::png($value, "qrcode.png", $errorCorrectionLevel, $matrixPointSize, 2);
|
|
|
|
$QRcode = new \QRcode();
|
|
ob_start();
|
|
$QRcode->png($value,false,$errorCorrectionLevel,$matrixPointSize);
|
|
$imageString = base64_encode(ob_get_contents());
|
|
ob_end_clean();
|
|
$json_data.="\"img_base64\":\"".$imageString."\",";
|
|
|
|
$json_data=substr($json_data,0,-1)."}";
|
|
echo $json_data;
|
|
?>
|