Code

Prepared for multiple asterisk servers
[gosa.git] / plugins / gofax / faxreports / main.inc
1 <?php
3 if (!$remove_lock){
4         /* Create faxreport object on demand */
5         if (!isset($_SESSION['faxreport']) || (isset($_GET['reset']) && $_GET['reset'] == 1)){
6                 $_SESSION['faxreport']= new faxreport ($config, $ui);
7         }
8         $faxreport= $_SESSION['faxreport'];
10         /* Execute formular */
11         $faxreport->save_object();
12         $display= $faxreport->execute ();
13         $display.= "<input type=\"hidden\" name=\"ignore\">\n";
14         $display= print_header(get_template_path('images/reports.png'), _("FAX reports")).$display;
16         /* Store changes  in session */
17         $_SESSION['faxreport']= $faxreport;
18 }
19 ?>