Added sync, auth and php-syntax checking hooks