Da steht das hier require ('lib/functions.lib.php');

ist ja das Orginal script also noch nix verändert