<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
In the cookbook/htpasswdform.php file...<br>
<br>
-----------------------------<br>
/*<br>
* HtpasswdForm - An Htpasswd file editor for PmWiki<br>
* Copyright 2005 by D.Faure (<a class="moz-txt-link-abbreviated" href="mailto:dfaure@cpan.org">dfaure@cpan.org</a>)<br>
*<br>
* You can redistribute it and/or modify it under the terms of the GNU
General<br>
* Public License as published by the Free Software Foundation; either
version<br>
* 2 of the License, or (at your option) any later version.<br>
*<br>
* See <a class="moz-txt-link-freetext" href="http://www.pmwiki.org/wiki/Cookbook/HtpasswdForm">http://www.pmwiki.org/wiki/Cookbook/HtpasswdForm</a> for info.<br>
*/<br>
include_once('scripts/authuser.php');<br>
# If the admin hasn't configured any password entries, just return.<br>
if (!$AuthUser) return;<br>
-------------------------------<br>
<br>
So I'm not need to include authuser.php in local/config.php if I
include cookbook/htpasswdform.php...<br>
<br>
Here is now my config.php (without comments). There is no longer
Main.Logins.php file:<br>
<br>
-------------------------------<br>
<?php if (!defined('PmWiki')) exit();<br>
$WikiTitle = 'Municipalité de Saint-Boniface';<br>
$ScriptUrl = '<a class="moz-txt-link-freetext" href="http://stbo.mediapublinet.net">http://stbo.mediapublinet.net</a>';<br>
$PubDirUrl = '<a class="moz-txt-link-freetext" href="http://stbo.mediapublinet.net/pub">http://stbo.mediapublinet.net/pub</a>';<br>
$EnablePathInfo = 1;<br>
$EnableGUIButtons = 1;<br>
$EnableUpload = 1;<br>
$EnableDiag = 1; # enable remote diagnostics<br>
$EnableIMSCaching = 1; # allow browser caching<br>
$SpaceWikiWords = 1; # turn on WikiWord spacing<br>
XLPage('fr','PmWikiFr.XLPage');<br>
$DefaultGroup = "Main";<br>
$DefaultName = "Accueil";<br>
function AsSpacedAlt($text) {<br>
$text = preg_replace("/([[:lower:]\\d])([[:upper:]])/",<br>
'$1 $2', $text);<br>
$text =<br>
preg_replace('/(?<![-\\d])(\\d+( |$))/',' $1',$text);<br>
$text =<br>
preg_replace("/([[:upper:]])([[:upper:]][[:lower:]\\d])/",<br>
'$1 $2', $text);<br>
return $text{0}.strtolower(substr($text,1));<br>
}<br>
$AsSpacedFunction = 'AsSpacedAlt';<br>
$HtpasswdFile = "local/.htpasswd";<br>
include_once("cookbook/htpasswdform.php");<br>
?><br>
-----------------------<br>
I try <a class="moz-txt-link-freetext" href="http://stbo.mediapublinet.net/Site/AuthUser">http://stbo.mediapublinet.net/Site/AuthUser</a> . It's shows me that
the AuthUser extension is enabled.<br>
<br>
<br>
Patrick R. Michaud a écrit :
<blockquote cite="mid20060519143255.GI15870@host.pmichaud.com"
type="cite">
<pre wrap="">On Fri, May 19, 2006 at 12:56:52AM -0400, <a class="moz-txt-link-abbreviated" href="mailto:webmaster@mediapublinet.net">webmaster@mediapublinet.net</a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I now removed any reference to UserAuth.
The page <a class="moz-txt-link-freetext" href="http://stbo.mediapublinet.net/Main/Logins">http://stbo.mediapublinet.net/Main/Logins</a> still doesn't work.
After a trace into cookbook/htpasswdform.php, I noticed that the script doesn't
pass the second line:
# If the admin hasn't configured any password entries, just return.
if (!$AuthUser) return;
</pre>
</blockquote>
<pre wrap=""><!---->
Are you including scripts/authuser.php? And have you configured it
somehow, either using the Site.AuthUser or by setting values of $AuthUser
before it gets loaded?
Pm
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Benoît Pruneau
Chargé de projet
MédiaPublinet International
<a class="moz-txt-link-abbreviated" href="mailto:webmestre@mediapublinet.net">webmestre@mediapublinet.net</a>
<a class="moz-txt-link-freetext" href="http://mediapublinet.net/">http://mediapublinet.net/</a>
</pre>
</body>
</html>