Changeset 477

Show
Ignore:
Timestamp:
2007-12-17 14:32:22 (1 year ago)
Author:
tdb01r
Message:
  • Added some documentation notes
  • Added (unlinked) facility to 'subscribe' to Eprints Subversion
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ldap/www/html/auth.php

    r239 r477  
    11<?php 
     2 
     3/** 
     4 * @class 
     5 * Utility methods for crypting/decrypting the password in a cookie (to allow stateless login) 
     6 */ 
    27 
    38class AuthDB 
  • trunk/ldap/www/html/checkdata.php

    r48 r477  
    11<?php 
     2 
     3/** 
     4 * @file 
     5 * Utility methods to check the validity of input data 
     6 */ 
    27 
    38define("PASSWORD_OK", ""); 
  • trunk/ldap/www/html/en_UK.yml

    r245 r477  
    1313heading.groups.ec.admin: Manage Eprints Community Managers 
    1414heading.groups.ec.manage: Manage Your Eprints Community Members 
     15heading.eprints_svn: Subscribe to access Eprints Subversion 
    1516 
    1617help.editothers: You appear to have permissions to modify other accounts: 
     
    2223 account in this system. Once created you can use their email address (the 
    2324 account name) to add them to your Eprints Community subscription. 
     25 
     26eprints_svn.subscribed: You have been subscribed to EPrints Subversion. 
     27eprints_svn.unsubscribed: You have been unsubscribed from EPrints Subversion. 
     28eprints_svn.agree: I Agree 
     29eprints_svn.disagree: No Thank You 
     30eprints_svn.agreement: 
    2431 
    2532nav.home: Home 
     
    5764error.notloggedin: You must be logged into to access this feature 
    5865error.badrecover: Invalid recovery value 
     66error.eprints_svn.failed: An unexpected internal LDAP error occurred, the administrator will need to look in the server error logs for why. 
    5967 
    6068form.register.submit: Register 
  • trunk/ldap/www/html/forms.php

    r461 r477  
    11<?php 
     2 
     3/** 
     4 * @file 
     5 * Forms and other input things 
     6 */ 
    27 
    38function confirm_form($options) 
  • trunk/ldap/www/html/groups.php

    r156 r477  
    11<?php 
     2 
     3/** 
     4 * @class 
     5 * The LDAP group database class. 
     6 * 
     7 * This class provides a simple interface to interogate and manipulate the LDAP group memberships 
     8 */ 
    29 
    310class GroupDB { 
     
    1320        } 
    1421 
     22        /** 
     23         * Returns whether a user is a member of a group 
     24         * 
     25         * @param $group 
     26         *   Group to look in 
     27         * @param $cn 
     28         *   CNAME to search for 
     29         * @return 
     30         *   TRUE if $cn is in $group 
     31        */ 
    1532        function has_member($group,$cn) 
    1633        { 
     
    2138                ); 
    2239        } 
     40        /** 
     41         * Synonym of has_member, but with the arguments reversed. 
     42         * 
     43         * @param $cn 
     44         *   CNAME to search for 
     45         * @param $group 
     46         *   Group to look in 
     47         * @return 
     48         *   TRUE if $cn is in $group 
     49         */ 
    2350        function member_of($cn,$group) { 
    2451                return $this->has_member($group,$cn); 
    2552        } 
    2653 
     54        /** 
     55         * Add a new member to a group 
     56         * 
     57         * @param $group 
     58         *   Group to add member to 
     59         * @param $cn 
     60         *   CNAME to add to group 
     61         * @return 
     62         *   TRUE if successful 
     63         */ 
    2764        function add_member($group,$cn) 
    2865        { 
  • trunk/ldap/www/html/index.php

    r245 r477  
    134134} elseif( $action === 'groups' ) { 
    135135        include("action_groups.php"); 
     136} elseif( $action === 'eprints_svn' ) { 
     137        include("action_eprints_svn.php"); 
    136138} else { 
    137139        include("action_default.php"); 
  • trunk/ldap/www/html/ldap.php

    r250 r477  
    11<?php 
    22 
    3 /* LDAP Library Functions */ 
     3/** @class 
     4 * A simple interface to the LDAP library. 
     5 */ 
    46 
    57class LDAP { 
     
    155157} 
    156158 
     159/** 
     160 * @class 
     161 * A class representing a single LDAP user. 
     162 *  
     163 */ 
     164 
    157165class UserDB { 
    158166        var $db;