联系官方销售客服
1835022288
028-61286886
这个dr_in_array代码在php8下有什么问题?我PHP7.4换成8.0后,提示系统故障了
{loop $zbhbq $i $c} <div class="col-sm-3 col-md-2"> {php $data = \Phpcmf\Service::C()->get_attachment($c.file);} {if dr_in_array($data.fileext, array(jpg,gif,png))} <img layer-pid="{$i}" width="100" height="100" layer-src="{dr_get_file($c.file)}" src="{dr_thumb($c.file, 100, 100)}" alt="{$c.title}"> {else} <img layer-pid="{$i}" width="100" height="100" layer-src="{THEME_PATH}assets/images/ext/{$data.fileext}.png" src="{THEME_PATH}assets/images/ext/{$data.fileext}.png" alt="{$c.title}"> {/if} <div class="caption"> <p><a href="{dr_down_file($c.file)}">{$c.title}</a></p> </div> </div> {/loop}