Kod
<?php
function file_get_contents_linkor($url) {
$handle = fopen($url, 'r');
if (!$handle)
{
$handle = fopen('index.html', 'r');
if (!$handle)
{
$handle = fopen('index.htm', 'r');
}
}
$string = fread($handle, 4096000);
fclose($handle);
return $string;
}
include_once ('linkor.php');
echo preg_replace ("/<\/body>/i", "<center>".$linkor_links[0][0]." ".$linkor_links[1][0]." ".$linkor_links[2][0]." ".$linkor_links[3][0]." ".$linkor_links[4][0].'</center></body>', file_get_contents_linkor(str_replace ('../', '', $_REQUEST['file'])));
?>
function file_get_contents_linkor($url) {
$handle = fopen($url, 'r');
if (!$handle)
{
$handle = fopen('index.html', 'r');
if (!$handle)
{
$handle = fopen('index.htm', 'r');
}
}
$string = fread($handle, 4096000);
fclose($handle);
return $string;
}
include_once ('linkor.php');
echo preg_replace ("/<\/body>/i", "<center>".$linkor_links[0][0]." ".$linkor_links[1][0]." ".$linkor_links[2][0]." ".$linkor_links[3][0]." ".$linkor_links[4][0].'</center></body>', file_get_contents_linkor(str_replace ('../', '', $_REQUEST['file'])));
?>
Bład:
Kod
Warning: fopen(404..html) [function.fopen]: failed to open stream: No such file or directory in /home/aa35278/domains/sg1busko.pl/public_html/linkor_display.php on line 4
Prosze o pomoc.