<?php $file = $_GET[ 'page' ]; $file = str_replace( array( "http://", "https://" ), "", $file ); $file = str_replace( array( "../", "..\" ), "", $file ); ?>