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 | : 52.15.70.0
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 /
simpletest /
tests /
upgrade /
[ HOME SHELL ]
Name
Size
Permission
Action
drupal-6.bare.database.php
229.95
KB
-rw-r--r--
drupal-6.comments.database.php
747
B
-rw-r--r--
drupal-6.duplicate-permission....
175
B
-rw-r--r--
drupal-6.filled.database.php
563.05
KB
-rw-r--r--
drupal-6.forum.database.php
4.65
KB
-rw-r--r--
drupal-6.locale.database.php
5.33
KB
-rw-r--r--
drupal-6.menu.database.php
3.71
KB
-rw-r--r--
drupal-6.node_type_broken.data...
651
B
-rw-r--r--
drupal-6.translatable.database...
2.22
KB
-rw-r--r--
drupal-6.trigger.database.php
1.6
KB
-rw-r--r--
drupal-6.upload.database.php
9.43
KB
-rw-r--r--
drupal-6.user-no-password-toke...
270
B
-rw-r--r--
drupal-6.user-password-token.d...
1.09
KB
-rw-r--r--
drupal-7.aggregator.database.p...
20.53
KB
-rw-r--r--
drupal-7.bare.minimal.database...
38.91
KB
-rw-r--r--
drupal-7.bare.standard_all.dat...
75.61
KB
-rw-r--r--
drupal-7.field.database.php
480
B
-rw-r--r--
drupal-7.filled.minimal.databa...
40.83
KB
-rw-r--r--
drupal-7.filled.standard_all.d...
95.32
KB
-rw-r--r--
drupal-7.trigger.database.php
509
B
-rw-r--r--
update.aggregator.test
1.46
KB
-rw-r--r--
update.field.test
1.68
KB
-rw-r--r--
update.trigger.test
1.05
KB
-rw-r--r--
update.user.test
928
B
-rw-r--r--
upgrade.comment.test
877
B
-rw-r--r--
upgrade.filter.test
1.85
KB
-rw-r--r--
upgrade.forum.test
2.28
KB
-rw-r--r--
upgrade.locale.test
4.3
KB
-rw-r--r--
upgrade.menu.test
3.68
KB
-rw-r--r--
upgrade.node.test
5.34
KB
-rw-r--r--
upgrade.poll.test
2.05
KB
-rw-r--r--
upgrade.taxonomy.test
8.93
KB
-rw-r--r--
upgrade.test
24.55
KB
-rw-r--r--
upgrade.translatable.test
1.96
KB
-rw-r--r--
upgrade.trigger.test
1.18
KB
-rw-r--r--
upgrade.upload.test
3.89
KB
-rw-r--r--
upgrade.user.test
3.52
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : upgrade.locale.test
<?php /** * Upgrade test for locale.module. */ class LocaleUpgradePathTestCase extends UpgradePathTestCase { public static function getInfo() { return array( 'name' => 'Locale upgrade path', 'description' => 'Upgrade path tests for the Locale module.', 'group' => 'Upgrade path', ); } public function setUp() { // Path to the database dump files. $this->databaseDumpFiles = array( drupal_get_path('module', 'simpletest') . '/tests/upgrade/drupal-6.filled.database.php', drupal_get_path('module', 'simpletest') . '/tests/upgrade/drupal-6.locale.database.php', ); parent::setUp(); $this->uninstallModulesExcept(array('locale', 'comment')); } /** * Test a successful upgrade (no negotiation). */ public function testLocaleUpgrade() { $this->assertTrue($this->performUpgrade(), 'The upgrade was completed successfully.'); // The home page should be in French. $this->assertPageInLanguage('', 'fr'); // No prefixed page should exist. $this->drupalGet('en'); $this->assertResponse(404); $this->drupalGet('fr'); $this->assertResponse(404); } /** * Test an upgrade with path-based negotiation. */ public function testLocaleUpgradePathDefault() { // LANGUAGE_NEGOTIATION_PATH_DEFAULT. $this->variable_set('language_negotiation', 1); $this->assertTrue($this->performUpgrade(), 'The upgrade was completed successfully.'); // The home page should be in French. $this->assertPageInLanguage('', 'fr'); // The language switcher block should be displayed. $this->assertRaw('block-locale-language', 'The language switcher block is displayed.'); // The French prefix should not be active because French is the default language. $this->drupalGet('fr'); $this->assertResponse(404); // The English prefix should be active. $this->assertPageInLanguage('en', 'en'); } /** * Test an upgrade with path-based (with fallback) negotiation. */ public function testLocaleUpgradePathFallback() { // LANGUAGE_NEGOTIATION_PATH. $this->variable_set('language_negotiation', 2); // Set the language of the admin user to English. db_update('users') ->fields(array('language' => 'en')) ->condition('uid', 1) ->execute(); $this->assertTrue($this->performUpgrade(), 'The upgrade was completed successfully.'); // Both prefixes should be active. $this->assertPageInLanguage('fr', 'fr'); $this->assertPageInLanguage('en', 'en'); // The home page should be in the admin user language. $this->assertPageInLanguage('', 'en'); // The language switcher block should be displayed. $this->assertRaw('block-locale-language', 'The language switcher block is displayed.'); } /** * Test an upgrade with domain-based negotiation. */ public function testLocaleUpgradeDomain() { // LANGUAGE_NEGOTIATION_DOMAIN. $this->variable_set('language_negotiation', 3); $this->assertTrue($this->performUpgrade(), 'The upgrade was completed successfully.'); // The home page should be in French. $this->assertPageInLanguage('', 'fr'); // The language switcher block should be displayed. $this->assertRaw('block-locale-language', 'The language switcher block is displayed.'); // The language switcher block should point to http://en.example.com. $language_links = $this->xpath('//ul[contains(@class, :class)]/li/a', array(':class' => 'language-switcher-locale-url')); $found_english_link = FALSE; foreach ($language_links as $link) { if ((string) $link['href'] == 'http://en.example.com/') { $found_english_link = TRUE; } } $this->assertTrue($found_english_link, 'The English link points to the correct domain.'); // Both prefixes should be inactive. $this->drupalGet('en'); $this->assertResponse(404); $this->drupalGet('fr'); $this->assertResponse(404); } /** * Asserts that a page exists and is in the specified language. */ public function assertPageInLanguage($path = NULL, $langcode) { if (isset($path)) { $this->drupalGet($path); } if (!$this->assertResponse(200)) { return FALSE; } if ($this->parse()) { return $this->assertIdentical($langcode, (string) $this->elements['xml:lang']); } else { return FALSE; } } }
Close