summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7617410)
raw | patch | inline | side by side (parent: 7617410)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 31 Oct 2006 07:31:52 +0000 (07:31 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 31 Oct 2006 07:31:52 +0000 (07:31 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4969 594d385d-05f5-0310-b6e9-bd551577e9d8
html/getxls.php | patch | blob | history |
diff --git a/html/getxls.php b/html/getxls.php
index ef5acfb9a36921b171fe1130fbfad6397e5101c7..ef1ca5b6ce208e4a9bf0504f7147766010a69ce3 100644 (file)
--- a/html/getxls.php
+++ b/html/getxls.php
{
global $config;
$ldap= $config->get_ldap_link();
- error_reporting (E_ALL & ~E_NOTICE);
$display = "";
if($mode == 2){ // Single Entry Export !
/* Basic setup, remove eventually registered sessions */
@require_once ("../include/php_setup.inc");
@require_once ("functions.inc");
-error_reporting (E_ALL);
session_start ();
/* Logged in? Simple security check */
header ("Location: index.php");
exit;
}
-$ui= $_SESSION["ui"];
-$config= $_SESSION['config'];
+$ui = $_SESSION["ui"];
+$config = $_SESSION['config'];
+
+
+/* Check ACL's */
+$dn = base64_decode($_GET['n']);
+$acl = $ui->get_permissions($dn,"ldapmanager/xlsexport");
+if(!preg_match("/r/",$acl)){
+ echo "insufficient permissions";
+ exit();
+}
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Content-type: text/plain");
-/* Check ACL's */
-$acl= get_permissions ($config->current['BASE'], $ui->subtreeACL);
-$acl= get_module_permission($acl, "all", $config->current['BASE']);
-if (chkacl($acl, "all") != ""){
- header ("Location: index.php");
- exit;
-}
-
switch ($_GET['ivbb']){
case 2: dump_ldap (2);
break;