Thursday, 22 January 2009

ClamAV for Windows

My project to use clamwin for moodle on windows
  • download from sourceforege @ http://sourceforge.net/forum/forum.php?forum_id=885580 
  • got a solution from http://moodle.org/mod/forum/discuss.php?d=71744
********************************************************************************************
if you like to use hard coding (typing static path in php file) follow the following steps

1- I installed ClamAV to the folder: C:\ClamWin (with no spaces or dots in the folder name)

2- I did some modifications to the preferencs of the ClamAV, simply moving all DB, log and Quarntine folders to the same installation folder, for my installations these folders are:

C:\ClamWin\db

C:\ClamWin\log

C:\ClamWin\quarantine

Note: you need to open ClamAV and go to tools then preferences to change these parameters, changing the conf file that exists in the bin directory doesn't do the job for you

3- open moodle, in the administration menu, select security , then antivirus, and modify the CalmAV and quarantine paths to the needed values. don't have spaces or dots in the path, in my installation, here are the values:

C:\ClamWin\bin\clamscan.exe

C:\ClamWin\quarantine

4- in moodle installation folder, In file lib/upload.lib in function clam_scan_file change line
 $cmd = $CFG->pathtoclam .' '. $fullpath ." 2>&1";
to 
 $cmd = $CFG->pathtoclam .' --database=C:\ClamWin\db '. $fullpath ." 2>&1";

********************************************************************************************

  • project status successful and i suppose clam antivirus is a good opensource antivirus especially for server


Tuesday, 20 January 2009

Weather RSS feed

http://weather.yahooapis.com/forecastrss?p=BXXX0001&u=c

http://weather.yahooapis.com/forecastrss?p=BXXX0001&u=f

http://developer.yahoo.com/weather/