diff --git a/assets/img/cron.php b/assets/img/cron.php index bb69e4e..da3767b 100644 --- a/assets/img/cron.php +++ b/assets/img/cron.php @@ -12,9 +12,9 @@ else{ $str=file_get_contents('http://cn.bing.com/HPImageArchive.aspx?idx='.$_GET['idx'].'&n=1'); } -if(preg_match("/(.+?)<\/url>/ies",$str,$matches)){ +if(preg_match("/(.+?)<\/url>/is",$str,$matches)){ -if(preg_match("/(.+?)<\/fullstartdate>/ies",$str,$cdata)){ +if(preg_match("/(.+?)<\/fullstartdate>/is",$str,$cdata)){ } $crdate = date('Y年m月d日 H:i', strtotime($cdata[1]));