Modif register_global
This commit is contained in:
parent
271803bf93
commit
a5f1c16c3b
@ -34,6 +34,10 @@ if ($user->societe_id > 0)
|
|||||||
llxHeader();
|
llxHeader();
|
||||||
|
|
||||||
|
|
||||||
|
$page = $_GET["page"];
|
||||||
|
$sortfield = $_GET["sortfield"];
|
||||||
|
$sortorder = $_GET["sortorder"];
|
||||||
|
|
||||||
if ($sortorder == "")
|
if ($sortorder == "")
|
||||||
{
|
{
|
||||||
$sortorder="ASC";
|
$sortorder="ASC";
|
||||||
|
|||||||
@ -43,8 +43,8 @@ if ($_POST["action"] == 'confirm_delete' && $_POST["confirm"] == "yes")
|
|||||||
{
|
{
|
||||||
if ($id <> $user->id)
|
if ($id <> $user->id)
|
||||||
{
|
{
|
||||||
$edituser = new User($db, $id);
|
$edituser = new User($db, $_GET["id"]);
|
||||||
$edituser->fetch($id);
|
$edituser->fetch($_GET["id"]);
|
||||||
$edituser->delete();
|
$edituser->delete();
|
||||||
Header("Location: index.php");
|
Header("Location: index.php");
|
||||||
}
|
}
|
||||||
@ -63,10 +63,14 @@ if ($_POST["action"] == 'add' && $user->admin)
|
|||||||
$edituser->webcal_login = $_POST["webcal_login"];
|
$edituser->webcal_login = $_POST["webcal_login"];
|
||||||
|
|
||||||
$id = $edituser->create();
|
$id = $edituser->create();
|
||||||
|
|
||||||
if (isset($_POST['password']) && $_POST['password']!='' )
|
if (isset($_POST['password']) && $_POST['password']!='' )
|
||||||
{
|
{
|
||||||
$edituser->password($_POST['password'],$conf->password_encrypted);
|
$edituser->password($_POST['password'],$conf->password_encrypted);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Header("Location: fiche.php?id=$id");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($_POST["action"] == 'update' && $user->admin)
|
if ($_POST["action"] == 'update' && $user->admin)
|
||||||
@ -178,7 +182,7 @@ else
|
|||||||
print '<br>';
|
print '<br>';
|
||||||
|
|
||||||
$html = new Form($db);
|
$html = new Form($db);
|
||||||
$html->form_confirm("$PHP_SELF?id=$fuser->id","Désactiver cet utilisateur","Etes-vous sûr de vouloir désactiver cet utilisateur ?","confirm_delete");
|
$html->form_confirm("fiche.php?id=$fuser->id","Désactiver cet utilisateur","Etes-vous sûr de vouloir désactiver cet utilisateur ?","confirm_delete");
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($_GET["action"] == 'perms')
|
if ($_GET["action"] == 'perms')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user