Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /var/www/html/store1/vendor/chi-teck/drupal-code-generator/src/Command/Misc/

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/store1/vendor/chi-teck/drupal-code-generator/src/Command/Misc/NginxVirtualHost.php

<?php declare(strict_types=1);

namespace DrupalCodeGenerator\Command\Misc;

use DrupalCodeGenerator\Application;
use DrupalCodeGenerator\Command\Generator;

/**
 * Implements misc:nginx-virtual-host command.
 */
final class NginxVirtualHost extends Generator {

  protected string $name = 'misc:nginx-virtual-host';
  protected string $description = 'Generates an Nginx site configuration file';
  protected string $alias = 'nginx-virtual-host';
  protected string $templatePath = Application::TEMPLATE_PATH . '/misc/nginx-virtual-host';

  /**
   * {@inheritdoc}
   */
  protected function generate(array &$vars): void {
    $socket = \PHP_MAJOR_VERSION == 5
      ? '/run/php5-fpm.sock'
      : \sprintf('/run/php/php%s.%s-fpm.sock', \PHP_MAJOR_VERSION, \PHP_MINOR_VERSION);

    $vars['server_name'] = $this->ask('Server name', 'example.com');
    $vars['docroot'] = $this->ask('Document root', '/var/www/{server_name}/docroot');
    $vars['file_public_path'] = $this->ask('Public file system path', 'sites/default/files');
    $vars['file_private_path'] = $this->ask('Private file system path');
    $vars['fastcgi_pass'] = $this->ask('Address of a FastCGI server', 'unix:' . $socket);

    $vars['file_public_path'] = \trim($vars['file_public_path'], '/');
    $vars['file_private_path'] = \trim($vars['file_private_path'], '/');

    $this->addFile('{server_name}', 'host.twig');
  }

}

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