having a hard time getting the user name and password

Romulo Roberto Pereira rpereira@vox2vox.com
Fri, 1 Jun 2001 09:37:43 -0400


Hello!

I am having  a hard time getting the value of the $imp->user and
$imp->password. This is what I am doing:

require '../lib/horde.lib';
require './lib/imp.lib';
require '../config/horde.php3';
require './config/defaults.php3';
require './config/html.php3';
require './config/lang.php3';

$language = select_lang('', true);
require './lib/postconf.php3';

require "./locale/$language/login.lang";
require './locale/local/login.lang';
$help_file = 'login.help';
require "./locale/defines/$help_file";
require './config/lang.php3';

page_open(array('sess' => 'HordeSession'));

echo $imp->user; // answer: nothing

What am I doing wrong?

TIA,

Rom



>From chuck@horde.org Date: Fri,  1 Jun 2001 09:40:32 -0400
Return-Path: <chuck@horde.org>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 29782 invoked from network); 1 Jun 2001 13:41:53 -0000
Received: from 208-59-250-206.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com (HELO marina.horde.org) (208.59.250.206)
  by horde.org with SMTP; 1 Jun 2001 13:41:53 -0000
Received: by marina.horde.org (Postfix, from userid 33)
	id 8BA85397C; Fri,  1 Jun 2001 09:40:32 -0400 (EDT)
Received: from 206.243.191.252 ( [206.243.191.252])
	as user chuck@localhost by marina.horde.org with HTTP;
	Fri,  1 Jun 2001 09:40:32 -0400
Message-ID: <991402832.3b179b505edef@marina.horde.org>
Date: Fri,  1 Jun 2001 09:40:32 -0400
From: Chuck Hagenbuch <chuck@horde.org>
To: imp@lists.horde.org
References: <OOECIOEEBEJBFJALDIMEIELECAAA.rpereira@vox2vox.com>
In-Reply-To: <OOECIOEEBEJBFJALDIMEIELECAAA.rpereira@vox2vox.com>
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 2.3.7-cvs
Subject: Re: [imp] having a hard time getting the user name and password

Quoting Romulo Roberto Pereira <rpereira@vox2vox.com>:

> I am having  a hard time getting the value of the $imp->user and
> $imp->password. This is what I am doing:

Try calling $imp->unpickle() after the page_open() but before using anything.

-chuck

--
Charles Hagenbuch, <chuck@horde.org>
Black and white and grey, all the shades of truth.