Registration-Login-Logout

I'm trying to better understand the process of registration, of login, of logout.

In the admin menu, there is also a Logout entry, an hyperlink to http://rimq.net/photos/zp-core/admin.php?logout=0

When using the Zenpage theme, on the side bar, the last item is Logout, if someone is logged. This hyperlink points to http://rimq.net/index.php?userlog=0

A few questions:
-is there an explanation on why the last URL is wrong (should be: http://rimq.net/Photos/index.php?userlog=0 ?
-what is the difference between both logout processes ?

When not logged in, there is in the side bar an item: Register. That points to http://rimq.net/photos/page/register

and it works well with Zenpage theme. I don't have this sequence of files in my site, therefore I don't understand why it works...?

Could someone help me to understand.

Thanks

Gaston

Comments

  • 1. The logout link is pretty much irrellevant so long as it takes you to a Zenphoto script. The logout=0 is processed by the authentication code before anything happens.

    2. That logout is from the user_login-out plugin. Other than loggin you out of the front end, there is no difference.

    3. There is a script named register.php in the theme. This works because the mod-rewrite rules turn a .../page/string url into a .../index.php?p=string URL which is then processed by index.php to load a script named string.
  • Thanks for the answer.

    1- One of my point was related to the fact that "Register" was not pointing to "Photos/index.php?userlog=0 " but to "index.php?userlog=0 ", the root of my web server ("Photos" is missing). Of course if does not work unless I had "Photos/" in address bar. Any idea why ?
    2- 'This works because the mod-rewrite rules turn a .../page/string url into a .../index.php?p=string URL'
    Could you just direct me to place to learn more about it ?

    Thanks again

    Gaston
  • 1- One of my point was related to the fact that "Register" was not pointing to "Photos/index.php?userlog=0 " but to "index.php?userlog=0 ", the root of my web server ("Photos" is missing). Of course if does not work unless I had "Photos/" in address bar. Any idea why ?
    It really should point to the zenphoto index.php. No one had reported this before.
    2- 'This works because the mod-rewrite rules turn a .../page/string url into a .../index.php?p=string URL'
    Could you just direct me to place to learn more about it ?
    Do a web search on "apache mod_rewrite" for how that feature works. Review the Zenphoto themeing tutorial for how Zenphoto works.
  • Stephen

    On thread #7890, the guy seems to have exactly the same problem : a part of the URL is missing (that's why he got an "unknown page" message.
    Here are the informations about my environment:

    Version de Zenphoto 1.3.1 [5736] (Version officielle)
    Thème actuellement utilisé : Zenpage
    Version de PHP : 5.2.13
    Support graphique : PHP GD library bundled (2.0.34 compatible)
    Limite de mémoire de PHP : 256M (Note: votre serveur peut en fournir moins !)
    Version de MySQL : 5.0.90
    Nom de la base de données : rimqnet_zenphoto
    Préfixe des tables : zp5_
    Filtre anti-spam : none
    Générateur de Captcha : zenphoto

    Thanks for the reference about the "apache mod_rewrite"

    Gaston
  • There will be a fix in tonight's build.
Sign In or Register to comment.