Ответов: 16 Просмотров: 717
|
такого будет достаточно?
PHP:
скопировать код в буфер обмена
class getPostProtect { public function __construct() { if($_POST) $this->postArray(); if($_GET) $this->getArray(); } private function getArray() { foreach($_GET as $key => $value) { $this->GET[$key] = $value; } } private function postArray() { foreach($_POST as $key => $value) { $this->POST[$key] = $value; } } public function getPostObj() { return $this->POST; } public function getGetObj() { return $this->GET; } }
|