data = stripslashes_deep($_POST['options']);
else $this->data = $data;
$this->action = $_REQUEST['act'];
}
/**
* Return true is there in an asked action is no action name is specified or
* true is the requested action matches the passed action.
* Dies if it is not a safe call.
*/
function is_action($action = null) {
if ($action == null) return $this->action != null;
if ($this->action == null) return false;
if ($this->action != $action) return false;
if (check_admin_referer()) return true;
die('Invalid call');
}
/**
* Show the errors and messages.
*/
function show() {
if (!empty($this->errors)) {
echo '