!c99Shell v. 1.0 pre-release build #16!

Software: Apache/2.2.3 (CentOS). PHP/5.1.6 

uname -a: Linux mx-ll-110-164-51-230.static.3bb.co.th 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44
EDT 2010 i686
 

uid=48(apache) gid=48(apache) groups=48(apache) 

Safe-mode: OFF (not secure)

/var/www/html/mis/system/helpers/   drwxr-xr-x
Free 51.01 GB of 127.8 GB (39.91%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     inflector_helper.php (3.56 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
 * CodeIgniter
 *
 * An open source application development framework for PHP 5.1.6 or newer
 *
 * @package        CodeIgniter
 * @author        ExpressionEngine Dev Team
 * @copyright    Copyright (c) 2008 - 2011, EllisLab, Inc.
 * @license        http://codeigniter.com/user_guide/license.html
 * @link        http://codeigniter.com
 * @since        Version 1.0
 * @filesource
 */

// ------------------------------------------------------------------------

/**
 * CodeIgniter Inflector Helpers
 *
 * @package        CodeIgniter
 * @subpackage    Helpers
 * @category    Helpers
 * @author        ExpressionEngine Dev Team
 * @link        http://codeigniter.com/user_guide/helpers/directory_helper.html
 */


// --------------------------------------------------------------------

/**
 * Singular
 *
 * Takes a plural word and makes it singular
 *
 * @access    public
 * @param    string
 * @return    str
 */
if ( ! function_exists('singular'))
{
    function 
singular($str)
    {
        
$str trim($str);
        
$end substr($str, -3);
        
        
$str preg_replace('/(.*)?([s|c]h)es/i','$1$2',$str);
        
        if (
strtolower($end) == 'ies')
        {
            
$str substr($str0strlen($str)-3).(preg_match('/[a-z]/',$end) ? 'y' 'Y');
        }
        elseif (
strtolower($end) == 'ses')
        {
            
$str substr($str0strlen($str)-2);
        }
        else
        {
            
$end strtolower(substr($str, -1));

            if (
$end == 's')
            {
                
$str substr($str0strlen($str)-1);
            }
        }

        return 
$str;
    }
}

// --------------------------------------------------------------------

/**
 * Plural
 *
 * Takes a singular word and makes it plural
 *
 * @access    public
 * @param    string
 * @param    bool
 * @return    str
 */
if ( ! function_exists('plural'))
{
    function 
plural($str$force FALSE)
    {   
        
$str trim($str);
        
$end substr($str, -1);

        if (
preg_match('/y/i',$end))
        {
            
// Y preceded by vowel => regular plural
            
$vowels = array('a''e''i''o''u''A''E''I''O''U');
            
$str in_array(substr($str, -21), $vowels) ? $str.'s' substr($str0, -1).'ies';
        }
        elseif (
preg_match('/h/i',$end))
        {
            if(
preg_match('/^[c|s]h$/i',substr($str, -2)))
            {
                
$str .= 'es';
            }
            else
            {
                
$str .= 's';
            }
        }
        elseif (
preg_match('/s/i',$end))
        {
            if (
$force == TRUE)
            {
                
$str .= 'es';
            }
        }
        else
        {
            
$str .= 's';
        }

        return 
$str;
    }
}

// --------------------------------------------------------------------

/**
 * Camelize
 *
 * Takes multiple words separated by spaces or underscores and camelizes them
 *
 * @access    public
 * @param    string
 * @return    str
 */
if ( ! function_exists('camelize'))
{
    function 
camelize($str)
    {
        
$str 'x'.strtolower(trim($str));
        
$str ucwords(preg_replace('/[\s_]+/'' '$str));
        return 
substr(str_replace(' '''$str), 1);
    }
}

// --------------------------------------------------------------------

/**
 * Underscore
 *
 * Takes multiple words separated by spaces and underscores them
 *
 * @access    public
 * @param    string
 * @return    str
 */
if ( ! function_exists('underscore'))
{
    function 
underscore($str)
    {
        return 
preg_replace('/[\s]+/''_'strtolower(trim($str)));
    }
}

// --------------------------------------------------------------------

/**
 * Humanize
 *
 * Takes multiple words separated by underscores and changes them to spaces
 *
 * @access    public
 * @param    string
 * @return    str
 */
if ( ! function_exists('humanize'))
{
    function 
humanize($str)
    {
        return 
ucwords(preg_replace('/[_]+/'' 'strtolower(trim($str))));
    }
}


/* End of file inflector_helper.php */
/* Location: ./system/helpers/inflector_helper.php */

:: Command execute ::

Enter:
 
Select:
 

:: Shadow's tricks :D ::

Useful Commands
 
Warning. Kernel may be alerted using higher levels
Kernel Info:

:: Preddy's tricks :D ::

Php Safe-Mode Bypass (Read Files)

File:

eg: /etc/passwd

Php Safe-Mode Bypass (List Directories):

Dir:

eg: /etc/

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

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

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

--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.0135 ]--