Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /var/www/html/ift/web/core/modules/comment/

Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Upload File :
Current File : /var/www/html/ift/web/core/modules/comment/comment.post_update.php

<?php

/**
 * @file
 * Post update functions for the comment module.
 */

use Drupal\Core\Config\FileStorage;
use Drupal\Core\Config\InstallStorage;

/**
 * Enable the comment admin view.
 */
function comment_post_update_enable_comment_admin_view() {
  $module_handler = \Drupal::moduleHandler();
  $entity_type_manager = \Drupal::entityTypeManager();

  // Save the comment delete action to config.
  $config_install_path = $module_handler->getModule('comment')->getPath() . '/' . InstallStorage::CONFIG_INSTALL_DIRECTORY;
  $storage = new FileStorage($config_install_path);
  $entity_type_manager
    ->getStorage('action')
    ->create($storage->read('system.action.comment_delete_action'))
    ->save();

  // Only create if the views module is enabled.
  if (!$module_handler->moduleExists('views')) {
    return;
  }

  // Save the comment admin view to config.
  $optional_install_path = $module_handler->getModule('comment')->getPath() . '/' . InstallStorage::CONFIG_OPTIONAL_DIRECTORY;
  $storage = new FileStorage($optional_install_path);
  $entity_type_manager
    ->getStorage('view')
    ->create($storage->read('views.view.comment'))
    ->save();
}

/**
 * Add comment settings.
 */
function comment_post_update_add_ip_address_setting() {
  $config_factory = \Drupal::configFactory();
  $settings = $config_factory->getEditable('comment.settings');
  $settings->set('log_ip_addresses', TRUE)
    ->save(TRUE);
}

bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped)
Email: contact@elmoujehidin.net bypass 1.0, Devloped By El Moujahidin (the source has been moved and devloped) Email: contact@elmoujehidin.net