[pmwiki-users] FW: vBulletin 3.5 user system integration

Tim Ahrentlov ta at ateist.org
Mon Jan 23 09:26:13 CST 2006


Hi P,

I'm currently experimenting with the following code:

## VB 3.5 Integration Begin
require_once('cookbook/vBIntegration.php');

$DefaultPasswords['edit'] = '*';
$DefaultPasswords['admin'] = '*';
$DefaultPasswords['attr'] = '*';
$DefaultPasswords['upload'] = '*';

if ($vBUsrID!=0)
{
	if (vBIsTrusted())
	{
		Echo "Hello world";
		$DefaultPasswords['edit'] = '';
		$DefaultPasswords['upload'] = '';
	}

	if (vBIsPriviliged())
	{
		$DefaultPasswords['attr'] = ''; 	
		$DefaultPasswords['admin'] = '';
	}

	$Author = $vBUsrName;
	$AuthorLink = '[['.$vBMemberURL.' | $Author]]';
}

## VB 3.5 Integration End


But there seems to be a problem when blanking out passwords this way. For
example the edit page never shows. Pages can only be viewed. And I do get a
hello world. When I removed the blanking out of default passwords, I get the
edit page. Any suggestions? 


/Tim

-----Original Message-----
From: Patrick R. Michaud [mailto:pmichaud at pobox.com] 
Sent: 20. januar 2006 20:01
To: Tim Ahrentlov
Cc: pmwiki-users at pmichaud.com
Subject: Re: [pmwiki-users] vBulletin 3.5 user system integration

On Fri, Jan 20, 2006 at 07:52:17PM +0100, Tim Ahrentlov wrote:
> Patrick
> 
> One more:
> 
> A:    $DefaultPasswords['edit'] = (<person_is_logged_in>) ? '' : '*';
> Q:	What does the * do? Is password a "*" or does trigger some other
> behavior?

Passwords in PmWiki are always stored as encrypted values, so
setting this to '*' effectively "locks" the password (since no
entered cleartext password will encrypt to '*').

Pm






More information about the pmwiki-users mailing list