Every person who gives or offers any bribe to any executive officer in this state, with intent to influence him in respect to any act, decision, vote, opinion, or other proceeding as such officer, is punishable by imprisonment in the state prison for two, three or four years, and is disqualified from holding any office in this state.