[pmwiki-users] HtpasswdForm doesn't work, why?

Benoît Pruneau webmaster at mediapublinet.net
Fri May 19 12:38:43 CDT 2006


In the cookbook/htpasswdform.php file...

-----------------------------
/*
 * HtpasswdForm - An Htpasswd file editor for PmWiki
 * Copyright 2005 by D.Faure (dfaure at cpan.org)
 *
 * You can redistribute it and/or modify it under the terms of the GNU 
General
 * Public License as published by the Free Software Foundation; either 
version
 * 2 of the License, or (at your option) any later version.
 *
 * See http://www.pmwiki.org/wiki/Cookbook/HtpasswdForm for info.
 */
include_once('scripts/authuser.php');
# If the admin hasn't configured any password entries, just return.
if (!$AuthUser) return;
-------------------------------

So I'm not need to include authuser.php in local/config.php if I include 
cookbook/htpasswdform.php...

Here is now my config.php (without comments). There is no longer 
Main.Logins.php file:

-------------------------------
<?php if (!defined('PmWiki')) exit();
$WikiTitle = 'Municipalité de Saint-Boniface';
$ScriptUrl = 'http://stbo.mediapublinet.net';
$PubDirUrl = 'http://stbo.mediapublinet.net/pub';
$EnablePathInfo = 1;
$EnableGUIButtons = 1;
$EnableUpload = 1;
$EnableDiag = 1;                         # enable remote diagnostics
$EnableIMSCaching = 1;                   # allow browser caching
$SpaceWikiWords = 1;                     # turn on WikiWord spacing
XLPage('fr','PmWikiFr.XLPage');
$DefaultGroup = "Main";
$DefaultName = "Accueil";
function AsSpacedAlt($text) {
  $text = preg_replace("/([[:lower:]\\d])([[:upper:]])/",
          '$1 $2', $text);
  $text =
    preg_replace('/(?<![-\\d])(\\d+( |$))/',' $1',$text);
  $text =
    preg_replace("/([[:upper:]])([[:upper:]][[:lower:]\\d])/",
                 '$1 $2', $text);
  return $text{0}.strtolower(substr($text,1));
}
$AsSpacedFunction = 'AsSpacedAlt';
$HtpasswdFile = "local/.htpasswd";
include_once("cookbook/htpasswdform.php");
?>
-----------------------
I try http://stbo.mediapublinet.net/Site/AuthUser . It's shows me that 
the AuthUser extension is enabled.


Patrick R. Michaud a écrit :
> On Fri, May 19, 2006 at 12:56:52AM -0400, webmaster at mediapublinet.net wrote:
>   
>> I now removed any reference to UserAuth.
>> The page http://stbo.mediapublinet.net/Main/Logins 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;
>>     
>
> 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
>
>
>   

-- 
Benoît Pruneau
Chargé de projet
MédiaPublinet International
webmestre at mediapublinet.net
http://mediapublinet.net/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20060519/07562e52/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: webmaster.vcf
Type: text/x-vcard
Size: 425 bytes
Desc: not available
Url : /pipermail/pmwiki-users/attachments/20060519/07562e52/attachment.vcf 


More information about the pmwiki-users mailing list