If $szukane is the filename, just add this:
PHP Code:
if($szukane != "" && count(explode(".", $szukane)) <= 1)
$szukane .= ".txt";
If $szukane is the filename, just add this:
PHP Code:
if($szukane != "" && count(explode(".", $szukane)) <= 1)
$szukane .= ".txt";