[ Index ]
 

Code source de IMP H3 (4.1.5)

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/lib/ -> Session.php (sommaire)

(pas de description)

Poids: 406 lignes (17 kb)
Inclus ou requis: 6 fois
Référencé: 0 fois
Nécessite: 5 fichiers
 lib/IMAP.php
 lib/IMAP/Tree.php
 lib/IMAP/Client.php
 lib/Search.php
 lib/Filter.php

Définit 1 class

IMP_Session:: (3 méthodes):
  createSession()
  loginTasks()
  getInitialUrl()


Classe: IMP_Session  - X-Ref

Functions required to start an IMP session.

$Horde: imp/lib/Session.php,v 1.74.2.33 2007/01/02 13:54:56 jan Exp $

Copyright 1999-2007 Chuck Hagenbuch <chuck@horde.org>
Copyright 1999-2007 Jon Parise <jon@horde.org>

See the enclosed file COPYING for license information (GPL). If you
did not receive this file, see http://www.fsf.org/copyleft/gpl.html.

createSession($imapuser, $password, $server, $args = array()   X-Ref
Take information posted from a login attempt and try setting up
an initial IMP session. Handle Horde authentication, if
required, and only do enough work to see if the user can log
in. This function should only be called once, when the user
first logs in.

Creates the $imp session variable with the following entries:
'_logintasks'   -- Have the login tasks been completed?
'acl'           -- See config/servers.php.
'admin'         -- See config/servers.php.
'base_protocol' -- Either 'imap' or 'pop3'.
'cache'         -- Various IMP libraries can use this variable to cache
data.
'file_upload'   -- If file uploads are allowed, the max size.
'filteravail'   -- Can we apply filters manually?
'imap_server'   -- IMAP server capabilities.
'mailbox'       -- The current viewable mailbox.
'maildomain'    -- See config/servers.php.
'namespace'     -- See config/servers.php.
'notepadavail'  -- Is listing of notepads available?
'pass'          -- The encrypted password.
'port'          -- See config/servers.php.
'protocol'      -- See config/servers.php.
'quota'         -- See config/servers.php.
'search'        -- Settings used by the IMP_Search library.
'server'        -- The name of the server entry in config/servers.php.
'smime'         -- Settings related to the S/MIME viewer.
'smtphost'      -- The SMTP host to use instead of the Horde default.
'smtpport'      -- The SMTP port to use instead of the Horde default.
'showunsub'     -- Show unsusubscribed mailboxes on the folders screen.
'tasklistavail' -- Is listing of tasklists available?
'thismailbox'   -- The mailbox containing the current viewable message.
'uniquser'      -- The unique user name.
'user'          -- The IMAP username.

param: string $imapuser  The username of the user.
param: string $password  The password of the user.
param: string $server    The server to use (see config/servers.php).
param: array $args       The necessary server information.
return: boolean  True on success, false on failure.

loginTasks()   X-Ref
Perform IMP login tasks.


getInitialUrl($actionID = null, $encode = true)   X-Ref
Returns the initial URL.

param: string $actionID  The action ID to perform on the initial page.
param: boolean $encode   If true the argument separator gets encoded.
return: string  The initial URL.



Généré le : Thu Nov 29 12:30:07 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics