/etc/horde/turba/hooks.php.dist is in php-horde-turba 4.2.2-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | <?php
/**
* Turba hooks configuration file.
*
* THE HOOKS PROVIDED IN THIS FILE ARE EXAMPLES ONLY. DO NOT ENABLE THEM
* BLINDLY IF YOU DO NOT KNOW WHAT YOU ARE DOING. YOU HAVE TO CUSTOMIZE THEM
* TO MATCH YOUR SPECIFIC NEEDS AND SYSTEM ENVIRONMENT.
*
* For more information please see the horde/config/hooks.php.dist file.
*
* $Id: aec06f88d7f4cc0ee7d50555011a4e5935463d43 $
*/
class Turba_Hooks
{
/**
* Called when we store a value.
*
* @param string $attribute Attribute name.
* @param string $new New value.
* @param string $old Old value.
* @param Turba_Object $contact Contact object.
*
* @return string The encoded value.
*/
// public function encode_attribute($attribute, $new, $old, $contact)
// {
// switch ($attribute) {
// case 'password':
// /* Passwords should be MD5 encoded, but not displayed. */
// return (is_null($new) || ($new == '') || ($new == '[Not Displayed]'))
// ? $old
// : hash('md5', $new);
// }
//
// return $new;
// }
/**
* Called when we display a value.
*
* @param string $attribute Attribute name.
* @param mixed $value Attribute value.
* @param Turba_Object $contact Contact object.
*
* @return string The decoded value.
* @throws Turba_Exception Thrown if there is nothing to decode.
*/
// public function decode_attribute($attribute, $value, $contact)
// {
// switch ($attribute) {
// case 'password':
// /* Passwords should be MD5 encoded, but not displayed. */
// return (strstr($_SERVER['PHP_SELF'], 'editobject'))
// ? null
// : '[Not Displayed]';
// }
//
// throw new Turba_Exception('No decode handler.');
// }
}
|