/** * change the file named .htacess in htacess.txt * Useful to secure a site working on Apache. * * @param - fileName (string) name of a file * @return - string innocuous filename * @see - htaccess2txt and php2phps */ function get_secure_file_name($fileName) { $fileName = php2phps($fileName); $fileName = htaccess2txt($fileName); return $fileName; }
/** * This function executes our safety precautions * more functions can be added * * @param string $filename * @return string * @see php2phps() * @see htaccess2txt() */ function disable_dangerous_file($filename) { return htaccess2txt(php2phps($filename)); }