403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.217.154
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/inetpub/wwwroot/business/sites/all/modules/ctools/plugins/access/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/inetpub/wwwroot/business/sites/all/modules/ctools/plugins/access/query_string_exists.inc
<?php

/**
 * @file
 * Plugin for controlling access based on the existence of a query string.
 */

$plugin = array(
  'title' => t('Query string exists'),
  'description' => t('Control access by whether or not a query string exists.'),
  'callback' => 'ctools_query_string_exists_ctools_access_check',
  'settings form' => 'ctools_query_string_exists_ctools_access_settings',
  'summary' => 'ctools_query_string_exists_ctools_access_summary',
  'defaults' => array('key' => ''),
);

/**
 * Settings form.
 */
function ctools_query_string_exists_ctools_access_settings($form, &$form_state, $config) {
  $form['settings']['key'] = array(
    '#title' => t('Query string key'),
    '#description' => t('Enter the key of the query string.'),
    '#type' => 'textfield',
    '#required' => TRUE,
    '#default_value' => $config['key'],
  );

  return $form;
}

/**
 * Check for access.
 */
function ctools_query_string_exists_ctools_access_check($config, $context) {
  return isset($_GET[$config['key']]);
}

/**
 * Provide a summary description.
 */
function ctools_query_string_exists_ctools_access_summary($config, $context) {
  return t('@identifier exists', array('@identifier' => $config['key']));
}

Youez - 2016 - github.com/yon3zu
LinuXploit