Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Curie committed Jun 7, 2021
1 parent 61c3b25 commit 38bb1b7
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ LDAP Tool Box White-Pages documentation
general-parameters.rst
ldap-parameters.rst
attributes.rst
photos.rst
55 changes: 55 additions & 0 deletions docs/photos.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
Photos
======

.. note:: Configuration file: ``white-pages/conf/config.inc.local.php``

Default photo
-------------

Configure which file is used as default photo :

.. code-block:: php
$default_photo = "images/240px-PICA.jpg";
LDAP attribute
--------------

Set the name of the LDAP attribute where photo is stored :

.. code-block:: php
$photo_ldap_attribute = "jpegPhoto";
Fixed size
----------

It is possible to resize all photos to a defined width and/or height :

.. code-block:: php
$photo_fixed_width = 240;
$photo_fixed_height = 240;
Local photos
------------

This is possible to load a local photo from file if photo is not found in LDAP directory.

Directory where photo are stored (relative to htdocs/ directory) :

.. code-block:: php
$photo_local_directory = "../photos/";
LDAP attribute that is used as photo file name :

.. code-block:: php
$photo_local_ldap_attribute = "uid";
File extenstion (with the dot) :

.. code-block:: php
$photo_local_extension = ".jpg";

0 comments on commit 38bb1b7

Please # to comment.