added stuff for selfservice_server-quiet, signup_server-quiet, and
authorsteve <steve>
Mon, 23 Dec 2002 14:38:51 +0000 (14:38 +0000)
committersteve <steve>
Mon, 23 Dec 2002 14:38:51 +0000 (14:38 +0000)
emailcancel messages.

fs_selfservice/freeside-selfservice-server

index e55ca49..264cbc5 100644 (file)
@@ -19,6 +19,10 @@ use Net::SSH qw(sshopen2);
 use FS::UID qw(adminsuidsetup forksuidsetup);
 use FS::ClientAPI;
 
+use FS::Conf;
+use FS::cust_bill;
+use FS::cust_pkg;
+
 $Debug = 2; # >= 2 will log packet contents, including potentially compromising
             # information
 
@@ -33,6 +37,13 @@ my $pid_file = "/var/run/freeside-selfservice-server.$user.pid";
 
 &init($user);
 
+my $conf = new FS::Conf;
+
+if ($conf->exists('selfservice_server-quiet')) {
+    $FS::cust_bill::quiet = 1;
+    $FS::cust_pkg::quiet = 1;
+}
+
 my $clientd = "/usr/local/sbin/freeside-selfservice-clientd"; #better name?
 
 my $warnkids=0;