2021-05-04 12:54:59 +00:00
|
|
|
|
<!-- 对话框HTML -->
|
|
|
|
|
<div class="modal fade" id="myModal">
|
|
|
|
|
<div class="modal-dialog modal-sm">
|
|
|
|
|
<div class="modal-content">
|
|
|
|
|
<div class="modal-header">
|
|
|
|
|
<button type="button" class="close" data-dismiss="modal">
|
|
|
|
|
<span aria-hidden="true">×</span>
|
|
|
|
|
<span class="sr-only">关闭</span></button>
|
|
|
|
|
<h4 class="modal-title icon icon-mobile" style="text-align: center">扫描二维码使用手机上传</h4>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-body">
|
|
|
|
|
<center>
|
|
|
|
|
<input id="text" type="hidden" value="" />
|
|
|
|
|
<p id="qrcode" style="width:100%;"></p>
|
|
|
|
|
</div>
|
|
|
|
|
</center>
|
|
|
|
|
<div class="modal-footer">
|
|
|
|
|
<a class="btn btn-danger btn-sm" href="" target="_blank">访问</a>
|
|
|
|
|
<button type="button" class="btn btn-primary btn-sm" data-dismiss="modal">关闭</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<script>
|
|
|
|
|
// js二维码 获取当前网址并赋值给id=text的value
|
|
|
|
|
document.getElementById("text").value = window.location.href;
|
|
|
|
|
var qrcode = new QRCode(document.getElementById("qrcode"), {
|
|
|
|
|
width: 200,
|
|
|
|
|
height: 200,
|
|
|
|
|
});
|
2019-05-23 15:12:06 +00:00
|
|
|
|
|
2021-05-04 12:54:59 +00:00
|
|
|
|
function makeCode() {
|
|
|
|
|
var elText = document.getElementById("text");
|
|
|
|
|
if (!elText.value) {
|
|
|
|
|
alert("Input a text");
|
|
|
|
|
elText.focus();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
qrcode.makeCode(elText.value);
|
|
|
|
|
}
|
|
|
|
|
makeCode();
|
|
|
|
|
$("#text").on("blur",
|
|
|
|
|
function() {
|
|
|
|
|
makeCode();
|
|
|
|
|
}).on("keydown",
|
|
|
|
|
function(e) {
|
|
|
|
|
if (e.keyCode == 13) {
|
2019-07-02 07:05:19 +00:00
|
|
|
|
makeCode();
|
2021-05-04 12:54:59 +00:00
|
|
|
|
}
|
|
|
|
|
});
|
2021-05-22 03:27:53 +00:00
|
|
|
|
|
2021-05-08 07:35:27 +00:00
|
|
|
|
// NProgress
|
2021-05-04 12:54:59 +00:00
|
|
|
|
$("body").show();
|
|
|
|
|
$(".version").text(NProgress.version);
|
|
|
|
|
NProgress.start();
|
|
|
|
|
setTimeout(function() {
|
|
|
|
|
NProgress.done();
|
|
|
|
|
$(".fade").removeClass("out");
|
|
|
|
|
}, 1000);
|
|
|
|
|
|
|
|
|
|
$("#b-0").click(function() {
|
|
|
|
|
NProgress.start();
|
|
|
|
|
});
|
|
|
|
|
$("#b-40").click(function() {
|
|
|
|
|
NProgress.set(0.4);
|
|
|
|
|
});
|
|
|
|
|
$("#b-inc").click(function() {
|
|
|
|
|
NProgress.inc();
|
|
|
|
|
});
|
|
|
|
|
$("#b-100").click(function() {
|
|
|
|
|
NProgress.done();
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
<script src="../public/static/hm.js"></script>
|
|
|
|
|
<footer class="text-muted small col-md-12" style="text-align: center;margin-bottom: 10px"><?php echo showAD('bot'); ?>
|
|
|
|
|
<p><?php echo $config['customize']; ?></p>
|
2021-05-22 03:27:53 +00:00
|
|
|
|
|
|
|
|
|
|
2021-05-08 07:35:27 +00:00
|
|
|
|
<hr>
|
|
|
|
|
<p>请勿上传违反中国政策的图片<i class="icon icon-smile"></i> </p>
|
2021-05-04 12:54:59 +00:00
|
|
|
|
<div>
|
|
|
|
|
<!-- 对话框触发按钮 -->
|
|
|
|
|
<a href="#" data-position="center" data-moveable="inside" data-moveable="true" data-toggle="modal" data-target="#myModal">
|
2021-05-08 07:35:27 +00:00
|
|
|
|
<i class="icon icon-qrcode"></i>二维码 </a>
|
2021-05-22 03:27:53 +00:00
|
|
|
|
<a href="<?php echo $config['domain']; ?>/tinyfilemanager.php?p=<?php echo date('Y/m/d'); ?>" target="_blank"><i class="icon icon-desktop"></i>管理 </a>
|
|
|
|
|
<a href="<?php echo $config['domain']; ?>/api/apiTest/" target="_blank"><i class="icon icon-key"></i>API </a>
|
2021-05-04 19:51:36 +00:00
|
|
|
|
<?php
|
2021-05-04 12:54:59 +00:00
|
|
|
|
if (is_online()) {
|
2021-05-22 03:27:53 +00:00
|
|
|
|
echo '
|
|
|
|
|
<a href="' . $config['domain'] . '/api/api-web.php" target="_blank"><i class="icon icon-rocket"></i>API管理 </a>
|
|
|
|
|
<a href="' . $config['domain'] . '/libs/logout.php" ><i class="icon icon-signout"></i>退出 </a>
|
|
|
|
|
';
|
2021-05-04 12:54:59 +00:00
|
|
|
|
} else {
|
2021-05-22 03:27:53 +00:00
|
|
|
|
echo '<a href="' . $config['domain'] . '/libs/login.php" ><i class="icon icon-user"></i>登录 </a>';
|
2021-05-04 12:54:59 +00:00
|
|
|
|
} ?>
|
|
|
|
|
</div>
|
|
|
|
|
<?php echo 'Copyright © 2018-' . date('Y'); ?>
|
|
|
|
|
<a href="https://img.545141.com/" target="_blank">EasyImage</a> By
|
2021-05-22 03:27:53 +00:00
|
|
|
|
<a href="https://www.545141.com/902.html" target="_blank">Icret</a> Ver:<a href="https://github.com/icret/EasyImages2.0/releases" target="_blank"><?php echo $config['version']; ?> <i class="icon icon-github"></i><?php echo @getVersion(); ?></a>
|
2021-05-04 12:54:59 +00:00
|
|
|
|
</footer>
|
2019-05-23 15:12:06 +00:00
|
|
|
|
</body>
|
2021-05-04 19:51:36 +00:00
|
|
|
|
|
2021-05-04 12:54:59 +00:00
|
|
|
|
</html>
|