Code

Updated sudo options
[gosa.git] / gosa-core / html / getfax.php
index 98e89c7c7e01893d9c6d7b590f11e35546393f0a..6a066b067a9cbd61dd0e18593d39b3b1ce6a9c1f 100644 (file)
@@ -1,28 +1,31 @@
 <?php
 /*
-   This code is part of GOsa (https://gosa.gonicus.de)
-   Copyright (C) 2003  Cajus Pollmeier
-
-   This program is free software; you can redistribute it and/or modify
-   it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 2 of the License, or
-   (at your option) any later version.
-
-   This program is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-   GNU General Public License for more details.
-
-   You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ * This code is part of GOsa (http://www.gosa-project.org)
+ * Copyright (C) 2003-2008 GONICUS GmbH
+ *
+ * ID: $$Id$$
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
 /* Basic setup, remove eventually registered sessions */
 @require_once ("../include/php_setup.inc");
 @require_once ("functions.inc");
 error_reporting (0);
-session_start ();
+session::start();
+session::set('errorsAlreadyPosted',array());
 
 /* Logged in? Simple security check */
 if (!session::is_set('ui')){
@@ -101,17 +104,17 @@ if (!isset($_GET['download'])){
 
     /* Loading image */
     if(!$handle  =  imagick_blob2image($data)) {
-      new log("view","faxreport/faxreport","",array(),"Can't load fax image") ;
+      new log("view","faxreport/faxreport","",array(), "Cannot load fax image") ;
     }
 
     /* Converting image to PNG */
     if(!imagick_convert($handle,"PNG")) {
-      new log("view","faxreport/faxreport","",array(),"Can't convert fax image to png") ;
+      new log("view","faxreport/faxreport","",array(),"Cannot convert fax image to png") ;
     }
 
     /* Resizing image to 420x594 and blur */
     if(!imagick_resize($handle,420,594,IMAGICK_FILTER_GAUSSIAN,1)){
-      new log("view","faxreport/faxreport","",array(),"Can't resize fax image") ;
+      new log("view","faxreport/faxreport","",array(),"Cannot resize fax image") ;
     }
 
     /* Creating binary Code for the Image */