Commit f23273c9 authored by jlopez's avatar jlopez
Browse files

Fix #12

parent 4b24cbb0
......@@ -84,5 +84,5 @@ if($action == "create") {
$db->delete($distrib);
}
header("Location: ../gestion.php#distribution");
header("Location: ../manage.php#distribution");
......@@ -26,14 +26,14 @@ $passcode = $db->verifyPass($login, $pwd);
if($passcode == 1) {
$_SESSION['username'] = $login;
$_SESSION['usercode'] = 1;
$_SESSION['gestion'] = 1;
header("Location: ../gestion.php");
$_SESSION['manage'] = 1;
header("Location: ../manage.php");
} elseif ($passcode == 2) {
$_SESSION['username'] = "guest";
$_SESSION['usercode'] = 2;
$_SESSION['gestion'] = 1;
header("Location: ../gestion.php");
$_SESSION['manage'] = 1;
header("Location: ../manage.php");
} else {
$ldap = new LDAPquery();
......
......@@ -62,4 +62,4 @@ if($action == "create") {
$db->delete($manager);
}
header("Location: ../gestion.php#manager");
\ No newline at end of file
header("Location: ../manage.php#manager");
\ No newline at end of file
......@@ -89,5 +89,5 @@ if($action == "create") {
$db->delete($section);
}
header("Location: ../gestion.php#section");
header("Location: ../manage.php#section");
......@@ -113,9 +113,9 @@ function printPanel($name) {
{
echo ' <a class="nav-item nav-link active" href="./index.php"> Home </a>';
if(isset($_SESSION['gestion']) && !empty($_SESSION['gestion']))
if(isset($_SESSION['manage']) && !empty($_SESSION['manage']))
{
echo ' <a class="nav-item nav-link" href="./gestion.php"> Gestion </a>';
echo ' <a class="nav-item nav-link" href="./manage.php"> Manage </a>';
}
}
?>
......@@ -462,13 +462,6 @@ function printPanel($name) {
gestionPackageSelected();
}
</script>
</body>
</html>
......@@ -8,7 +8,7 @@
session_start ();
if(!isset($_SESSION['gestion'])) {
if(!isset($_SESSION['manage'])) {
header("Location: ./login.php");
}
......@@ -60,7 +60,7 @@ foreach ($sections_parent as $section) {
if(isset($_SESSION['username']) && !empty($_SESSION['username']))
{
echo ' <a class="nav-item nav-link" href="./index.php"> Home </a>';
echo ' <a class="nav-item nav-link active" href="./gestion.php"> Gestion </a>';
echo ' <a class="nav-item nav-link active" href="./manage.php"> Manage </a>';
}
?>
......@@ -93,7 +93,7 @@ foreach ($sections_parent as $section) {
<div class="card border border-dark">
<div class="card-header bg-dark text-light">
Gestion section :
Manage section :
</div>
<div class="card-body">
<table id="Table_Section" class="table table-striped table-bordered">
......@@ -240,7 +240,7 @@ foreach ($sections_parent as $section) {
<div class="card border border-dark">
<div class="card-header bg-dark text-light" id="distribution">
Gestion distribution :
Manage distribution :
</div>
<div class="card-body">
<table id="Table_Distrib" class="table table-striped table-bordered">
......@@ -354,7 +354,7 @@ foreach ($sections_parent as $section) {
<div class="card border border-dark">
<div class="card-header bg-dark text-light" id="manager">
Gestion managers :
Manage distribution packaging tools :
</div>
<div class="card-body">
<table id="Table_Distrib" class="table table-striped table-bordered">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment