$AllowPassword
@nopass
" instead, and this variable is set to false and PmWiki no longer checks if pages have a special "allowed password". If your wiki is old and/or may contain pages with the "nopass
" password, you should locate them and replace them with "@nopass
", or if you cannot, set this variable to "nopass".
$PmCryptAlgo
$PmCryptAlgo = PASSWORD_ARGON2ID;
$RehashedPassword
## previous usage, before 2.5.0 # global $RehashedPassword; # if ($RehashedPassword) { /* store $RehashedPassword for the current user*/ } ## current usage, since 2.5.0 $newhash = rehash_password($pass, $hash); if ($newhash) { /* store $newhash for the current user*/ }
$AuthUserPageFmt
$DefaultPasswords
$DenyHtaccessContent
.htaccess
files created by PmWiki in new directories under wiki.d
. The Apache server changed these directives in version 2.4. The default value should work for both new and older server versions.
$EnablePostAttrClearSession
$EnablePostAttrClearSession
to zero.
$EnableSessionPasswords
$SetCookieFunction
pmsetcookie()
. Should accept the same arguments as pmsetcookie()
.
$EnableCookieSecure
pmsetcookie()
.$EnableCookieHTTPOnly
pmsetcookie()
.$CookieSameSite
pmsetcookie()
, default to 'Lax'. See article about the implications.
$SessionEncode
$SessionDecode
below.)
$SessionDecode
$SessionEncode
above. Set this to NULL if sensitive session values are not encoded.
$HandleAuth
config.php
you need to be authenticated as editor in order to view the page history:
$HandleAuth
['diff'] = 'edit';
$PageAttributes
$AuthLDAPBindDN
$AuthLDAPBindPassword
$AuthLDAPBindDN
above).
$AuthLDAPReferrals
$MultiFactorAuthFunction
AuthUserId()
if the password authentication has succeeded. This function is called with arguments the username and password, and should return true if the 2FA has succeeded, false otherwise.
$FailedLoginsFunction
$EnablePublishAttr
$EnableDrafts
.
$EnablePageVarAuth
$RobotActions
$RobotActions
['download'] = 1;
# allow bots to download files with disabled $EnableDirectDownload
(page permissions are respected)$RobotActions
['rss'] = 0;
# disallow bots from getting the RSS feed$RobotActions
['print'] = 1;
# allow bots to get the print view$RobotPattern
$EnableRobotCloakActions
?action=
values from page links returned to robots, which will reduce bandwidth loads from robots even further.
$AuthFormRespCode
$EnableDirectDownload
), you can set in config.php: if ($action == 'download') $AuthFormRespCode = 403;
See also: