Browse Source

一些优化

pull/35/head
xiaoz 5 years ago
parent
commit
9b43d75c7c
  1. 2
      application/controllers/Found.php
  2. 2
      application/views/admin/footer.php
  3. 12
      application/views/admin/index.php
  4. 2
      application/views/admin/site.php
  5. 2
      application/views/user/footer.php
  6. 2
      data/version.txt

2
application/controllers/Found.php

@ -18,7 +18,7 @@ @@ -18,7 +18,7 @@
$siteinfo->title = '探索发现 - '.$siteinfo->title;
//查询图片信息,返回对象
$data['imgs'] = $this->query->found(32);
$data['imgs'] = $this->query->found(96);
//查询域名
$data['domain'] = $this->query->domain('localhost');

2
application/views/admin/footer.php

@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
</div>
<div class="layui-footer">
<!-- 底部固定区域 -->
Copyright © 2017-2018 Powered by <a href="https://imgurl.org/" target = "_blank">ImgURL</a> | Author <a href="https://www.xiaoz.me/" target = "_blank">xiaoz.me</a>
Copyright © 2017-2019 Powered by <a href="https://imgurl.org/" target = "_blank">ImgURL</a> | Author <a href="https://www.xiaoz.me/" target = "_blank">xiaoz.me</a>
</div>
</div>
<script src="/static/layui/layui.js"></script>

12
application/views/admin/index.php

@ -48,6 +48,18 @@ @@ -48,6 +48,18 @@
<p><a href="https://github.com/helloxz/imgurl" target = "_blank">https://github.com/</a></p>
</div>
</div>
<div class="layui-col-lg3">
<div class = "analyze">
<h3><i class="fa fa-paypal"></i> 打赏支持</h3>
<p><a href="https://dwz.ovh/imgurl" target = "_blank">https://dwz.ovh/imgurl</a></p>
</div>
</div>
<div class="layui-col-lg3">
<div class = "analyze">
<h3><i class="fa fa-qq"></i> 技术支持(付费)</h3>
<p>QQ:337003006</p>
</div>
</div>
</div>
</div>

2
application/views/admin/site.php

@ -33,7 +33,7 @@ @@ -33,7 +33,7 @@
<div class="layui-form-item layui-form-text">
<label class="layui-form-label">统计代码</label>
<div class="layui-input-block">
<textarea name="analytics" placeholder="请输入统计代码" class="layui-textarea"><?php echo $analytics; ?></textarea>
<textarea name="analytics" placeholder="请输入统计代码,目前仅测试过百度统计,其它统计代码可能会出错。" class="layui-textarea"><?php echo $analytics; ?></textarea>
</div>
</div>
<!-- <div class="layui-form-item layui-form-text">

2
application/views/user/footer.php

@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@
<div class = "layui-container">
<div class = "layui-row">
<div class = "layui-col-lg12">
Copyright © 2017-2018 Powered by <a href="https://imgurl.org/" target = "_blank">ImgURL</a> | Author <a href="https://www.xiaoz.me/" target = "_blank">xiaoz.me</a> |
Copyright © 2017-2019 Powered by <a href="https://imgurl.org/" target = "_blank">ImgURL</a> | Author <a href="https://www.xiaoz.me/" target = "_blank">xiaoz.me</a> |
<!-- 简单判断用户是否登录 -->
<?php if((isset($_COOKIE['user'])) && (isset($_COOKIE['token']))){ ?>
<a href="/user/logout">logout</a>

2
data/version.txt

@ -1 +1 @@ @@ -1 +1 @@
v2.0-20181219
v2.0-20190109
Loading…
Cancel
Save