global $abspath; $abspath = "./"; global $i; ?>
$cat="archive"; global $cont; $cont= htmlspecialchars($_GET["cont"]); if(($cat) || ($cont) || ($subc)) { $cat=rawurldecode($cat); $cont=rawurldecode($cont); $subc=rawurlencode($subc); } unset($targetfile); if ($cont) { $targetfile = $cont; } if (!$cat) { $cat= "."; } if ($subc) { $targetfile = $abspath."/".$cat."/".$subc."/".$targetfile; } else { $targetfile = $abspath."/".$cat."/".$targetfile; } if (preg_match("/\./", $cont)) { exit; } // hacking prevent $targeturl="http://folkradio.ru/2011.page.php?cont=".$cont; if ($cat=="news") { $cont111=$cont; $cYY = substr ($cont111, 0, 2); $cMM = substr ($cont111, 2, 2); $cDD = substr ($cont111, 4, 2); $chh = substr ($cont111, 6, 2); $cmm = substr ($cont111, 8, 2); $newsdate="$cDD.$cMM.$cYY, $chh:$cmm"; } ?>
if (is_file($targetfile)) {
$filepr = file_get_contents($targetfile);
// stream_set_timeout($filepr, 1);
if ($filepr !== '') {
$filepr = preg_replace("/\r/", " ", $filepr); print " $filepr \n"; } else { exit; } } print " $newsdate \n"; ?> адрес статьи: echo "$targeturl"; ?> |