Version 2.5
Support for antivirus uploading files. (ClamAV function is provided). This idea was suggested by Bill R.
smbwebclient-2.5.php.gz
I would like to receive functions for other antivirus programs. Example:
function ClamAV ($file)
{
$out = split("\n",`clamscan $file`);
if (ereg('^'.$file.': (.*) FOUND$', $out[0], $regs)) {
$this->status = 'VIRUS: '.$regs[1];
return true;
} else {
return false;
}
}
Send your contributions to vmvarela@gmail.com.
4 Comments:
Hi,
for 'Rename selected items' and 'Download this folder (.tgz)' the language (DE) is not recognized. All the other options in the drop down box are in german.
Settings (/etc/smbwebclient.conf):
class smbwebclient_config extends smbwebclient {
var $cfgSambaRoot = 'TOMMAIK/VMEIS';
var $cfgDefaultLanguage = 'de';
// all your settings ...
}
?>
/var/www/htdocs/smbwebclient.php:
$SMBWEBCLIENT_CLASS = 'smbwebclient_config';
include '/usr/share/doc/samba/tools/smbwebclient.php';
include '/etc/smbwebclient.conf';
$swc = new smbwebclient_config;
$swc->Run(@$_REQUEST['path']);
?>
der tom
This problem also occurs with the Dutch language (NL)
Hi Victor,
a lot of temp files are left in /tmp:
vmeis # ls -l sess*
-rw------- 1 wwwrun nogroup 21 Feb 25 23:17 sess_11a48c6a3d330b1447a9551cebec311d
-rw------- 1 wwwrun nogroup 21 Feb 25 23:18 sess_3aa0f734fa078f8883a0acf7bc9f35fd
-rw------- 1 wwwrun nogroup 21 Feb 25 23:17 sess_49557d16692b6a3f7a5d24ff0cac19cd
-rw------- 1 wwwrun nogroup 21 Feb 25 23:17 sess_651fbac4e29038842c2f273d905ee959
-rw------- 1 wwwrun nogroup 21 Feb 25 23:17 sess_748661926870cd34470971030b093ad6
-rw------- 1 wwwrun nogroup 21 Feb 25 23:17 sess_8c2ce1eb5c76815c47a101b63eea80fc
-rw------- 1 wwwrun nogroup 21 Feb 25 23:17 sess_9adaa159028873428df2fa2cdf2e6908
-rw------- 1 wwwrun nogroup 21 Feb 25 23:17 sess_b6f8b5f465c76635261b2e7c5fb81ad7
-rw------- 1 wwwrun nogroup 21 Feb 25 23:17 sess_b8c0cf32d9999f10f8c682161ca28ac1
-rw------- 1 wwwrun nogroup 39 Feb 25 23:17 sess_bda4d7097768c953dcc7bef5b178e518
and so on. Configuration is the same as in first comment.
Do you have an idee why?
der tom
In first place, sorry for my English and congratulations for the php script.
My problem is the next, when I download a file, the script added the text to end of file:
added interface ip=X.X.X.X bcast=X.X.X.X nmask=X.X.X.X
Domain=[MYGROUP] OS=[Unix] Server=[Samba 2.2.7a]
getting file \zzzzz.txt of size 336 as - (328.1 kb/s) (average 328.1 kb/s)
This text is added to all the files.
Thanks
Post a Comment
<< Home