Example #1
0
function delete() {	
	if (!isset($_SESSION['admin'])) {
		echo "Not admin";		
		//header("Location: /index.html");		
		exit();
	}
	$id = intval($_REQUEST['id']);
	Commercial::delete($id);
	header("Location: ".$_SERVER['HTTP_REFERER']);		
}