diff --git a/ushio/www/api/img/.getInfo.php.swp b/ushio/www/api/img/.getInfo.php.swp index 30f7cbaa..b9dea487 100644 Binary files a/ushio/www/api/img/.getInfo.php.swp and b/ushio/www/api/img/.getInfo.php.swp differ diff --git a/ushio/www/api/img/getInfo.php b/ushio/www/api/img/getInfo.php index e27a6539..e00f96fb 100644 --- a/ushio/www/api/img/getInfo.php +++ b/ushio/www/api/img/getInfo.php @@ -2,10 +2,13 @@ include '../functions.php'; +$arr_os = array(); $arr = array(); -$str = system('obs ls obs://yimian-image/blog'); +exec('obs ls obs://yimian-image/blog', $arr_os); -preg_match_all('/wiot/i', $str, $arr); +$str = implode ($arr_os); + +preg_match_all('/w*.jpg/', $str, $arr); print_r($arr);