[DGD] accessd.c filter_from_file ??
Michael McKiel
crashnbrn71 at yahoo.ca
Tue Feb 10 18:40:23 CET 2004
I was wondering if someone could explain this function's syntax, the
access[file .. file] makes sense, but the rest looks quite strange.
access[file + "/" .. file + "0"] ??
why would file be appended with a zero?
Thanks.
/*
* NAME: filter_from_file()
* DESCRIPTION: filter access from a file
*/
private mapping filter_from_file(mapping access, string file)
{
if (file == "/") {
return access;
}
return access[file .. file] +
(access[file + "/" .. file + "0"] - ({ file + "0" }));
}
______________________________________________________________________
Post your free ad now! http://personals.yahoo.ca
_________________________________________________________________
List config page: http://list.imaginary.com/mailman/listinfo/dgd
More information about the DGD
mailing list