0 and `available`>0",array('app_market')); $data=array(); foreach($appdata as $k => $v){ if( $v["identifier"]=="appmanagement") continue; if ($v['appico'] != 'dzz/images/default/icodefault.png' && !preg_match("/^(http|ftp|https|mms)\:\/\/(.+?)/i", $v['appico'])) { $v['appico'] = $_G['setting']['attachurl'] . $v['appico']; } $v['url']=replace_canshu($v['appurl']); $data[]=$v; } include template('main');