Simple code for the two password crypt() for the sha1()

I would like to sort to passwords using DB. I used sha1 for the two salts I’ve been using. The first salt is for the user and the other one is for public users.
Both salts are stored in PHP code. PHP suggests the use of crypt() for sha1() but I prefer more simple codes for the two passwords.
Could you help me with that?
