<?php require_once "conf/top.php"; //$user = new User($_SESSION['user_session']); include_once 'models/class.Doc.php'; if (!empty($_REQUEST['id'])) { $id = $_REQUEST['id']; $doc = new Doc(); $doc->doc_remove($id); header('Location: ' . $_SERVER['HTTP_REFERER']); }