Custom Admin login

I am building a site that has a custom security system and it has it's own Admin function. I'm integrating Zenphoto into this site and when the site Admin logs in I would like them to have access to the ZP Admin area without having to go through another login.

So my question is how do I set the ZP admin status to logged in so I can access the ZP admin area from a link in the site Admin.

I've looked thru the core code but I can't work out how to do it - it's probably obvious but I can't see it. Running ZP version 1.2.2

Thanks in advance ...

Comments

  • acrylian Administrator, Developer
    First you should upgrade to 1.2.5. Zenphoto uses sessions/cookies for the login status. `zp-core/lib-auth.php` is probably a good start to look at as you can have a custom one, too. Please see the documention in the file itself. Further details I will leave to my collegue sbillard as he is speciafially responsible for our admin rights management.
  • Thanks acrylian, I'll try that first and see how I get on.
  • The lib-auth.php script is the right start. But you should know that there are some significant changes goin into this for the 1.2.6 release. Some may make your life easire in the long run, for instance, all references to the administrators Database Table are now in the library.

    But of course, if you wish your changes to work on 1.2.5 you will not have these changes. Then you should just review the changes in the SVN to be sure you do not take a path that will be incompatible.
Sign In or Register to comment.