[commits] [Wiki] changed: LocalPref
Wiki Guest
wikiguest at horde.org
Thu Jun 23 18:22:52 UTC 2011
guest [78.105.6.158] Thu, 23 Jun 2011 18:22:52 +0000
Modified page: http://wiki.horde.org/LocalPref
New Revision: 1.2
Change log: added
@@ -1,14 +1,43 @@
+ How-To Create/Edit Local Config Files (.local.php)
+
+##red|this is a new page and work is in progress, if you have
anything to add please update##
First read ((Doc/Dev/Configuration|Configuration Files))
Applying changes to the files in {{config/}} (does not apply to
{{conf.php}}) as this is managed though the web-interface and updated
automatically) directories is not recommended as when you update Horde
modules these files will be replaced.
Horde has supplied us a method to get around this problem with local
overrides which are not overwritten each time the modules are updated.
There are also other methods such as {{vhosts}} or {{prefs.d/}} which
this article does not go into directly but the principal is the same.
There are a few ways to add entries into the local files.
-* Replace full array entry
+
+* Replace full array
+<code>
+$mime_drivers = array(
+ /* HTML driver settings */
+ 'html' => array(
+ /* NOTE: Inline HTML display is turned OFF by default. */
+ 'inline' => false,
+ 'handles' => array(
+ 'text/html'
+ ),
+ 'icons' => array(
+ 'default' => 'html.png'
+ ),
+
+ /* If you want to limit the display of message data inline for large
+ * messages, set the maximum size of the displayed message here (in
+ * bytes). If exceeded, the user will only be able to download the
+ * part. Set to 0 to disable this check. */
+ 'limit_inline_size' => 1048576,
+
+ /* Check for phishing exploits? */
+ 'phishing_check' => true
+ )
+);
+</code>
+
+* Replace individual array entry
<code>
/* HTML driver settings */
$mime_drivers['html'] = array(
/* NOTE: Inline HTML display is turned OFF by default. */
More information about the commits
mailing list