Code:
<?php
$fp = @fopen("http://www.sajt.com/dokumenti/".$_GET['sadrzaj'].".php","r");
if ($fp)
{ include ("dokumenti/".$_GET['sadrzaj'].".php"); }
else
{ include ("dokumenti/greska.php"); }
?>
<?php
$fp = @fopen("http://www.sajt.com/dokumenti/".$_GET['sadrzaj'].".php","r");
if ($fp)
{ include ("dokumenti/".$_GET['sadrzaj'].".php"); }
else
{ include ("dokumenti/greska.php"); }
?>