Update core.php

Value $GLOBALS['DIR'] changed.