diff options
author | ivan <ivan> | 2001-02-03 14:03:50 +0000 |
---|---|---|
committer | ivan <ivan> | 2001-02-03 14:03:50 +0000 |
commit | d220c8a4bfa1aee8f17ed71c2dba655160dd3595 (patch) | |
tree | 67e5270d4dbe6d98bf1d6f6213c057997d877e31 /htdocs | |
parent | d746dfce2e320169ec8217cb09b9dbb0d403675d (diff) |
time-based prepaid cards, session monitor. woop!
Diffstat (limited to 'htdocs')
-rw-r--r-- | htdocs/docs/session.html | 2 | ||||
-rw-r--r-- | htdocs/docs/signup.html | 2 | ||||
-rw-r--r-- | htdocs/docs/upgrade6.html | 4 |
3 files changed, 7 insertions, 1 deletions
diff --git a/htdocs/docs/session.html b/htdocs/docs/session.html index 3e88d56..bd8edba 100644 --- a/htdocs/docs/session.html +++ b/htdocs/docs/session.html @@ -44,5 +44,7 @@ Then: <li>Sesstion start - The command(s) specified in the <a href="config.html#session-start">session-start</a> 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: <code>$ip</code>, <code>$nasip</code> and <code>$nasfqdn</code>, 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. <li>Session end - The command(s) specified in the <a href="config.html#session-stop">session-stop</a> 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: <code>$ip</code>, <code>$nasip</code> and <code>$nasfqdn</code>, 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. </ul> +<h2>Dropping expired users</h2> +Run <pre>bin/freeside-session-kill username</pre> periodically from cron. </body> </html> diff --git a/htdocs/docs/signup.html b/htdocs/docs/signup.html index 6f1e039..a40b1f9 100644 --- a/htdocs/docs/signup.html +++ b/htdocs/docs/signup.html @@ -52,6 +52,6 @@ Optional: <li>$email_name - first and last name </ul> (an example file is included as <b>fs_signup/cck.template</b>). See the <a href="http://help.netscape.com/products/client/mc/acctproc4.html">Netscape documentation</a> for more information. - <li>If there are any entries in the <i>prepay_credit</i> table, a user can enter a string matching the <b>identifier</i> column to receive the credit specified in the <b>amount</b> column, after which that <b>identifier</b> is no longer valid. This can be used to implement pre-paid "calling card" type signups. The <i>bin/generate-prepay</i> script can be used to populate the <i>prepay_credit</i> table. + <li>If there are any entries in the <i>prepay_credit</i> table, a user can enter a string matching the <b>identifier</i> column to receive the credit specified in the <b>amount</b> column, and/or the time specified in the <b>seconds</b> column (for use with the <a href="session.html">session monitor</a>), after which that <b>identifier</b> is no longer valid. This can be used to implement pre-paid "calling card" type signups. The <i>bin/generate-prepay</i> script can be used to populate the <i>prepay_credit</i> table. </ul> </body> diff --git a/htdocs/docs/upgrade6.html b/htdocs/docs/upgrade6.html index 8240b6c..8e70b55 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; </pre> <li>Copy or symlink htdocs to the new copy. |