mirror of https://github.com/IoTcat/img-api.git
parent
265cf97ba0
commit
ea02ee506f
1 changed files with 22 additions and 0 deletions
@ -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); |
Loading…
Reference in new issue