modify function_global.php to class Base.php