From 240e0f3d900984bdfcf8b449129fce1a1e4efd25 Mon Sep 17 00:00:00 2001 From: katagia Date: Wed, 20 Aug 2003 19:16:03 +0000 Subject: [PATCH] *** empty log message *** --- lam/templates/account.php | 2 +- lam/templates/delete.php | 60 +++++++++++++++++++++++++++++++++++---- 2 files changed, 55 insertions(+), 7 deletions(-) diff --git a/lam/templates/account.php b/lam/templates/account.php index c4fc55e6..ae9a7602 100644 --- a/lam/templates/account.php +++ b/lam/templates/account.php @@ -286,7 +286,7 @@ switch ($_POST['select']) { // Select which part of page should be loaded and ch case 'finish': // Check if pdf-file should be created if ($_POST['outputpdf']) { - createpdf(array($_SESSION['account'])); + createUserPDF(array($_SESSION['account'])); $select_local = 'pdf'; } break; diff --git a/lam/templates/delete.php b/lam/templates/delete.php index cc6bff5d..784b0dc6 100644 --- a/lam/templates/delete.php +++ b/lam/templates/delete.php @@ -35,8 +35,21 @@ echo _('Delete Account'); echo ''."\n". ''."\n". ''."\n". - ''."\n". - ''."\n". + ''."\n"; + +if ($_POST['backmain']) + switch ( $_POST['type5'] ) { + case 'user' : + echo "\n"; + break; + case 'group' : + echo "\n"; + break; + case 'host' : + echo "\n"; + break; + } +echo ''."\n". ''."\n". '
'."\n". ''."\n". @@ -69,12 +82,13 @@ if ($_GET['type']) { ''; } -if ($_POST['delete_yes']) { +if ($_POST['delete_yes'] && !$_POST['backmain']) { $DN2 = explode(";", str_replace("\\", '',str_replace("\'", '',$_POST['DN']))); foreach ($DN2 as $dn) { + echo ''; switch ($_POST['type5']) { case 'user': $temp=explode(',', $dn); @@ -126,10 +140,44 @@ if ($_POST['delete_yes']) { else echo $error; echo ''."\n".''."\n"; + break; + case 'group': + echo ''. + ''."\n"; + break; + case 'host': + echo ''. + ''."\n"; + break; + } } -if ($_POST['delete_no']) echo _('Nothing was deleted.'); +if ($_POST['delete_no']) { + echo _('Nothing was deleted.'); -echo ''."\n"; + } + +if ($_POST['backmain']) + switch ( $_POST['type5'] ) { + case 'user' : + echo '\n"; + break; + case 'group' : + echo '\n"; + break; + case 'host' : + echo '\n"; + break; + } echo '
'. ''; + echo _('Commit'); echo '">
'; } + switch ($_POST['type5']) { + case 'user': + echo ''. + '
'; + echo _('Please press here if meta-refresh didn\'t work.'); + echo "
'; + echo _('Please press here if meta-refresh didn\'t work.'); + echo "
'; + echo _('Please press here if meta-refresh didn\'t work.'); + echo "
'."\n"; ?>