removed obsolete code
This commit is contained in:
parent
d3cacaaa5d
commit
1a3f0f5d8a
|
@ -3,7 +3,7 @@
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -63,13 +63,8 @@ if (!empty($_POST)) {
|
||||||
// show LDIF if requested
|
// show LDIF if requested
|
||||||
if (isset($_GET['showldif'])) {
|
if (isset($_GET['showldif'])) {
|
||||||
//download file
|
//download file
|
||||||
if(isset($HTTP_SERVER_VARS['HTTP_USER_AGENT']) and strpos($HTTP_SERVER_VARS['HTTP_USER_AGENT'],'MSIE')) {
|
header('Content-Type: text/plain');
|
||||||
Header('Content-Type: application/force-download');
|
header('Content-disposition: attachment; filename=lam.ldif');
|
||||||
}
|
|
||||||
else {
|
|
||||||
Header('Content-Type: text/plain');
|
|
||||||
}
|
|
||||||
Header('Content-disposition: attachment; filename=lam.ldif');
|
|
||||||
$accounts = unserialize($_SESSION['ldap']->decrypt($_SESSION['mass_accounts']));
|
$accounts = unserialize($_SESSION['ldap']->decrypt($_SESSION['mass_accounts']));
|
||||||
for ($i = 0; $i < sizeof($accounts); $i++) {
|
for ($i = 0; $i < sizeof($accounts); $i++) {
|
||||||
echo "DN: " . $accounts[$i]['dn'] . "\n";
|
echo "DN: " . $accounts[$i]['dn'] . "\n";
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
|
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
|
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
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -67,13 +67,8 @@ if (!empty($_POST)) {
|
||||||
// show CSV if requested
|
// show CSV if requested
|
||||||
if (isset($_GET['getCSV'])) {
|
if (isset($_GET['getCSV'])) {
|
||||||
//download file
|
//download file
|
||||||
if(isset($HTTP_SERVER_VARS['HTTP_USER_AGENT']) and strpos($HTTP_SERVER_VARS['HTTP_USER_AGENT'],'MSIE')) {
|
header('Content-Type: application/msexcel');
|
||||||
Header('Content-Type: application/force-download');
|
header('Content-disposition: attachment; filename=lam.csv');
|
||||||
}
|
|
||||||
else {
|
|
||||||
Header('Content-Type: application/msexcel');
|
|
||||||
}
|
|
||||||
Header('Content-disposition: attachment; filename=lam.csv');
|
|
||||||
echo $_SESSION['mass_csv'];
|
echo $_SESSION['mass_csv'];
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue