'.',UimsS'); function traiter_ressources($r) { $html = null; if ($ressource = charger_fonction('ressource', 'inc', true)) { $html = $ressource($r[0]); } if (is_null($html)) { include_spip('inc/lien'); $url = explode(' ', trim($r[0], '<>')); $url = $url[0]; # if (preg_match(',^https?://,i', $url)) $html = PtoBR(propre("<[->".$url."]>")); # else if (false !== strpos($url, '/')) $html = PtoBR(propre("<[->".$url."]>")); # else { preg_match(',\.([^.]+)$,', $url, $regs); if (file_exists($f = _DIR_IMG.$regs[1].'/'.$url)) { $html = PtoBR(propre("<[".$url."->".$f."]>")); } else { $html = PtoBR(propre("<".$url.">")); } } } return ''.$html.''; } ?>