= '10-12') && (date('d-m') <= '25-12')) //{ // $background = 'backgroundchristmas.gif'; //} $extList = array(); $extList['gif'] = 'image/gif'; $extList['jpg'] = 'image/jpeg'; $extList['jpeg'] = 'image/jpeg'; $extList['png'] = 'image/png'; $imageInfo = pathinfo($background); $contentType = 'Content-type: '.$extList[ $imageInfo['extension'] ]; header ($contentType); readfile($background); ?>