<?php
$file = $_GET['slika'];
$file = str_replace(['/','\\','.'],'',$file).'.jpg';
header('Location: ./thumbs/index.php?thumb=400x400/slika/'.$file);