From: <ton...@us...> - 2003-12-14 08:38:29
|
Update of /cvsroot/serverfilters In directory sc8-pr-cvs1:/tmp/cvs-serv3720 Modified Files: backend.php functions.php Log Message: Invoke filtercmd with credentials Index: functions.php =================================================================== RCS file: /cvsroot/serverfilters/functions.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** functions.php 11 Dec 2003 16:28:51 -0000 1.7 --- functions.php 13 Dec 2003 22:03:40 -0000 1.8 *************** *** 30,35 **** $localfile = "/tmp/$FILTERFILE.$username"; if (filter_exists($file)) { ! $command = escapeshellcmd("../plugins/serversidefilter/script/filtercmd getrc $file $localfile"); ! system($command); } else touch($localfile); --- 30,34 ---- $localfile = "/tmp/$FILTERFILE.$username"; if (filter_exists($file)) { ! $result = invoke_filtercmd("getrc $file $localfile"); } else touch($localfile); *************** *** 45,50 **** $file = "$path/$FILTERFILE"; ! $command = escapeshellcmd("../plugins/serversidefilter/script/filtercmd rcexists $file"); ! system($command, $exists); if ($exists == 0) { return true; --- 44,48 ---- $file = "$path/$FILTERFILE"; ! $exists = invoke_filtercmd("rcexists $file"); if ($exists == 0) { return true; *************** *** 69,74 **** $user = $username; ! $command = escapeshellcmd("../plugins/serversidefilter/script/filtercmd putrc $user $file $newfile"); ! system($command); } --- 67,71 ---- $user = $username; ! $result = invoke_filtercmd("putrc $user $file $newfile"); } *************** *** 95,100 **** fclose($fd); ! $command = escapeshellcmd("../plugins/serversidefilter/script/filtercmd putrc $user $tmpfile $dot_qmail"); ! system($command); } --- 92,96 ---- fclose($fd); ! $result = invoke_filtercmd("putrc $user $tmpfile $dot_qmail"); } *************** *** 117,122 **** fclose($fd); ! $command = escapeshellcmd("../plugins/serversidefilter/script/filtercmd putrc $username $tmpfile $dot_forward"); ! system($command); } --- 113,117 ---- fclose($fd); ! $result = invoke_filtercmd("putrc $username $tmpfile $dot_forward"); } |