|

|
News
Releases
',$text);
$text = str_replace('"','"',$text);
$text = str_replace('&','&',$text);
if ($encodage == 'utf-8') {
$text = utf8_decode($text);
}
return $text;
}
function nettoyage($description) {
$avant = array ("' 'si","''si","''si","'align=\"left\"'si","' 'si");
$apres = array (" "," "," ","align=\"right\""," parsefile('http://news.google.com/news?hl=en&ned=us&ie=UTF-8&q=policy+institute&output=rss', 5);
if (!$res) {
exit('Fichier rss incorrect ou erreur pendant l\'analyse !');
}
$encode = $rss -> get_encoding();
// on affiche les infos dans un tableau centré
// recupération des données sur le channel
$channel = $rss -> get_channel();
// nombre d'items
$nbnews = $rss -> get_num_items();
// recup array des données
$items = $rss -> get_items();
// pour affichage des dates au format français
echo "\n";
for($i = 0; $i < $nbnews; $i++) {
echo '- ';
if (trim($items[$i]['pubdate'])!='') {
echo '',clean_date($date),' : ';
}
if (trim($items[$i]['author'])!='') {
echo '',clean_text($items[$i]['author']),' : ';
}
elseif (trim($items[$i]['dc:creator'])!='') {
echo '',clean_text($items[$i]['dc:creator'], $encode),' : ';
}
echo '',clean_text($items[$i]['title'], $encode),'';
if (trim($items[$i]['category']) != '') {
echo '('.clean_text($items[$i]['category']).')'; }
if (trim($items[$i]['description'])!='') {
echo ' :
'.nettoyage(clean_text($items[$i]['description'], $encode));
}
echo " \n";
}
echo " \n";
//echo ' | ';
?>
|
|
On
Economic
Liberty: |
|
"A
free and competitive system is necessary to a free
government. Neither political nor civil liberty long
survives the loss of economic liberty. Each and all
of these liberties, with the precious human rights
which they involve, must be preserved intact and inviolate."
Alf
Landon
|
|

|