}
        echo geterror(25);
        header("Location:index.php?a=30&b=1&idsession=" . $idsession);
    } else {
        echo geterror(21);
        header("Location:index.php?a=30&b=1&idsession=" . $idsession);
    }
}
if ($b == 3) {
    if (FALSE != delUserSession($idsession, $iduser)) {
        echo geterror(27);
        header("Location:index.php?a=30&b=1&idsession=" . $idsession);
    }
}
if ($b == 4) {
    if (FALSE != ModifyUserSession($idsession, $iduser, 0)) {
        echo geterror(26);
        header("Location:index.php?a=30&b=1&idsession=" . $idsession);
    }
}
?>
 
    
    
<!-- DETAIL DE LA SESSION-->
<div class="row"><section class="col-lg-7 connectedSortable">
 
<div class="box box-success">
	<div class="box-header"><h3 class="box-title"><?php 
echo stripslashes($titresession["session_titre"]);
?>
Beispiel #2
0
                     if ($split[$i] != "") {
                         $sessionListIns[] = $split[$i];
                     }
                 }
             }
         }
         $resUpdate = UpdateUserList($_POST['hiddenId'], $_POST['userName'], $_POST['password'], $_POST['userType'], $credentialsNX);
         if ($resUpdate == -1) {
             $messageType = "ErrorModifyNoAdmin";
             $error = true;
         } elseif ($resUpdate == 0) {
             $messageType = "ErrorModify";
             $error = true;
         }
         if (!$error) {
             ModifyUserSession($_POST["hiddenId"], $sessionListIns);
             @header('Location: UserList.php');
             $messageType = "ModifiedUser";
         }
     } else {
         $error = true;
         $messageType = "ErrorConfirmPassword";
     }
 } else {
     $error = true;
     if (trim($_POST["userName"]) == "") {
         $messageType = "ErrorEmptyUsername";
     } else {
         $messageType = "ErrorEmptyPassword";
     }
 }