From 082cb51645a4706ed18edee9d0ee6c06e929a724 Mon Sep 17 00:00:00 2001 From: Victor LABORIE Date: Mon, 11 Dec 2017 13:28:17 +0100 Subject: [PATCH] Delete show_my_details function --- htdocs/admin.php | 35 +++++------------------------------ 1 file changed, 5 insertions(+), 30 deletions(-) diff --git a/htdocs/admin.php b/htdocs/admin.php index 0e173eb..7c4df28 100644 --- a/htdocs/admin.php +++ b/htdocs/admin.php @@ -10,32 +10,6 @@ * @version 1.0 */ -/* - * Functions - */ - -/** - * Show account/alias details - * @param string $compte - * @param string $type - * @return NULL - */ -function show_my_details($name,$type) { - - print '' .$name. ''; - - if ( $type == 'compte' ) { - print '' .getquota($name,'user'). ''; - } - - print ''; - print ' - '; - print ''; -} - - /** * Path */ @@ -165,11 +139,11 @@ if (isset($_SESSION['login'])) { ' .$compte. ''; + print '' .getquota($compte,'user'). ''; + print ''; } - print ""; - } elseif ( (isset($_GET['viewonly'])) && ($_GET['viewonly']==2) ) { ?> @@ -189,7 +163,8 @@ if (isset($_SESSION['login'])) { ' .$alias. ''; + print ''; } } ?>