diff --git a/html/priv_user.php b/html/priv_user.php index e7a41c0a9..2a227355f 100644 --- a/html/priv_user.php +++ b/html/priv_user.php @@ -112,14 +112,15 @@ if ( isset ($_POST['SAVE']) ){ } } else { - if ( isset ($DELETE) ) { + if ( isset ($_POST["DELETE"]) ) { $cn=DbConnect(); $Res=ExecSql($cn,"delete from priv_user where priv_jnt in ( select jnt_id from jnt_use_dos where use_id=".$uid.")"); $Res=ExecSql($cn,"delete from jnt_use_dos where use_id=".$uid); $Res=ExecSql($cn,"delete from ac_users where use_id=".$uid); - echo "

User $fname $lname ($login) is deleted

"; - html_page_stop(); + echo "

User ".$_POST['fname']." ".$_POST['lname']." (". + $_POST['login'].") is deleted

"; + require_once("user.inc.php"); return; } }