[horde] defaults

Craig White craigwhite at azapple.com
Sun Feb 20 14:45:15 PST 2005


I have found myself tucking a lot of stuff into various
horde/config/prefs.php and horde/..app../config/prefs.php and was
thinking that it would be nice if you could login as say _default_user_
and change that users preferences and have all horde applications use
the _default_user_ preferences when the actual user hasn't overridden
them.

For example, I wanted to create a lot of categories and category_colors
- both of which are set in horde/config/prefs.php

consequently, I've now got...

// categories
$_prefs['categories'] = array(
    'value' => 'Appointment - In Office|Appointment - Out of Office|
Company Event|Personal Event|Personal Task|Task - Administrative Group|
Task - IT Group|Task - Sales Group|Training|Vacation Schedule|Vendor
meeting|Holiday',
    'locked' => false,
    'shared' => true,
    'type' => 'implicit'
);

// category colors
$_prefs['category_colors'] = array(
    'value' => '1:Appointment - Out of Office|2:Company Event|3:Holiday|
4:Personal Event|5:Personal Task|6:Task - Administrative Group|7:Task -
IT Group|8:Task - Sales Group|9:Training|10:Vacation Schedule|11:Vendor
meeting|12:_default_|13:_unfiled_|14:1|15:2|16:3|17:4|18:5|19:6|20:7|
21:8|22:9|23:10|24:11|25:12|26:13|27:14|28:15|29:16|30:17|31:18|32:19|
33:20|34:21|35:22|36:23|37:24|38:25|39:26|40:27|41:28|42:29|43:30|44:31|
45:32|46:33|47:34|48:35|49:36|50:37|51:38|52:39|53:40|54:41|55:42|56:43|
57:44|58:45|59:46|60:47|61:48|62:49|63:50|64:51|65:52|66:53|67:54|68:55|
69:56|70:57|71:58|72:59|73:60|74:61|75:62|76:63|77:64|78:65|79:66|80:67|
81:68|82:69|83:70|84:71|85:72|86:73|87:74|88:75|89:76|90:77|91:78|92:79|
93:80|94:81|95:82|96:83|97:84|98:85|99:86|100:87|101:88|102:89|103:90|
104:91|105:92|106:93|107:94|108:95|109:96|110:97|111:98|112:99|113:100|
114:101|115:102|116:103|117:104|118:105|119:106|120:107|121:108|122:109|
123:110|124:111|125:112|126:113|127:114|128:115|129:116|130:117|131:118|
132:119|133:120|134:121|135:122|136:123|137:124|138:125|139:126|140:127|
141:128|142:129|143:130|144:131|145:132|146:133|147:134|148:135|149:136|
150:137|151:138|152:139|153:140|154:141|155:142|156:143|157:144|158:145|
159:146|160:147|161:148|162:149|163:150|164:151|165:152|166:153|167:154|
168:155|169:156|170:157|171:158|172:159|173:160|174:161|175:162|176:163|
177:164|178:165|179:166|180:167|181:168|182:169|183:170|184:171|185:172|
186:173|187:174|188:175|189:176|190:177|191:178|192:179|193:180|194:181|
195:194|208:|Appointment - In Office:#0000aa|Appointment - Out of
Office:#0000ff|Company Event:#1d1dff|Holiday:#7d7d7d|Personal
Event:#7dff7d|Personal Task:#9dff9d|Task - Administrative Group:#ff5f5f|
Task - IT Group:#ff7f7f|Task - Sales Group:#ff9f9f|Training:#adadff|
Vacation Schedule:#9d9d9d|Vendor meeting:#7d7dff|_default_:#FFFFFF|
_unfiled_:#DDDDDD',
    'locked' => false,
    'shared' => true,
    'type' => 'implicit'
);

in these 2 'fields' and users are picking them up fine - but I could
never teach someone else how to do this - thus isn't maintainable by an
'Office Manager' type.

Unless there is a better way that I have yet to discover, I would love
to suggest a _default_user_ account - perhaps requires an Administrator
authentication, no email access, just creates settings for other users
to use as defaults - which of course would leave your various prefs.php
unharmed by my sloppy edits  ;-)

Thanks

Craig



More information about the horde mailing list