Category Archives: php

DNSBL for Horde

Here we go with a small patch to implement DNSBL for Horde. I have again used PEAR package, this time it is the Net_DNSBL, and as usually CentOS package is in my repos – http://fs12.vsb.cz/hrb33/el5/hrb/stable/i386/repoview/php-pear-Net-DNSBL.html. The first patch is the important one. We let the attacker to log in, just to make sure he/she owns [...]

Also posted in CentOS, horde, mailing | Leave a comment

Captcha for Horde

Here is small patch to implement captcha on Horde login page. We have implemeteded Text_CAPTCHA_Numeral. Package for Centos is here: http://fs12.vsb.cz/hrb33/el5/hrb/stable/i386/repoview/php-pear-Text-CAPTCHA-Numeral.html. Here is the patch. — horde-webmail-1.2.8.orig/imp/login.php 2010-10-25 17:10:05.000000000 +0200 +++ horde-webmail-1.2.8/imp/login.php 2010-11-30 17:36:27.571023703 +0100 @@ -398,6 +398,7 @@ $t->set(’user_vinfo’, Horde::callHook(’_imp_hook_vinfo’, array(’vdomain’), ‘imp’)); } $t->set(’password_tabindex’, ++$tabindex); +$t->set(’captch_tabindex’, ++$tabindex);   $t->set(’change_smtphost’, (!empty($conf[’server’][’change_smtphost’]))); if ($t->get(’change_smtphost’)) { @@ [...]

Also posted in CentOS 4.x, CentOS 5.x, horde | Leave a comment

Benchmarking php with apc, memcached

As we are very extensively using techniques to speed up web applications we build or host, I’d like to share some benchmarks. One of our clients is running site on our machines which is using SOAP/WSDL to get data. The application is extremely slow, result are very poor. Apache is able to server this webapp [...]

Posted in php | 2 Comments