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

Software: Apache/2.0.54 (Unix) mod_perl/1.99_09 Perl/v5.8.0 mod_ssl/2.0.54 OpenSSL/0.9.7l DAV/2 FrontPage/5.0.2.2635 PHP/4.4.0 mod_gzip/2.0.26.1a 

uname -a: Linux snow.he.net 4.4.276-v2-mono-1 #1 SMP Wed Jul 21 11:21:17 PDT 2021 i686 

uid=99(nobody) gid=98(nobody) groups=98(nobody) 

Safe-mode: OFF (not secure)

/usr/local/webmail2/plugins/html_mail/htmlarea/plugins/ImageManager/   drwxr-xr-x
Free 318.33 GB of 458.09 GB (69.49%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     backend.php (3.78 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php 
/**
* Unified backend for ImageManager 
*
* Image Manager was originally developed by:
*   Xiang Wei Zhuo, email: xiangweizhuo(at)hotmail.com Wei Shou.
*
* Unified backend sponsored by DTLink Software, http://www.dtlink.com
* Implementation by Yermo Lamers, http://www.formvista.com
*
* (c) DTLink, LLC 2005.
* Distributed under the same terms as HTMLArea itself.
* This notice MUST stay intact for use (see license.txt).
*
* DESCRIPTION:
*
* Instead of using separate URL's for each function, ImageManager now
* routes all requests to the server through this single, replaceable,
* entry point. backend.php expects at least two URL variable parameters: 
*
* __plugin=ImageManager   for future expansion; identify the plugin being requested.
* __function=thumbs|images|editorFrame|editor|manager  function being called.
*
* Having a single entry point that strictly adheres to a defined interface will 
* make the backend code much easier to maintain and expand. It will make it easier
* on integrators, not to mention it'll make it easier to have separate 
* implementations of the backend in different languages (Perl, Python, ASP, etc.) 
*
* @see config.inc.php
*/

// Strip slashes if MQGPC is on
set_magic_quotes_runtime(0);
if(
get_magic_quotes_gpc())
{
  
$to_clean = array(&$_GET, &$_POST, &$_REQUEST, &$_COOKIE);
  while(
count($to_clean))
  {
    
$cleaning =& $to_clean[array_pop($junk array_keys($to_clean))];
    unset(
$to_clean[array_pop($junk array_keys($to_clean))]);
    foreach(
array_keys($cleaning) as $k)
    {
      if(
is_array($cleaning[$k]))
      {
        
$to_clean[] =& $cleaning[$k];
      }
      else
      {
        
$cleaning[$k] = stripslashes($cleaning[$k]);
      }
    }
  }
}

/**
* ImageManager configuration
*/

require_once('config.inc.php');

/**
* debug message library
*/

include_once( "ddt.php" );

// uncomment to turn on debugging
// _ddtOn();

_ddt__FILE____LINE__"backend.php: top with query '" $_SERVER["PHP_SELF"] . "' string '" $_SERVER["QUERY_STRING"] . "'" );

$formVars = empty($_POST) ? $_GET $_POST;

// make sure the request is for us (this gives us the ability to eventually organize
// a backend event handler system) For an include file the return doesn't make alot of
// sense but eventually we'll want to turn all of this into at least functions 
// separating out all the presentation HTML from the logic. (Right now all the HTML
// used by ImageManager is in the same files as the PHP code ...)

if ( @$formVars"__plugin" ] != "ImageManager" )
    {
    
// not for us.

    
_ddt__FILE____LINE__"request was not for us" );

    return 
true;
    }

// so we don't have to re-engineer the entire thing right now, since it's probably
// going to get rewritten anyway, we just include the correct file based on the 
// function request.

_ddt__FILE____LINE__"backend.php(): handling function '" $formVars"__function" ] . "' base_dir is '" $IMConfig["base_dir"] . "'" );

switch ( @
$formVars"__function" ] )
    {

    case 
"editor"

        include_once( 
$IMConfig['base_dir'] . "/editor.php" );
        exit();
        
        break;

    case 
"editorFrame":

        include_once( 
$IMConfig['base_dir'] . "/editorFrame.php" );
        exit();

        break;

    case 
"manager":

        
_ddt__FILE____LINE__"including '" $IMConfig['base_dir'] . "/manager.php" );

        include_once( 
$IMConfig['base_dir'] . "/manager.php" );
        exit();

        break;

    case 
"images":

        include_once( 
$IMConfig['base_dir'] . "/images.php" );
        exit();

        break;

    case 
"thumbs":

        include_once( 
$IMConfig['base_dir'] . "/thumbs.php" );
        exit();

        break;

    case 
"resizer":

        include_once( 
$IMConfig['base_dir'] . "/resizer.php" );
        exit();

        break;

    default:

        
_ddt__FILE____LINE__"function request not supported" );
        
_error__FILE____LINE__"function request not supported" );

        break;

    }    
// end of switch.

return false ;

// END

?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

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