mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
POST/GET
* unify accessing &_GET and &_POST data
This commit is contained in:
@@ -16,6 +16,9 @@ class ItemsPage extends GenericPage
|
||||
protected $tabId = 0;
|
||||
protected $mode = CACHE_TYPE_PAGE;
|
||||
protected $js = ['filters.js', 'swfobject.js'];
|
||||
|
||||
protected $_get = ['filter' => ['filter' => FILTER_UNSAFE_RAW]];
|
||||
|
||||
protected $validCats = array( // if > 0 class => subclass
|
||||
2 => [15, 13, 0, 4, 7, 6, 10, 1, 5, 8, 2, 18, 3, 16, 19, 20, 14],
|
||||
4 => array(
|
||||
@@ -109,7 +112,7 @@ class ItemsPage extends GenericPage
|
||||
$conditions[] = $_;
|
||||
|
||||
$this->filter = $this->filterObj->getForm();
|
||||
$this->filter['query'] = isset($_GET['filter']) ? $_GET['filter'] : null;
|
||||
$this->filter['query'] = $this->_get['filter'];
|
||||
$this->filter['initData'] = ['init' => 'items'];
|
||||
|
||||
if ($x = $this->filterObj->getSetCriteria())
|
||||
|
||||
Reference in New Issue
Block a user