Hi Jose,
Thanks for the below; if you intend to send any more stuff 'our' way,
please send to the postfixadmin-devel mailing list.
I'm personally happy to merge the vacation.pl stuff (at least .ini
file support) but I'm not sure I like the config directory (i'd rather
config stuff was in /etc/postfixadmin or something .... )
thanks,
David.
Jose Nilton wrote :
> I'm making some changes in vacation.pl
> added Config:: INI:: Simple;
> I created a configuration file
>
> This is simply be done by setting a postfixadmin
>
>
>
>
> This config is Debian
> *I use OpenSuSe 11.1*
>
>
> ADD modulo Config::INI in perl
> perl -MCPAN -e shell
> install Config::INI::Simple
>
>
>
> mkdir /var/www/postfixadmin/config/
> touch /var/www/postfixadmin/config/.htaccess
>
> ADD
> echo 'Order allow,deny
> Deny from all' > /var/www/postfixadmin/config/.htaccess
>
>
> touch /var/www/postfixadmin/config/config.ini
> *[vacation]
> domain = site.com
> reply = autoreply.site.com
> db_type = mysql
> db_host = localhost
> db_username = postfixadmin
> db_password = postfixadmin
> db_name = postfix
> *
>
> use Config::INI::Simple;
> my $conf = new Config::INI::Simple;
> $conf->read ("/var/www/postfixadmin/config/config.ini");
>
> my $db_type = $conf->{postfixadmin}->{db_type};
>
> # leave empty for connection via UNIX socket
> my $db_host = $conf->{postfixadmin}->{db_host};
>
> # connection details
> my $db_username = $conf->{postfixadmin}->{db_username};
> my $db_password = $conf->{postfixadmin}->{db_password};
> my $db_name = $conf->{postfixadmin}->{db_name};
>
> my $vacation_domain = $conf->{postfixadmin}->{vacation};
>
>
> Thanks !!!
>
>
> --
> _________________________
> Web Site: http://zaitan.net
> Wiki: http://zaitan.net/wiki
--
David Goodwin Pale Purple Limited
Office: 0845 0046746 Mobile: 07792380669
http://www.palepurple.co.uk Company No: 5580814
'Business Web Application Development and Training in PHP'
|