Advertisement
Guest User

Untitled

a guest
Nov 4th, 2015
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 7.49 KB | None | 0 0
  1.  
  2. $cfgSources['localsql'] = array(
  3.     // ENABLED by default
  4.     'disabled' => false,
  5.     'title' => _("Shared Address Books"),
  6.     'type' => 'sql',
  7.     'params' => array(
  8.         // The default connection details are pulled from the Horde-wide SQL
  9.         // connection configuration.
  10.         // To use another DB connection, you must provide configuration
  11.         // information here - for example,
  12.         //'sql' => array(
  13.         //    'persistent' => false,
  14.         //    'username' => 'horde',
  15.         //    'password' => 'secret',
  16.         //    'socket' => '/var/run/mysqld/mysqld.sock',
  17.         //    'protocol' => 'unix',
  18.         //    'database' => 'horde',
  19.         //    'charset' => 'utf-8',
  20.         //    'ssl' => false,
  21.         //    'splitread' => false,
  22.         //    'phptype' => 'mysql'
  23.         //),
  24.         'table' => 'turba_objects'
  25.     ),
  26.     'map' => array(
  27.         '__key' => 'object_id',
  28.         '__owner' => 'owner_id',
  29.         '__type' => 'object_type',
  30.         '__members' => 'object_members',
  31.         '__uid' => 'object_uid',
  32.         'firstname' => 'object_firstname',
  33.         'lastname' => 'object_lastname',
  34.         'middlenames' => 'object_middlenames',
  35.         'namePrefix' => 'object_nameprefix',
  36.         'nameSuffix' => 'object_namesuffix',
  37.         'name' => array('fields' => array('namePrefix', 'firstname',
  38.                                           'middlenames', 'lastname',
  39.                                           'nameSuffix'),
  40.                         'format' => '%s %s %s %s %s',
  41.                         'parse' => array(
  42.                             array('fields' => array('firstname', 'middlenames',
  43.                                                     'lastname'),
  44.                                   'format' => '%s %s %s'),
  45.                             array('fields' => array('firstname', 'lastname'),
  46.                                   'format' => '%s %s'))),
  47.         // This is a shorter version of a "name" composite field which only
  48.         // consists of the first name and last name.
  49.         // 'name' => array('fields' => array('firstname', 'lastname'),
  50.         //                 'format' => '%s %s'),
  51.         'alias' => 'object_alias',
  52.         //'yomifirstname' => 'object_yomifirstname',
  53.         //'yomilastname' => 'object_yomilastname',
  54.         'birthday' => 'object_bday',
  55.         //'anniversary' => 'object_anniversary',
  56.         //'spouse' => 'object_spouse',
  57.         'photo' => 'object_photo',
  58.         'phototype' => 'object_phototype',
  59.         'homeStreet' => 'object_homestreet',
  60.         'homePOBox' => 'object_homepob',
  61.         'homeCity' => 'object_homecity',
  62.         'homeProvince' => 'object_homeprovince',
  63.         'homePostalCode' => 'object_homepostalcode',
  64.         'homeCountry' => 'object_homecountry',
  65.         'homeAddress' => array('fields' => array('homeStreet', 'homeCity',
  66.                                                  'homeProvince',
  67.                                                  'homePostalCode'),
  68.                                'format' => "%s\n%s, %s  %s"),
  69.         'workStreet' => 'object_workstreet',
  70.         'workPOBox' => 'object_workpob',
  71.         'workCity' => 'object_workcity',
  72.         'workProvince' => 'object_workprovince',
  73.         'workPostalCode' => 'object_workpostalcode',
  74.         'workCountry' => 'object_workcountry',
  75.         'workAddress' => array('fields' => array('workStreet', 'workCity',
  76.                                                  'workProvince',
  77.                                                  'workPostalCode'),
  78.                                'format' => "%s\n%s, %s  %s"),
  79.         //'otherStreet' => 'object_otherstreet',
  80.         //'otherPOBox' => 'object_otherpob',
  81.         //'otherCity' => 'object_othercity',
  82.         //'otherProvince' => 'object_otherprovince',
  83.         //'otherPostalCode' => 'object_otherpostalcode',
  84.         //'otherCountry' => 'object_othercountry',
  85.         //'otherAddress' => array('fields' => array('otherStreet', 'otherCity',
  86.         //                                         'otherProvince',
  87.         //                                          'otherPostalCode'),
  88.         //                        'format' => "%s\n%s, %s  %s"),
  89.         'department' => 'object_department',
  90.         'manager' => 'object_manager',
  91.         'assistant' => 'object_assistant',
  92.         //'timezone' => 'object_tz',
  93.         'email' => 'object_email',
  94.         'homeEmail' => 'object_homeemail',
  95.         'workEmail' => 'object_workemail',
  96.         'homePhone' => 'object_homephone',
  97.         //'homePhone2' => 'object_homephone2',
  98.         //'homeFax' => 'object_homefax',
  99.         'workPhone' => 'object_workphone',
  100.         //'workPhone2' => 'object_workphone2',
  101.         'cellPhone' => 'object_cellphone',
  102.         //'carPhone' => 'object_carphone',
  103.         //'radioPhone' => 'object_radiophone',
  104.         //'companyPhone' => 'object_companyphone',
  105.         //'assistPhone' => 'object_assistantphone',
  106.         'fax' => 'object_fax',
  107.         'pager' => 'object_pager',
  108.         'title' => 'object_title',
  109.         'role' => 'object_role',
  110.         'company' => 'object_company',
  111.         'logo' => 'object_logo',
  112.         'logotype' => 'object_logotype',
  113.         'notes' => 'object_notes',
  114.         'website' => 'object_url',
  115.         'freebusyUrl' => 'object_freebusyurl',
  116.         'pgpPublicKey' => 'object_pgppublickey',
  117.         'smimePublicKey' => 'object_smimepublickey',
  118.         //'imaddress' => 'object_imaddress',
  119.         //'imaddress2' => 'object_imaddress2',
  120.         //'imaddress3' => 'object_imaddress3'
  121.     ),
  122.     'tabs' => array(
  123.         _("Personal") => array('firstname', 'lastname', 'middlenames',
  124.                                'namePrefix', 'nameSuffix', 'name', 'alias',
  125.                                'birthday', 'spouse', 'anniversary',
  126.                                'yomifirstname', 'yomilastname', 'photo'),
  127.         _("Location") => array('homeStreet', 'homePOBox', 'homeCity',
  128.                                'homeProvince', 'homePostalCode', 'homeCountry',
  129.                                'homeAddress', 'workStreet', 'workPOBox',
  130.                                'workCity', 'workProvince', 'workPostalCode',
  131.                                'workCountry', 'workAddress', 'otherStreet',
  132.                                'otherPOBox', 'otherCity', 'otherProvince',
  133.                                'otherPostalCode', 'otherCountry',
  134.                                'otherAddress','timezone'),
  135.         _("Communications") => array('email', 'homeEmail', 'workEmail',
  136.                                      'homePhone', 'homePhone2',
  137.                                      'workPhone', 'workPhone2', 'carPhone',
  138.                                      'radioPhone', 'companyPhone',
  139.                                      'assistPhone', 'homeFax',
  140.                                      'cellPhone', 'fax', 'pager', 'imaddress',
  141.                                      'imaddress2', 'imaddress3'),
  142.         _("Organization") => array('title', 'role', 'company', 'department', 'logo', 'assistant', 'manager'),
  143.         _("Other") => array('notes', 'website', 'freebusyUrl',
  144.                             'pgpPublicKey', 'smimePublicKey'),
  145.     ),
  146.     'search' => array(
  147.         'name',
  148.         'email',
  149.         'homeEmail',
  150.         'workEmail'
  151.     ),
  152.     'strict' => array(
  153.         'object_id',
  154.         'owner_id',
  155.         'object_type',
  156.         'object_uid'
  157.     ),
  158.     'export' => true,
  159.     'browse' => true,
  160.     'use_shares' => true,
  161.     'list_name_field' => 'lastname',
  162.     'alternative_name' => 'company',
  163. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement