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

Software: Apache/2.0.54 (Fedora). PHP/5.0.4 

uname -a: Linux mina-info.me 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 

uid=48(apache) gid=48(apache) groups=48(apache)
context=system_u:system_r:httpd_sys_script_t
 

Safe-mode: OFF (not secure)

/usr/share/pear/test/DB/tests/driver/   drwxr-xr-x
Free 4.85 GB of 27.03 GB (17.93%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     multiconnect.php (2.57 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/**
* Tests the various ways DB's connect() function operates
*
* PHP versions 4 and 5
*
* LICENSE: This source file is subject to version 3.0 of the PHP license
* that is available through the world-wide-web at the following URI:
* http://www.php.net/license/3_0.txt.  If you did not receive a copy of
* the PHP License and are unable to obtain it through the web, please
* send a note to license@php.net so we can mail you a copy immediately.
*
* @category   Database
* @package    DB
* @author     Daniel Convissor <danielc@php.net>
* @copyright  1997-2005 The PHP Group
* @license    http://www.php.net/license/3_0.txt  PHP License 3.0
* @version    $Id: multiconnect.php,v 1.2 2005/02/03 05:49:45 danielc Exp $
* @link       http://pear.php.net/package/DB
* @since      File available since Release 1.7.0
*/

/**
* Establish the include_path, DSN's and connection $options
*/
require_once './setup.inc';

foreach (
$dsns as $dbms => $dsn) {
    echo
"======== $dbms ========\n";
    
$options['persistent'] = false;
    
$dbh =& DB::connect($dsn, $options);
    if (
DB::isError($dbh)) {
        echo
'PROBLEM: ' . $dbh->getUserInfo() . "\n";
        continue;
    }

    if (
$dbh->provides('new_link')
        &&
version_compare(phpversion(), $dbh->provides('new_link'), '>='))
    {
        
$probs = false;
        
$dsn = DB::parseDSN($dsn);
        
$dsn['new_link'] = true;
        
$dbh =& DB::connect($dsn, $options);
        if (
DB::isError($dbh)) {
            echo
'NEW LINK PROBLEM: ' . $dbh->getUserInfo() . "\n";
            
$probs = true;
        }

        if (
$dbh->provides('pconnect')) {
            
$options['persistent'] = true;
            
$dbh->disconnect();
            
$dbh =& DB::connect($dsn, $options);
            if (
DB::isError($dbh)) {
                echo
'PERSIST NEWCON PROBLEM: ' . $dbh->getUserInfo() . "\n";
                
$probs = true;
            }

            unset(
$dsn['new_link']);
            
$dbh->disconnect();
            
$dbh =& DB::connect($dsn, $options);
            if (
DB::isError($dbh)) {
                echo
'PERSIST OLDCON PROBLEM: ' . $dbh->getUserInfo() . "\n";
                
$probs = true;
            }
        }
        if (
$probs) {
            continue;
        }
        
$dbh->disconnect();

    } elseif (
$dbh->provides('pconnect')) {
        
$options['persistent'] = true;
        
$dbh->disconnect();
        
$dbh =& DB::connect($dsn, $options);
        if (
DB::isError($dbh)) {
            echo
'PERSIST PROBLEM: ' . $dbh->getUserInfo() . "\n";
            continue;
        }
        
$dbh->disconnect();
    }
    echo
"GOOD\n";
}

:: 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 #16 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0031 ]--