removed obsolete code

This commit is contained in:
Roland Gruber 2016-07-14 21:00:47 +02:00
parent d3cacaaa5d
commit 1a3f0f5d8a
2 changed files with 16 additions and 26 deletions

View File

@ -3,7 +3,7 @@
$Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2004 - 2015 Roland Gruber
Copyright (C) 2004 - 2016 Roland Gruber
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
@ -63,13 +63,8 @@ if (!empty($_POST)) {
// show LDIF if requested
if (isset($_GET['showldif'])) {
//download file
if(isset($HTTP_SERVER_VARS['HTTP_USER_AGENT']) and strpos($HTTP_SERVER_VARS['HTTP_USER_AGENT'],'MSIE')) {
Header('Content-Type: application/force-download');
}
else {
Header('Content-Type: text/plain');
}
Header('Content-disposition: attachment; filename=lam.ldif');
header('Content-Type: text/plain');
header('Content-disposition: attachment; filename=lam.ldif');
$accounts = unserialize($_SESSION['ldap']->decrypt($_SESSION['mass_accounts']));
for ($i = 0; $i < sizeof($accounts); $i++) {
echo "DN: " . $accounts[$i]['dn'] . "\n";

View File

@ -3,7 +3,7 @@
$Id$
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2004 - 2015 Roland Gruber
Copyright (C) 2004 - 2016 Roland Gruber
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
@ -67,13 +67,8 @@ if (!empty($_POST)) {
// show CSV if requested
if (isset($_GET['getCSV'])) {
//download file
if(isset($HTTP_SERVER_VARS['HTTP_USER_AGENT']) and strpos($HTTP_SERVER_VARS['HTTP_USER_AGENT'],'MSIE')) {
Header('Content-Type: application/force-download');
}
else {
Header('Content-Type: application/msexcel');
}
Header('Content-disposition: attachment; filename=lam.csv');
header('Content-Type: application/msexcel');
header('Content-disposition: attachment; filename=lam.csv');
echo $_SESSION['mass_csv'];
exit;
}