Linux polon 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64
Apache/2.4.59 (Debian)
: 10.2.73.233 | : 13.59.54.188
Cant Read [ /etc/named.conf ]
5.6.40-64+0~20230107.71+debian10~1.gbp673146
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
baltic /
web /
modules /
views /
tests /
handlers /
[ HOME SHELL ]
Name
Size
Permission
Action
views_handler_area_text.test
1.75
KB
-rw-r--r--
views_handler_argument_null.te...
2.05
KB
-rw-r--r--
views_handler_argument_string....
3.46
KB
-rw-r--r--
views_handler_field.test
15.29
KB
-rw-r--r--
views_handler_field_boolean.te...
4.22
KB
-rw-r--r--
views_handler_field_counter.te...
1.94
KB
-rw-r--r--
views_handler_field_custom.tes...
1.12
KB
-rw-r--r--
views_handler_field_date.test
3.65
KB
-rw-r--r--
views_handler_field_file_exten...
2.04
KB
-rw-r--r--
views_handler_field_file_size....
1.89
KB
-rw-r--r--
views_handler_field_math.test
1.04
KB
-rw-r--r--
views_handler_field_url.test
1.43
KB
-rw-r--r--
views_handler_field_xss.test
1.27
KB
-rw-r--r--
views_handler_filter_combine.t...
2.3
KB
-rw-r--r--
views_handler_filter_date.test
8.21
KB
-rw-r--r--
views_handler_filter_equality....
4.16
KB
-rw-r--r--
views_handler_filter_in_operat...
4.69
KB
-rw-r--r--
views_handler_filter_numeric.t...
9.88
KB
-rw-r--r--
views_handler_filter_string.te...
21.97
KB
-rw-r--r--
views_handler_sort.test
3.27
KB
-rw-r--r--
views_handler_sort_date.test
5.84
KB
-rw-r--r--
views_handler_sort_random.test
2.56
KB
-rw-r--r--
views_handlers.test
1.77
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : views_handler_filter_in_operator.test
<?php /** * @file * Definition of ViewsHandlerFilterInOperator. */ /** * Tests the core views_handler_filter_in_operator handler. */ class ViewsHandlerFilterInOperator extends ViewsSqlTest { public static function getInfo() { return array( 'name' => 'Filter: in_operator', 'description' => 'Test the core views_handler_filter_in_operator handler.', 'group' => 'Views Handlers', ); } function viewsData() { $data = parent::viewsData(); $data['views_test']['age']['filter']['handler'] = 'views_handler_filter_in_operator'; return $data; } public function testFilterInOperatorSimple() { $view = $this->getBasicView(); // Add a in_operator ordering. $view->display['default']->handler->override_option('filters', array( 'age' => array( 'id' => 'age', 'field' => 'age', 'table' => 'views_test', 'value' => array(26, 30), 'operator' => 'in', ), )); $this->executeView($view); $expected_result = array( array( 'name' => 'Paul', 'age' => 26, ), array( 'name' => 'Meredith', 'age' => 30, ), ); $this->assertEqual(2, count($view->result)); $this->assertIdenticalResultset($view, $expected_result, array( 'views_test_name' => 'name', 'views_test_age' => 'age', )); $view->delete(); $view = $this->getBasicView(); // Add a in_operator ordering. $view->display['default']->handler->override_option('filters', array( 'age' => array( 'id' => 'age', 'field' => 'age', 'table' => 'views_test', 'value' => array(26, 30), 'operator' => 'not in', ), )); $this->executeView($view); $expected_result = array( array( 'name' => 'John', 'age' => 25, ), array( 'name' => 'George', 'age' => 27, ), array( 'name' => 'Ringo', 'age' => 28, ), ); $this->assertEqual(3, count($view->result)); $this->assertIdenticalResultset($view, $expected_result, array( 'views_test_name' => 'name', 'views_test_age' => 'age', )); } public function testFilterInOperatorGroupedExposedSimple() { $filters = $this->getGroupedExposedFilters(); $view = $this->getBasicPageView(); // Filter: Age, Operator: in, Value: 26, 30 $filters['age']['group_info']['default_group'] = 1; $view->set_display('page_1'); $view->display['page_1']->handler->override_option('filters', $filters); $this->executeView($view); $expected_result = array( array( 'name' => 'Paul', 'age' => 26, ), array( 'name' => 'Meredith', 'age' => 30, ), ); $this->assertEqual(2, count($view->result)); $this->assertIdenticalResultset($view, $expected_result, array( 'views_test_name' => 'name', 'views_test_age' => 'age', )); } public function testFilterNotInOperatorGroupedExposedSimple() { $filters = $this->getGroupedExposedFilters(); $view = $this->getBasicPageView(); // Filter: Age, Operator: in, Value: 26, 30 $filters['age']['group_info']['default_group'] = 2; $view->set_display('page_1'); $view->display['page_1']->handler->override_option('filters', $filters); $this->executeView($view); $expected_result = array( array( 'name' => 'John', 'age' => 25, ), array( 'name' => 'George', 'age' => 27, ), array( 'name' => 'Ringo', 'age' => 28, ), ); $this->assertEqual(3, count($view->result)); $this->assertIdenticalResultset($view, $expected_result, array( 'views_test_name' => 'name', 'views_test_age' => 'age', )); } protected function getGroupedExposedFilters() { $filters = array( 'age' => array( 'id' => 'age', 'table' => 'views_test', 'field' => 'age', 'relationship' => 'none', 'exposed' => TRUE, 'expose' => array( 'operator' => 'age_op', 'label' => 'age', 'identifier' => 'age', ), 'is_grouped' => TRUE, 'group_info' => array( 'label' => 'age', 'identifier' => 'age', 'default_group' => 'All', 'group_items' => array( 1 => array( 'title' => 'Age is one of 26, 30', 'operator' => 'in', 'value' => array(26, 30), ), 2 => array( 'title' => 'Age is not one of 26, 30', 'operator' => 'not in', 'value' => array(26, 30), ), ), ), ), ); return $filters; } }
Close