Zikula_System_Modules
[ class tree: Zikula_System_Modules ] [ index: Zikula_System_Modules ] [ all elements ]

Source for file pninit.php

Documentation is available at pninit.php

  1. <?php
  2. /**
  3.  * Zikula Application Framework
  4.  * @copyright (c) 2001, Zikula Development Team
  5.  * @link http://www.zikula.org
  6.  * @version $Id: pninit.php 24342 2008-06-06 12:03:14Z markwest $
  7.  * @license GNU/GPL - http://www.gnu.org/copyleft/gpl.html
  8.  * @package Zikula_System_Modules
  9.  * @subpackage AuthLDAP
  10. */
  11.  
  12. /**
  13.  * Initialise the ldap auth module
  14.  * This function is only ever called once during the lifetime of a particular
  15.  * module instance
  16.  * @author Mike Goldfinger <MikeGoldfinger@linuxmail.org>
  17.  * @link http://authldap.ch.vu
  18.  * @return bool true on success or false on failure
  19.  */
  20. function authldap_init()
  21. {
  22.     pnModSetVar('AuthLDAP''authldap_serveradr''127.0.0.1');
  23.     pnModSetVar('AuthLDAP''authldap_basedn''dc=foo,dc=bar');
  24.     pnModSetVar('AuthLDAP''authldap_bindas''');
  25.     pnModSetVar('AuthLDAP''authldap_bindpass''');
  26.     pnModSetVar('AuthLDAP''authldap_searchdn''ou=users,dc=foo,dc=bar');
  27.     pnModSetVar('AuthLDAP''authldap_searchattr''uid');
  28.  
  29.     // Initialisation successful
  30.     return true;
  31. }
  32.  
  33. /**
  34.  * Upgrade the AuthLDAP module from an old version
  35.  * This function can be called multiple times
  36.  * @author Mike Goldfinger <MikeGoldfinger@linuxmail.org>
  37.  * @link http://authldap.ch.vu
  38.  * @return bool true on success or false on failure
  39.  */
  40. function authldap_upgrade($oldversion)
  41. {
  42.     // Update successful
  43.     return true;
  44. }
  45.  
  46. /**
  47.  * delete the ldap auth module
  48.  * This function is only ever called once during the lifetime of a particular
  49.  * module instance
  50.  * @author Mike Goldfinger <MikeGoldfinger@linuxmail.org>
  51.  * @link http://authldap.ch.vu
  52.  * @return bool true on success or false on failure
  53.  */
  54. function authldap_delete()
  55. {
  56.     // Delete module variables
  57.     pnModDelVar('AuthLDAP');
  58.  
  59.     // Deletion successful
  60.     return true;
  61. }

Documentation generated on Fri, 18 Jul 2008 21:53:32 +0200 by phpDocumentor 1.4.1