cvs: php-wiki-web /dokuwiki/inc/auth phpcvs.class.php
| From: | Lukas Smith | Date: | Fri, 14 Mar 2008 22:35:10 +0000 |
| Subject: | cvs: php-wiki-web /dokuwiki/inc/auth phpcvs.class.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-1279@lists.php.net to get a copy of this message | ||
lsmith Fri Mar 14 22:35:10 2008 UTC
Modified files:
/php-wiki-web/dokuwiki/inc/auth phpcvs.class.php
Log:
- implemented support for the master.php.net magic cookie
http://cvs.php.net/viewvc.cgi/php-wiki-web/dokuwiki/inc/auth/phpcvs.class.php?r1=1.1&r2=1.2&diff_format=u
Index: php-wiki-web/dokuwiki/inc/auth/phpcvs.class.php
diff -u php-wiki-web/dokuwiki/inc/auth/phpcvs.class.php:1.1
php-wiki-web/dokuwiki/inc/auth/phpcvs.class.php:1.2
--- php-wiki-web/dokuwiki/inc/auth/phpcvs.class.php:1.1 Wed Mar 12 22:57:42 2008
+++ php-wiki-web/dokuwiki/inc/auth/phpcvs.class.php Fri Mar 14 22:35:10 2008
@@ -19,6 +19,17 @@
*/
function auth_phpcvs() {
parent::auth_plain();
+ $this->cando['external'] = true;
+ }
+
+ function trustExternal($user,$pass,$sticky=false){
+ $silent = false;
+ if ($user === '' && isset($_COOKIE['MAGIC_COOKIE'])) {
+ list ($user, $pass) = explode(':',
base64_decode($_COOKIE['MAGIC_COOKIE']), 2);
+ $sticky = false;
+ $silent = true;
+ }
+ return auth_login($user,$pass,$sticky,$silent);
}
/**