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