ZenphotoCMS Forum
external login system - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: external login system (/thread-5908.html)



external login system - michaelsam - 2009-09-30

hi,

i wanted to update to the newest version of zp but now i run into a problem
i have an external login script and zp is running in an iframe
in version 1.2.6[4357] i was asking at the begin from the bodysection for "if($logged_in){" and it worked, but now it always tells me that i'm not logged in - so what might be the problem - did you change something with your loginsystem ? - is it possible to use your loginsystem external on my page ?




external login system - michaelsam - 2009-10-01

no answer no idea for me ?




external login system - acrylian - 2009-10-01

Sorry, I don't think that we in general changed anything. The Zenphoto variable to check is actually $_zp_loggedin.

But of course the iFrame might be the problem as it calls a page directly. Maybe try to use the "zenphoto as a plugin" way which is more elegant anyway.




external login system - michaelsam - 2009-10-05

hmmm it also doesn't work as plugin
do you have any other idea for me ?




external login system - acrylian - 2009-10-05

We don't know the details about your site so everything would be guessing. Try to make a theme to look like your site, this is still the easiest and most hassle free way.




external login system - michaelsam - 2009-10-05

u r right, but i know that it worked at least till version 126 4357 would it help when i post here my logged_in function ?




external login system - michaelsam - 2009-10-05

i also tried this moment to include my loginscript in the zp-theme and it doesn't work also - so zp to make lookalike my page wouldn't also help




external login system - acrylian - 2009-10-05

Well, if it worked you probably should find out what changed. There has been some work on the user management. Also some plugins have been renamed/joined. Best you take a look at the svn comment to see if that affects what you are using.




external login system - michaelsam - 2009-10-05

i had have a look and also tried out a view versions and found out, that it happens between 4492 and 4495 - and now i know - in 4494 you deleted the line 10 in admin-functions.php and thats the reason why it didnt work any longer - now i gave this line back to line 9 in this file and all is all right again - do i have to take care of something with this line ?




external login system - acrylian - 2009-10-05

I am sorry, I can't answer. The user management is actually sbillard's part I am not familiar with in detail.




external login system - sbillard - 2009-10-05

Not deleted, moved. There is a script named admin-globals which is instantiated by all the back-end pages. Admin functions should be capable of being used on the front end, so setup specific to the admin pages was removed.

In particular, there should be no session started on the front end unless the gallery sessions option has been set.




external login system - michaelsam - 2009-10-06

yesterday that seams to be the solution for my problem - today it doesn't work any longer - i will continue searching the reason for my problem




external login system - michaelsam - 2009-10-13

this works now in revision 4546 again without changing anything - thx