aboutsummaryrefslogtreecommitdiff
path: root/scripts/authuser.php
diff options
context:
space:
mode:
authorpetko <petko@524c5546-5005-0410-9a3e-e25e191bd360>2015-04-23 23:05:33 +0000
committerpetko <petko@524c5546-5005-0410-9a3e-e25e191bd360>2015-04-23 23:05:33 +0000
commit1cb0ec5284ee099c79a3cefdf41644c3c53b536d (patch)
treedc266733f7fea2c1930cc52e249d12945fc3702f /scripts/authuser.php
parentaea6409cdacd64a63635bcc73e9306717f2b93bb (diff)
downloadpmwiki.svn-1cb0ec5284ee099c79a3cefdf41644c3c53b536d.tar.bz2
Add pmcrypt() wrapper compatible with PHP 5.6 (PITS:01277); Add HTML5 semantic tags header|footer|nav|address|aside|section|article
git-svn-id: svn://pmwiki.org/pmwiki/trunk@3048 524c5546-5005-0410-9a3e-e25e191bd360
Diffstat (limited to 'scripts/authuser.php')
-rw-r--r--scripts/authuser.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/authuser.php b/scripts/authuser.php
index aae26fe1..fe513ec5 100644
--- a/scripts/authuser.php
+++ b/scripts/authuser.php
@@ -1,5 +1,5 @@
<?php if (!defined('PmWiki')) exit();
-/* Copyright 2005-2010 Patrick R. Michaud (pmichaud@pobox.com)
+/* Copyright 2005-2015 Patrick R. Michaud (pmichaud@pobox.com)
This file is part of PmWiki; 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
@@ -21,7 +21,7 @@
Individual username/password combinations can also be placed
directly in the $AuthUser array, such as:
- $AuthUser['pmichaud'] = crypt('secret');
+ $AuthUser['pmichaud'] = pmcrypt('secret');
To authenticate against an LDAP server, put the url for
the server in $AuthUser['ldap'], as in:
@@ -209,5 +209,5 @@ function _crypt($plain, $salt=null) {
return "\$apr1\$$salt\$$q";
}
if (md5($plain) == $salt) return $salt;
- return crypt($plain, $salt);
+ return pmcrypt($plain, $salt);
}