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 :  /Old Sites/modip/modules/views/modules/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Old Sites/modip/modules/views/modules/profile.views_convert.inc
<?php
// $Id: profile.views_convert.inc,v 1.2 2009/06/30 19:14:27 merlinofchaos Exp $

/**
 * @file
 * Field conversion for fields handled by this module.
 */

/**
 * Implementation of hook_views_convert().
 *
 * Intervene to convert field values from the Views 1 format to the
 * Views 2 format. Intervene only if $view->add_item() won't produce
 * the right results, usually needed to set field options or values.
 */
function profile_views_convert($display, $type, &$view, $field, $id = NULL) {
  static $profile_fields;
  if (!isset($profile_fields)) {
    $profile_fields = array();
    foreach (profile_views_get_fields() as $profile_field) {
      $profile_fields['profile_values_'. $profile_field->name] = $profile_field;
    }
  }
  switch ($type) {
    case 'filter':
      if (isset($tables[$field['tablename']])) {
        switch ($profile_fields[$field['tablename']]->type) {
          case 'vocabulary':
          case 'selection':
            $operators = array('AND' => 'in', 'OR' => 'in', 'NOR' => 'not in');
            $view->set_item_option($display, 'filter', $id, 'operator', $operators[$field['operator']]);
            break;
          default:
            $view->set_item_option($display, 'filter', $id, 'operator', $field['operator']);
            break;
        }
      }
      break;
  }
}

Youez - 2016 - github.com/yon3zu
LinuXploit