#!/usr/bin/perl -Tw
#
-# $Id: part_svc.cgi,v 1.10 1999-04-08 13:01:50 ivan Exp $
+# $Id: part_svc.cgi,v 1.14 2001-05-30 14:42:11 ivan Exp $
#
# ivan@sisd.com 97-nov-14
#
# use FS::CGI, added inline documentation ivan@sisd.com 98-jul-12
#
# $Log: part_svc.cgi,v $
-# Revision 1.10 1999-04-08 13:01:50 ivan
+# Revision 1.14 2001-05-30 14:42:11 ivan
+# Adam Rose <adamr@eaze.net>: "In the /edit/part_svc.cgi is there a need to add
+# another section for svc_www?". Yes. Thanks Adam.
+#
+# Revision 1.13 2000/06/15 11:10:31 ivan
+# update to the inline documentation, hopefully will make things more clear
+#
+# Revision 1.12 1999/04/09 04:22:34 ivan
+# also table()
+#
+# Revision 1.11 1999/04/09 03:52:55 ivan
+# explicit & for table/itable/ntable
+#
+# Revision 1.10 1999/04/08 13:01:50 ivan
# [ AND DOCUMENT! ] all svc_acct services should have a default
# or fixed shell
#
<UL><LI>svc_acct - Shell accounts, POP mailboxes, SLIP/PPP and ISDN accounts
<LI>svc_domain - Virtual domains
<LI>svc_acct_sm - Virtual domain mail aliasing
+ <LI>svc_www - Virtual domain website
END
# <LI>svc_charge - One-time charges (Partially unimplemented)
# <LI>svc_wo - Work orders (Partially unimplemented)
<B>/usr/bin/passwd</B>.
<BR><BR>
END
-print table, '<TR><TH>Table<SELECT NAME="svcdb" SIZE=1>',
+print &table(), '<TR><TH>Table<SELECT NAME="svcdb" SIZE=1>',
map '<OPTION'. ' SELECTED'x($_ eq $hashref->{svcdb}). ">$_\n", qw(
- svc_acct svc_domain svc_acct_sm
+ svc_acct svc_domain svc_acct_sm svc_www
);
print "</SELECT>";
# svc_acct svc_domain svc_acct_sm svc_charge svc_wo
'svc_acct' => {
'dir' => 'Home directory',
'uid' => 'UID (set to fixed and blank for dial-only)',
- 'slipip' => 'IP address',
+ 'slipip' => 'IP address (set to fixed and blank to disable dialin)',
'popnum' => qq!<A HREF="$p/browse/svc_acct_pop.cgi/">POP number</A>!,
'username' => 'Username',
'quota' => '(unimplemented)',
'worker' => 'Worker',
'_date' => 'Date',
},
+ 'svc_www' => {
+ #'recnum' => '',
+ #'usersvc' => '',
+ },
);
# svc_acct svc_domain svc_acct_sm svc_charge svc_wo
foreach $svcdb ( qw(
- svc_acct svc_domain svc_acct_sm
+ svc_acct svc_domain svc_acct_sm svc_www
) ) {
my(@rows)=map { /^${svcdb}__(.*)$/; $1 }