auto update

dependabot/npm_and_yarn/ushio/www/session/lodash-4.17.15
iotcat 5 years ago
parent 79a2c0c6bd
commit 65bc644be0
  1. 4
      ushio/www/api/functions.php
  2. 22
      ushio/www/api/getImgNum.php
  3. 4
      ushio/www/img/usr/themes/photograph/footer.php
  4. 2
      ushio/www/img/usr/themes/photograph/header.php

@ -294,8 +294,10 @@ function getImg($path, $time = 300){
function getImgsInfo($type){
$arr_os = array();
$arr = array();
ini_set("pcre.backtrack_limit" , -1); ini_set("pcre.recursion_limit" , -1); ini_set("memory_limit" , "1024M");
exec('obs ls obs://yimian-image/'.$type.' -limit=-1', $arr_os);
//echo count($arr_os);
exec('obs ls obs://yimian-image/'.$type, $arr_os);
$str = implode ($arr_os);
preg_match_all('/img_(\S*?)_(\d{2,4})x(\d{2,4})_(\S*?)_(\S*?)_(\S*?).(jpe?g|png|gif|svg)\b/', $str, $arr);

@ -0,0 +1,22 @@
<?php
include 'functions.php';
header('Access-Control-Allow-Origin:*');
$moe = getImgsInfo('moe');
$koino = getImgsInfo('koino');
$wallpaper = getImgsInfo('wallpaper');
$imgbed = getImgsInfo('imgbed');
$o = array();
$o["moe"] = count($moe[0]);
$o["koino"] = count($koino[0]);
$o["wallpaper"] = count($wallpaper[0]);
$o["imgbed"] = count($imgbed[0]);
$o["total"] = $o["moe"] + $o["koino"] + $o["wallpaper"] + $o["imgbed"];
echo json_encode($o);

@ -15,10 +15,10 @@
<?php endif; ?>
<?php if ($this->options->poweredby == 'y'): ?>
<p class="related"><a href="mailto:i@iotcat.me">侵删</a></p>
<p class="related">POWERED BY <a id="ushio-ushio" href="https://ushio.xyz">Ushio</a> / THEME BY <a href="https://photo.siitake.cn/photograph.html" target="_blank">SIITAKE</a> / DEVELOPED BY <a id="ushio-iotcatme" href="https://iotcat.me">IoTcat</a></p>
<p class="related">Powered with <i sytle="color: red;" class="glyphicon glyphicon-heart shaky"></i> By <a id="ushio-ushio" href="https://ushio.xyz">Ushio</a> | Theme By <a href="https://photo.siitake.cn/photograph.html" target="_blank">SIITAKE</a>/<a id="ushio-iotcatme" href="https://iotcat.me">IoTcat</a></p>
<?php endif; ?>
<?php if ($this->options->statCount == 'y'): $stat = statCount(); ?>
<p class="related">本站<?php echo $stat['pic'] ?>张图片在<?php echo $stat['post'] ?>个相册中,他们被分成<?php echo $stat['cate'] ?>个类别<!--,并有<?php //echo $stat['page'] ?>个页面和<?php// echo $stat['comm'] ?>条评论--></p>
<p class="related">本站已收录张图片,感谢大家的支持~<!--在<?php //echo $stat['post'] ?>个相册中,他们被分成<?php //echo $stat['cate'] ?>个类别,并有<?php //echo $stat['page'] ?>个页面和<?php// echo $stat['comm'] ?>条评论--></p>
<?php endif; ?>
<p class="related">&copy; <a href="<?php $this->options->siteUrl(); ?>" target="_blank"><?php $this->options->title(); ?></a><?php if ($this->options->icp): ?> <a href="http://www.miitbeian.gov.cn/" target="_blank"><?php $this->options->icp() ?></a><?php endif; ?></p>
<?php if ($this->options->statistics): echo '<div style="display:none;">'; $this->options->statistics(); echo '</div>'; endif; ?>

@ -39,7 +39,7 @@
$this->header();
}
?>
<link rel="stylesheet" type="text/css" href="https://cdn.yimian.xyz/shaky/shaky.css">
<script src="https://cdn.yimian.xyz/ushio-js/ushio-head.min.js"></script>
</head>

Loading…
Cancel
Save