syntax error, unexpected 'endif' (T_ENDIF), expecting end of file