Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Check credentials with POGI: msg#00000

cms.opengroupware.xmlrpc.devel

Subject: Re: Check credentials with POGI

On Tue, 2005-09-20 at 16:56 -0400, Adam Tauno Williams wrote:
> > here's another question concerning POGI. When I try to connect to my
> > OpenGroupware via xmlrpcd, how do I check if the connection was successfull?
> > At the moment I check if the string length of
> > $server->getCurrentActorLogin()
> > is (> 0). I think this isn't the best way?!

Did these extensions solve your problem?

> The version on my local drive has a OGoServer:isLoggedIn method.
> function isLoggedIn() {
> if($this->currentActor != null)
> return true;
> else
> return false;
> }
> OGoServer::login also returns a bool, by calling the above method.
>
> function login($_username, $_password) {
> $this->client->setCredentials(trim($_username),
> trim($_password));
> if (!isset($this->managers['account']))
> $this->managers['account'] = new OGoAccountManager($this);
> $this->currentActor =
> $this->managers['account']->getCurrentActor();
> return $this->isLoggedIn();
> }
> This works at least for my "MinyOGo" project - which is a very lite web
> interface to OGo for use with devices with very limited displays.

Attachment: signature.asc
Description: This is a digitally signed message part

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
db.postgresql.b...    video.ffmpeg.us...    gis.qgis.devel/...    web.rdf.redland...    file-systems.oc...    recreation.rail...    systems.archos....    python.c++/2003...    lang.c--/2005-0...    multimedia.gpho...    network.unison....    editors.jedit.u...    hardware.pciids...    cms.tiki.cvs/20...    bug-tracking.ma...    java.hadoop.hba...    ietf.rsvp/2002-...    xfree86.devel/2...    qnx.openqnx.dev...    apache.labs.dev...    tex.pdftex/2008...    os.solaris.open...    user-groups.lin...    kde.koffice/200...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation