function modclassement($id, $parent, $type) { if ($parent == 0) { $parent = 0; } $dos = new Dossier(); $dos->charger($id); $dos->changer_classement($id, $type); redirige("listdos.php?parent={$parent}"); }