[ingo] Enabling Vacation option

Jan Schneider jan at horde.org
Wed Apr 30 07:13:15 UTC 2014


Zitat von carlo at unipg.it:

> Dear all,
>
> this is my first message in the list. I’m running Horde Groupware  
> 5.1.4 and Ingo 3.1.4.
> I need to add the vacation option to those already available  
> (blacklist/whitelist).
> I’m dealing with the ‘customsql’ backend, but no success (error on  
> accessing with ‘Failed to import configuration file').
>
> I’m using a backends.local.php file in which I specified:
>
> $backends['customsql']['disabled']=false;
> $backends['customsql']['preferred']=‘<domain>';
> $backends['customsql']['transport'][Ingo::RULE_ALL]['driver']='sql';
> $backends['customsql']['transport'][Ingo::RULE_ALL]['params']['sql']['username'] =  
> ‘<user>';
> $backends['customsql']['transport'][Ingo::RULE_ALL]['params']['sql']['password'] =  
> ‘<pass>';
> $backends['customsql']['transport'][Ingo::RULE_ALL]['params']['sql']['hostspec'] =  
> ‘<ip>';
> $backends['customsql']['transport'][Ingo::RULE_ALL]['params']['sql']['port']  
> = '3306';
> $backends['customsql']['transport'][Ingo::RULE_ALL]['params']['sql']['protocol'] =  
> 'tcp';
> $backends['customsql']['transport'][Ingo::RULE_ALL]['params']['sql']['database'] =  
> ‘<database>';
> $backends['customsql']['transport'][Ingo::RULE_ALL]['params']['sql']['charset'] =  
> 'utf-8';
> $backends['customsql']['transport'][Ingo::RULE_ALL]['params']['sql']['ssl']  
> = 'true';
> $backends['customsql']['transport'][Ingo::RULE_ALL]['params']['sql']['splitread'] =  
> 'false';
> $backends['customsql']['transport'][Ingo::RULE_ALL]['params']['sql']['phptype'] =  
> 'mysql';
> $backends['customsql']['script'][Ingo::RULE_ALL]['driver'] = 'customsql';
> $backends['customsql']['script'][Ingo::RULE_ALL]['params']['vacation_unset']  
> = 'UPDATE vacation SET active = 0 WHERE user = %u';
> $backends['customsql']['script'][Ingo::RULE_ALL]['params']['vacation_set'] =  
> 'REPLACE INTO vacation (active, subject, message, user) VALUES (1,  
> %s, %m, %u)’;
>
> is this the right way? can anyone help me please?
> Thank you very much.
> —Carlo

You are missing a leading PHP tag:

<?php

And please don't cross-post to multiple lists.

-- 
Jan Schneider
The Horde Project
http://www.horde.org/
https://www.facebook.com/hordeproject



More information about the ingo mailing list