*/
include("session.php");
require("test_param.php");
if(file_exists($_SESSION['config']['lang'].'.php'))
{
include($_SESSION['config']['lang'].'.php');
}
else
{
$_SESSION['error'] = "Language file missing...
";
}
require("class_functions.php");
require_once("class_db.php");
require("class_folders.php");
$func = new functions();
$folders = new folders();
//The Fileplan
if(isset($_REQUEST['id']))
{
$fileplanId = addslashes($func->wash($_REQUEST['id'], "no", _FILEPLAN));
}
else
{
$fileplanId = "";
}
//Verifier si le plan appartient a l'utilisateur courant (sauf administrateur)
if ($folders->fileplanOwner($fileplanId, $_SESSION['user']['UserId']) === false)
{
$_SESSION['error'] = _UNKNOWN_PARAM;
echo '';
exit;
}
else
{
$folders->delfileplan($fileplanId);
}
?>