From d220c8a4bfa1aee8f17ed71c2dba655160dd3595 Mon Sep 17 00:00:00 2001 From: ivan Date: Sat, 3 Feb 2001 14:03:50 +0000 Subject: time-based prepaid cards, session monitor. woop! --- htdocs/docs/session.html | 2 ++ htdocs/docs/signup.html | 2 +- htdocs/docs/upgrade6.html | 4 ++++ 3 files changed, 7 insertions(+), 1 deletion(-) (limited to 'htdocs/docs') diff --git a/htdocs/docs/session.html b/htdocs/docs/session.html index 3e88d568b..bd8edbab4 100644 --- a/htdocs/docs/session.html +++ b/htdocs/docs/session.html @@ -44,5 +44,7 @@ Then:
  • Sesstion start - The command(s) specified in the session-start configuration file are executed on the Freeside machine. The contents of the file are treated as a double-quoted perl string, with the following variables available: $ip, $nasip and $nasfqdn, which are the IP address of the starting session, and the IP address and fully-qualified domain name of the NAS this session is on.
  • Session end - The command(s) specified in the session-stop configuration file are executed on the Freeside machine. The contents of the file are treated as a double-quoted perl string, with the following variables available: $ip, $nasip and $nasfqdn, which are the IP address of the starting session, and the IP address and fully-qualified domain name of the NAS this session is on. +

    Dropping expired users

    +Run
    bin/freeside-session-kill username
    periodically from cron. diff --git a/htdocs/docs/signup.html b/htdocs/docs/signup.html index 6f1e03930..a40b1f963 100644 --- a/htdocs/docs/signup.html +++ b/htdocs/docs/signup.html @@ -52,6 +52,6 @@ Optional:
  • $email_name - first and last name (an example file is included as fs_signup/cck.template). See the Netscape documentation for more information. -
  • If there are any entries in the prepay_credit table, a user can enter a string matching the identifier column to receive the credit specified in the amount column, after which that identifier is no longer valid. This can be used to implement pre-paid "calling card" type signups. The bin/generate-prepay script can be used to populate the prepay_credit table. +
  • If there are any entries in the prepay_credit table, a user can enter a string matching the identifier column to receive the credit specified in the amount column, and/or the time specified in the seconds column (for use with the session monitor), after which that identifier is no longer valid. This can be used to implement pre-paid "calling card" type signups. The bin/generate-prepay script can be used to populate the prepay_credit table. diff --git a/htdocs/docs/upgrade6.html b/htdocs/docs/upgrade6.html index 8240b6c32..8e70b5586 100644 --- a/htdocs/docs/upgrade6.html +++ b/htdocs/docs/upgrade6.html @@ -34,6 +34,10 @@ ALTER TABLE part_svc ADD svc_www__recnum_flag char(1) NULL; ALTER TABLE part_svc ADD svc_www__usersvc varchar(80) NULL; ALTER TABLE part_svc ADD svc_www__uesrsvc_flag char(1) NULL; ALTER TABLE svc_acct CHANGE _password _password varchar(50) NULL; +ALTER TABLE svc_acct ADD seconds integer NULL; +ALTER TABLE part_svc ADD svc_acct__seconds integer NULL; +ALTER TABLE part_svc ADD svc_acct__seconds_flag char(1) NULL; +ALTER TABLE prepay_credit ADD seconds integer NULL;
  • Copy or symlink htdocs to the new copy. -- cgit v1.2.1