0){ $html = ''; foreach($_SESSION['SimpleImageManager'] as $s){ $me = false; $exists = is_url_exist($s); $url_host = parse_url($s, PHP_URL_HOST); if($url_host == $_SERVER['HTTP_HOST']){ $me = true; } if($me){ $html .= '
'; }elseif($exists){ $html .= '
'; } } if($html != ''){ $output["html"] = $html; }else{ $output["success"] = 0; } }else{ $output["success"] = 0; } header("Content-type: text/plain;"); echo json_encode($output); exit();