<?php $file=TGET('file'); if ($file[0]=='/') $file=substr($file,1); if (!strpbrk($file,'/\\')) { if (substr($file,-4,4)==".gif") header('Content-Type: image/gif'); if (substr($file,-4,4)==".jpg") header('Content-Type: image/jpeg'); if (false===@readfile(deduce_theme_path('images/'.$file))) header('404 Not Found'); $CMD_TMPL_NAME=false; $CMD_TMPL_SUFFIX=false; } ?>