Welcome To Our Shell

Mister Spy & Souheyl Bypass Shell

Current Path : /var/www/html1/bbp/web/modules/contrib/visitors/

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/html1/bbp/web/modules/contrib/visitors/visitors_geoip.install

<?php

/* vim: set filetype=php: */

/**
 * @file
 * Install/uninstall visitors geoip module.
 */

use Drupal\Core\Database\Database;

/**
 * Update {visitors} table, add geoip support.
 */
function visitors_geoip_schema_alter(&$schema) {
  $schema['visitors'] = array(
    'fields' => array(
      'visitors_continent_code' => array(
        'type' => 'varchar',
        'length' => 2,
        'not null' => TRUE,
        'default' => '',
      ),
      'visitors_country_code' => array(
        'type' => 'varchar',
        'length' => 2,
        'not null' => TRUE,
        'default' => '',
      ),
      'visitors_country_code3' => array(
        'type' => 'varchar',
        'length' => 3,
        'not null' => TRUE,
        'default' => '',
      ),
      'visitors_country_name' => array(
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
        'default' => '',
      ),
      'visitors_region' => array(
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
        'default' => '',
      ),
      'visitors_city' => array(
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
        'default' => '',
      ),
      'visitors_postal_code' => array(
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
        'default' => '',
      ),
      'visitors_latitude' => array(
        'type' => 'numeric',
        'precision' => 13,
        'scale' => 10,
        'not null' => TRUE,
        'default' => 0,
      ),
      'visitors_longitude' => array(
        'type' => 'numeric',
        'precision' => 13,
        'scale' => 10,
        'not null' => TRUE,
        'default' => 0,
      ),
      'visitors_dma_code' => array(
        'type' => 'int',
        'not null' => TRUE,
        'unsigned' => TRUE,
        'default' => 0,
      ),
      'visitors_area_code' => array(
        'type' => 'int',
        'not null' => TRUE,
        'unsigned' => TRUE,
        'default' => 0,
      )
    )
  );

  return $schema;
}

/**
 * Implements hook_install().
 */
function visitors_geoip_install() {
  $schema = Database::getConnection()->schema();

  if (!$schema->fieldExists('visitors', 'visitors_continent_code')) {
    \Drupal::database()->schema()->addField(
      'visitors',
      'visitors_continent_code',
      array(
        'type' => 'varchar',
        'length' => 2,
        'not null' => TRUE,
        'default' => '',
      )
    );
  }

  if (!$schema->fieldExists('visitors', 'visitors_country_code')) {
    \Drupal::database()->schema()->addField(
      'visitors',
      'visitors_country_code',
      array(
        'type' => 'varchar',
        'length' => 2,
        'not null' => TRUE,
        'default' => '',
      )
    );
  }

  if (!$schema->fieldExists('visitors', 'visitors_country_code3')) {
    \Drupal::database()->schema()->addField(
      'visitors',
      'visitors_country_code3',
      array(
        'type' => 'varchar',
        'length' => 3,
        'not null' => TRUE,
        'default' => '',
      )
    );
  }

  if (!$schema->fieldExists('visitors', 'visitors_country_name')) {
    \Drupal::database()->schema()->addField(
      'visitors',
      'visitors_country_name',
      array(
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
        'default' => '',
      )
    );
  }

  if (!$schema->fieldExists('visitors', 'visitors_region')) {
    \Drupal::database()->schema()->addField(
      'visitors',
      'visitors_region',
      array(
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
        'default' => '',
      )
    );
  }

  if (!$schema->fieldExists('visitors', 'visitors_city')) {
    \Drupal::database()->schema()->addField(
      'visitors',
      'visitors_city',
      array(
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
        'default' => '',
      )
    );
  }

  if (!$schema->fieldExists('visitors', 'visitors_postal_code')) {
    \Drupal::database()->schema()->addField(
      'visitors',
      'visitors_postal_code',
      array(
        'type' => 'varchar',
        'length' => 128,
        'not null' => TRUE,
        'default' => '',
      )
    );
  }

  if (!$schema->fieldExists('visitors', 'visitors_latitude')) {
    \Drupal::database()->schema()->addField(
      'visitors',
      'visitors_latitude',
      array(
        'type' => 'numeric',
        'precision' => 13,
        'scale' => 10,
        'not null' => TRUE,
        'default' => 0,
      )
    );
  }

  if (!$schema->fieldExists('visitors', 'visitors_longitude')) {
    \Drupal::database()->schema()->addField(
      'visitors',
      'visitors_longitude',
      array(
        'type' => 'numeric',
        'precision' => 13,
        'scale' => 10,
        'not null' => TRUE,
        'default' => 0,
      )
    );
  }

  if (!$schema->fieldExists('visitors', 'visitors_dma_code')) {
    \Drupal::database()->schema()->addField(
      'visitors',
      'visitors_dma_code',
      array(
        'type' => 'int',
        'not null' => TRUE,
        'unsigned' => TRUE,
        'default' => 0,
      )
    );
  }

  if (!$schema->fieldExists('visitors', 'visitors_area_code')) {
    \Drupal::database()->schema()->addField(
      'visitors',
      'visitors_area_code',
      array(
        'type' => 'int',
        'not null' => TRUE,
        'unsigned' => TRUE,
        'default' => 0,
      )
    );
  }
}

/**
 * Implements hook_uninstall().
 */
function visitors_geoip_uninstall() {
  \Drupal::database()->schema()->dropField('visitors', 'visitors_continent_code');
  \Drupal::database()->schema()->dropField('visitors', 'visitors_country_code');
  \Drupal::database()->schema()->dropField('visitors', 'visitors_country_code3');
  \Drupal::database()->schema()->dropField('visitors', 'visitors_country_name');
  \Drupal::database()->schema()->dropField('visitors', 'visitors_region');
  \Drupal::database()->schema()->dropField('visitors', 'visitors_city');
  \Drupal::database()->schema()->dropField('visitors', 'visitors_postal_code');
  \Drupal::database()->schema()->dropField('visitors', 'visitors_latitude');
  \Drupal::database()->schema()->dropField('visitors', 'visitors_longitude');
  \Drupal::database()->schema()->dropField('visitors', 'visitors_dma_code');
  \Drupal::database()->schema()->dropField('visitors', 'visitors_area_code');
}


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