summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: be6a0e4)
raw | patch | inline | side by side (parent: be6a0e4)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 31 Oct 2006 07:44:47 +0000 (07:44 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 31 Oct 2006 07:44:47 +0000 (07:44 +0000) |
Added acls
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4970 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4970 594d385d-05f5-0310-b6e9-bd551577e9d8
html/getxls.php | patch | blob | history | |
include/php_writeexcel/class.writeexcel_workbook.inc.php | patch | blob | history |
diff --git a/html/getxls.php b/html/getxls.php
index ef1ca5b6ce208e4a9bf0504f7147766010a69ce3..1b88b8ce0c1e77ca70a570e80203dcbdc18a7954 100644 (file)
--- a/html/getxls.php
+++ b/html/getxls.php
$dn=$d.$n;
$date=date('dS \of F Y ');
$fname = tempnam("/tmp", "demo.xls");
- $workbook=& new writeexcel_workbook($fname);
+ $workbook= new writeexcel_workbook($fname);
$title_title=& $workbook->addformat(array(
bold => 1,
$name_section=_("Full");
$date=date('dS \of F Y ');
$fname = tempnam("/tmp", "demo.xls");
- $workbook =& new writeexcel_workbook($fname);
- $worksheet =& $workbook->addworksheet(_("Users"));
- $worksheet2 =& $workbook->addworksheet(_("Groups"));
- $worksheet3 =& $workbook->addworksheet(_("Servers"));
- $worksheet4 =& $workbook->addworksheet(_("Computers"));
- $worksheet5 =& $workbook->addworksheet(_("Adressbook"));
+ $workbook = new writeexcel_workbook($fname);
+ $worksheet = $workbook->addworksheet(_("Users"));
+ $worksheet2 = $workbook->addworksheet(_("Groups"));
+ $worksheet3 = $workbook->addworksheet(_("Servers"));
+ $worksheet4 =$workbook->addworksheet(_("Computers"));
+ $worksheet5 = $workbook->addworksheet(_("Adressbook"));
$worksheet->set_column('A:B', 51);
$worksheet2->set_column('A:B', 51);
/* Check ACL's */
-$dn = base64_decode($_GET['n']);
+$dn ="";
+if(isset($_GET['n'])){
+ $dn = base64_decode($_GET['n']);
+}elseif(isset($_GET['dn'])){
+ $dn = base64_decode($_GET['dn']);
+}
$acl = $ui->get_permissions($dn,"ldapmanager/xlsexport");
if(!preg_match("/r/",$acl)){
echo "insufficient permissions";
diff --git a/include/php_writeexcel/class.writeexcel_workbook.inc.php b/include/php_writeexcel/class.writeexcel_workbook.inc.php
index 85a398d23d0cf441b8f121db03dc2616daf125b8..c175c43dc17896022fd5ac94e501a4fe7012b678 100644 (file)
}
}
- $worksheet =& new writeexcel_worksheet($name, $index, $this->_activesheet,
+ $worksheet = new writeexcel_worksheet($name, $index, $this->_activesheet,
$this->_firstsheet,
$this->_url_format, $this->_parser,
$this->_tempdir);
#
function &addformat($para=false) {
if($para===false) {
- $format =& new writeexcel_format($this->_xf_index);
+ $format = new writeexcel_format($this->_xf_index);
} else {
- $format =& new writeexcel_format($this->_xf_index, $para);
+ $format = new writeexcel_format($this->_xf_index, $para);
}
$this->_xf_index += 1;