

iconv("CP1250", "ISO-8859-2", $text);
// podle toho jaké kódování používáte
iconv("ISO-8859-2", "CP1250", $text);



iconv("CP1250", "ISO-8859-2", $text);
// podle toho jaké kódování používáte
iconv("ISO-8859-2", "CP1250", $text);
)



iconv("utf-8", "ISO-8859-2", $text);


$text=iconv("utf-8", "ISO-8859-2", $text);


$text=iconv("utf-8", "ISO-8859-2", $text);
)


$rssurl = "http://blassenweb.net/rss-091.xml";
$rssurl = iconv("utf-8", "ISO-8859-2", $rssurl);
echo $rssurl;


$rdfsource = "ttp://www.pozary.cz/export/rss.php?box_id=3";

$rdfsource = "http://www.pozary.cz/export/rss.php?box_id=3";
$rdfsource = iconv("utf-8", "ISO-8859-2", $rdfsource);
echo $rdfsource;






<?php
if (stristr($_SERVER['SCRIPT_NAME'], basename(__FILE__)) OR !defined('UN_KERNELFILES_LOADED')) {
Header("Location: ../index.php");
die();
}


/***
*
* script copy by BLASSENweb.net
*
***/


global $zmena;


$bwname = "BW - Počítače a IT";
$rssource = "http://blassenweb.net/rss-091.xml";
$homelink1 = "http://blassenweb.net/";
$imagelink = "";


$obsah = "";
$data = @implode ("", file ($rssource));
preg_match_all("|<item>(.*)</item>|Uism",$data, $items, PREG_PATTERN_ORDER);
if (count($items[1])==0) {
preg_match_all("|<item .*>(.*)</item>|Uism",$data, $items, PREG_PATTERN_ORDER);}
for ($i=0;$i<count($items[1]);$i++)
{
preg_match_all("|<title>(.*)</title>(.*)<link>(.*)</link>|Uism",$items[1][$i], $regs, PREG_PATTERN_ORDER);
$obsah .="<a href=\"".$regs[3][0]."\" title=\"".$regs[1][0]."\" rel=\"nofollow\" target=\"_blassen_\">".$regs[1][0]."</a><br />\n";
}


$zmena = str_replace("< br />", "<br />", $obsah );//< br />



$content = "";
if (!empty($imagelink)) {
$content .= "<table cellspacing=\"2\" width=\"100%\"><tbody><tr><td align=\"left\" width=\"50%\">\n";
} 


$data2 = iconv("UTF-8", "ISO-8859-2", $zmena); // UTF-8 => ISO-8859-2 //TRANSLIT
$content .= $data2."\n";
$content .= "<a href=\"".$homelink1."\" target=\"_blassen_\">více ...</a>\n";


if (!empty($imagelink)) {
$content .= "</td><td align=\"right\" valign=\"top\" width=\"50%\">\n";
$content .= "<p align=\"justify\">\n";
$content .= " <img src=\"".$imagelink."\" alt=\"".$bwname."\" title=\"".$bwname."\" /> \n";
$content .= "</p> \n";
$content .= "</td></tr></tbody></table>\n";
}


?>




$content .= $data2."\n";


$content .= "<marquee behavior=\"scroll\" align=\"center\" direction=\"up\" scrollamount=\"2\" scrolldelay=\"10\" onmouseover=\"this.stop()\" onmouseout=\"this.start()\" height=\"200\">".$data2."</marquee>\n";

![]() |
|