
Anyway, I found the bug causing the first problem - fixed in revision 3108 and 3109. In stead of upgrading to PivotX 2.1.2, grab pivotx-2.1.x-latest.zip which contains the bug fixes after the 2.1.2 release.
The HTTP Authentication hooks in PHP are only available when it is running as an Apache module and is hence not available in the CGI version. In an Apache module PHP script, it is possible to use the header() function to send an "Authentication Required" message to the client browser causing it to pop up a Username/Password input window.
When I now click on the link to the password protected page, a dialog box appears which asks me for a password. The text in this dialog box doesn't read the same a what is set in the extension configuration ('password question')
if (passwordcheck_login($page) == false) {
Header("WWW-Authenticate: Basic realm=\"PivotX Protected Page\"");
Header("HTTP/1.0 401 Unauthorized");
if (passwordcheck_login($page) == false) {
$question = $PIVOTX['config']->get('passwordprotect_text');
Header("WWW-Authenticate: Basic realm=\"$question\"");
Header("HTTP/1.0 401 Unauthorized");
Also, when I click on 'Cancel' in the dialog box, the page that is shown doesn't contain any of the text mentioned in the configuration ('no access' title and 'no access' text aren't shown).
Because the template you selected doesn't contain a [[title]] and [[introduction]] tag? (Look at the default template skinny/page_template.html.)
I didn't know that I had to change the input that was already present in the extension configuration
Users browsing this forum: No registered users and 2 guests