Re: Filter script using PHP
Morten Winther <[email protected]> Wed, 05 Oct 2005 11:54:48 +0200
| Newsgroups | gmane.comp.gnu.radius.general |
|---|---|
| Message-ID | <[email protected]> |
Sergey Poznyakoff wrote: >Bill Neely <[email protected]> wrote: > > > >>Does anyone have an example of a filter script written in PHP. I can;t figure >>out what to pass back to have the filter accept or reject the user. >>-- >> >> Hi, Should be same syntax as Exec-Program-Wait, where we use php. Use exit(0); or exit(1); if($left <= 0) { print 'Reply-Message="Access denied: No time left - ' . "$to out of $et minutes used" . '"'; exit(1); } print "Session-Timeout=$left"; exit(0); -- Best regards Morten Winther System & Application Architect