Hello all... --On 29 June 2010 13:22 -0700 Josh Ward <[email protected]> wrote:
> When Packetfence detects a system with this disable it will display the > template that we specify in the URL line. The template is actually > picked up from the directory /usr/local/pf/html/user/content/violations. > > You should be able to copy the files in there and edit the content to > your liking. If you want to go totally wild you can just replace the > URL line in that file with you want and send users there. I sort of knew the above - I think I'm trying an extra addition though. When we get a 'Cease & Desist' they reference the filename, so I have a Perl script which emails the user with the relevant details. Having PF display it would be so much better. The violation table contains an extra field of 'notes' which I could probably use to add something like the filename - the PHP template could then read that from the specific violation-id and so display something like "your network access is disabled until you remove the following file - Shrek.Forever.After.TS.XVID-PrisM". When the template is displayed I guess the PF box knows the MAC address of the requester so it can match a specific id (i.e. the instance of that particular vid) and as it is all just PHP I could put in some code to look up the details via MySQL - I was just looking for examples or whether there's an easier interface to look up. -- Peter Bates, Network Support & Development Officer Goldsmiths, University of London New Cross, London SE14 6NW. Telephone: 020 7919 7082 ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Packetfence-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/packetfence-users
