Location: PHPKode > projects > OpenVet > openvet/action/deleteillness.php
<?php

	$ch_illuid = $_POST["illnessuid"];
	$ch_confirm = $_POST["confirm"];

	if ($user->getRechte() >= 2)
	{

		$thisillness = new Illness();

	} else {
		
		header("Location: index.php?tab=medical&page=notauthorized");
		exit ();

	}

	if ($ch_confirm == "OK")
	{
		if (!$thisillness->deletefromdb ($ch_illuid))
			$message = $thisillness->getError();
		else
			$message = _("The illness was deleted.");
	} else
			$message = _("You did not type 'OK' to confirm.");

?>
Return current item: OpenVet