private function getInput() { // Fetch input values; // Case: administration page; if (array_key_exists('page', $_REQUEST) && $_REQUEST['page'] != '') { $page = $_REQUEST['page']; if ($page == 'admin') { $this->admin_page = true; } } if ($this->admin_page) { if (RealEstateAgency_Util::isDefinedNonEmptyRequest('login')) { // login in progress; $this->login_in_progress = true; if (RealEstateAgency_Util::isDefinedNonEmptyRequest('nick')) { $this->nick = $_POST['nick']; } if (RealEstateAgency_Util::isDefinedNonEmptyRequest('key')) { $this->keyword = $_POST['key']; } } } if (RealEstateAgency_Util::isButton('disconnect') || tools_get_input('disconnect')) { $this->disconnect = true; } if ($this->login_in_progress) { if (array_key_exists('cookie_enabled', $_COOKIE) && $_COOKIE['cookie_enabled'] != '') { $this->cookie_enabled = true; } else { $this->cookie_enabled = false; } } }
private function getInput() { // Fetch input values; if (RealEstateAgency_Util::isDefinedNonEmptyRequest('object_name')) { // TODO: please verify input value; $object_name = $_REQUEST['object_name']; $object_name = trim($object_name); $this->object_name = $object_name; } if (RealEstateAgency_Util::isDefinedNonEmptyRequest('object_id')) { // TODO: please verify input value; $this->object_id = $_REQUEST['object_id']; } if (RealEstateAgency_Util::isDefinedNonEmptyRequest('object_action')) { // TODO: please verify input value; $this->object_action = $_REQUEST['object_action']; } if (RealEstateAgency_Util::isButton('do_select')) { $this->button_name = 'select'; } }
function tools_is_button($name) { return RealEstateAgency_Util::isButton($name); }