Your IP : 216.73.217.64
<?php
/* *************************************************
*
* Document Manager (C) 2002-2010
* Version 4 - dmanager MySQL
* Benjamin Sonntag <benjamin@sonntag.fr>
* Chantal Bernard-Putz <chantal@bernard-putz.net>
* Franck Denis
* This software is protected by copyright laws,
* please read the file COPYRIGHT
* This software is provided as is with no warranty.
*
************************************************* */
/* $Id: users_del.php 29 2009-11-26 07:02:26Z chantal $ */
$admin = 1;
require_once("common.php");
$fields = array (
"user" => array ("get", "integer", 0),
);
getFields($fields);
if ($user == $_SESSION["Sid_user"])
{
header ("Location: users_admin.php");
die();
}
$title = _l("Users managment");
$userInfo = $doc->getUser($user);
if ($doc->delUser($user))
$error = sprintf(_l("%s was deleted successfully"), $userInfo["user_name"]);
else
$error = $doc->errstr();
include("users_admin.php");
?>