Code

msgPool
[gosa.git] / gosa-core / html / getxls.php
index c0d1c0900962d6e2409a5357c671dccceee5c080..e9333aa60da4b59cc26222dc0d1f14dd834ab8ad 100644 (file)
@@ -1,28 +1,30 @@
 <?php
 /*
-   This code is part of GOsa (https://gosa.gonicus.de)
-   Copyright (C) 2003  Cajus Pollmeier
-   Copyright (C) 2005  Guillaume Delecourt
-   Copyright (C) 2005  Vincent Seynhaeve
-   Copyright (C) 2005  Benoit Mortier
-
-   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  Cajus Pollmeier
+ * Copyright (C) 2005  Guillaume Delecourt
+ * Copyright (C) 2005  Vincent Seynhaeve
+ * Copyright (C) 2005  Benoit Mortier
+ *
+ * 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
  */
 
-require_once "../include/php_writeexcel/class.writeexcel_workbook.inc.php";
-require_once "../include/php_writeexcel/class.writeexcel_worksheet.inc.php";
+require_once "../include/utils/excel/class.writeexcel_workbook.inc.php";
+require_once "../include/utils/excel/class.writeexcel_worksheet.inc.php";
 
 function dump_ldap ($mode= 0)
 {
@@ -467,6 +469,7 @@ function dump_ldap ($mode= 0)
 @require_once ("../include/php_setup.inc");
 @require_once ("functions.inc");
 session::start();
+session::set('errorsAlreadyPosted',array());
 
 /* Logged in? Simple security check */
 if (!session::is_set('ui')){
@@ -487,7 +490,7 @@ if(isset($_GET['n'])){
 }
 $acl = $ui->get_permissions($dn,"ldapmanager/xlsexport");
 if(!preg_match("/r/",$acl)){
-  echo "insufficient permissions";
+       msg_dialog::display(_("Permission denied!"),_("You are not allowed to perform this action."),FATAL_ERROR_DIALOG);
   exit();
 }