version core update

Updated php deprecated functions, cleaned update coded (thanks to
@pbearne)