pro-rating w/ web interface, tested (closes: Bug#313).
[freeside.git] / htetc / handler.pl
index 6ff9d43..37f2d37 100644 (file)
@@ -61,15 +61,45 @@ sub handler
       use Date::Parse;
       use Tie::IxHash;
       use HTML::Entities;
-      use FS::UID qw(cgisuidsetup);
-      use FS::Record qw(qsearch qsearchs fields);
-      use FS::part_svc;
-      use FS::part_pkg;
-      use FS::pkg_svc;
+      use IO::Handle;
+      use IO::File;
+      use String::Approx qw(amatch);
+      use FS::UID qw(cgisuidsetup dbh getotaker datasrc);
+      use FS::Record qw(qsearch qsearchs fields dbdef);
+      use FS::Conf;
+      use FS::CGI qw(header menubar popurl table itable ntable idiot eidiot
+                     small_custview myexit);
+
+      use FS::agent;
+      use FS::agent_type;
+      use FS::domain_record;
+      use FS::cust_bill;
+      use FS::cust_bill_pay;
+      use FS::cust_credit;
+      use FS::cust_credit_bill;
+      use FS::cust_main;
+      use FS::cust_main_county;
+      use FS::cust_pay;
       use FS::cust_pkg;
+      use FS::cust_refund;
       use FS::cust_svc;
+      use FS::nas;
       use FS::part_bill_event;
-      use FS::CGI qw(header menubar popurl table itable ntable);
+      use FS::part_pkg;
+      use FS::part_referral;
+      use FS::part_svc;
+      use FS::pkg_svc;
+      use FS::port;
+      use FS::queue;
+      use FS::raddb;
+      use FS::session;
+      use FS::svc_acct;
+      use FS::svc_acct_pop qw(popselector);
+      use FS::svc_acct_sm;
+      use FS::svc_domain;
+      use FS::svc_forward;
+      use FS::svc_www;
+      use FS::type_pkgs;
 
       $cgi = new CGI;
       &cgisuidsetup($cgi);
@@ -79,7 +109,10 @@ sub handler
     $r->content_type('text/html');
     #eorar
 
-    # @FS::CGI::headers or some other way to set no-cache headers!!!
+    my $headers = $r->headers_out;
+    $headers->{'Pragma'} = $headers->{'Cache-control'} = 'no-cache';
+    #$r->no_cache(1);
+    $headers->{'Expires'} = '0';
     
     my $status = $ah->handle_request($r);