PHP version rewrite

I've added Filter input and escape output variables and I only use 2 file namely index.php and template.php