!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/lampp/lib/php/Tree/   drwxr-xr-x
Free 13.36 GB of 61.93 GB (21.57%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     OptionsDB.php (4.04 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/* vim: set expandtab tabstop=4 shiftwidth=4: */

// i think this class should go somewhere in a common PEAR-place,
// but since it is not very fancy to crowd the PEAR-namespace too much
// i dont know where to put it yet :-(

//
// +----------------------------------------------------------------------+
// | PHP Version 4                                                        |
// +----------------------------------------------------------------------+
// | Copyright (c) 1997-2003 The PHP Group                                |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.02 of the PHP license,      |
// | that is bundled with this package in the file LICENSE, and is        |
// | available at through the world-wide-web at                           |
// | http://www.php.net/license/2_02.txt.                                 |
// | If you did not receive a copy of the PHP license and are unable to   |
// | obtain it through the world-wide-web, please send a note to          |
// | license@php.net so we can mail you a copy immediately.               |
// +----------------------------------------------------------------------+
// | Authors: Wolfram Kriesing <wolfram@kriesing.de>                      |
// +----------------------------------------------------------------------+
//
//  $Id: OptionsDB.php 320703 2011-12-08 22:08:40Z danielc $

require_once 'Tree/Common.php';

/**
 *   this class additionally retreives a DB connection and saves it
 *   in the property "dbh"
 *
 *   @package  Tree
 *   @access   public
 *   @author   Wolfram Kriesing <wolfram@kriesing.de>
 *
 */
class Tree_OptionsDB extends Tree_Common
{
    
/**
     *   @var    object
     */
    
var $dbh;


    
// {{{ Tree_OptionsDB()

    /**
     *   this constructor sets the options, since i normally need this and
     *   in case the constructor doesnt need to do anymore i already have
     * it done :-)
     *
     *   @version    02/01/08
     *   @access     public
     *   @author     Wolfram Kriesing <wolfram@kriesing.de>
     *   @param      boolean true if loggedIn
     */
    
function Tree_OptionsDB($dsn $options = array())
    {
        
$res $this->_connectDB($dsn);
        if (
PEAR::isError($res)) {
            return 
$res;
        }

        
$this->dbh->setFetchmode(DB_FETCHMODE_ASSOC);
        
// do options afterwards since it overrules
        
$this->Tree_Options($options);
    }

    
// }}}
    // {{{ _connectDB()

    /**
     * Connect to database by using the given DSN string
     *
     * @author  copied from PEAR::Auth, Martin Jansen, slightly modified
     * @access private
     * @param  string DSN string
     * @return mixed  Object on error, otherwise bool
     */
    
function _connectDB($dsn)
    {
        
// only include the db if one really wants to connect
        
require_once 'DB.php';

        if (
is_string($dsn) || is_array($dsn)) {
            
// put the dsn parameters in an array
            // DB would be confused with an additional URL-queries,
            //like ?table=... so we do it before connecting to the DB
            
if (is_string($dsn)) {
                
$dsn DB::parseDSN($dsn);
            }
            
$this->dbh DB::Connect($dsn);
        } else {
            if (
strtolower(get_parent_class($dsn)) == 'db_common') {
                
$this->dbh $dsn;
            } else {
                if (
is_object($dsn) && DB::isError($dsn)) {
                    return new 
DB_Error($dsn->codePEAR_ERROR_DIE);
                }

                return new 
PEAR_Error(
                                
'The given dsn was not valid in file '.
                                
__FILE__ " at line " __LINE__,
                                
41,
                                
PEAR_ERROR_RETURN,
                                
null,
                                
null
                                
);

            }
        }

        if (
DB::isError($this->dbh)) {
            return new 
DB_Error($this->dbh->codePEAR_ERROR_DIE);
        }

        return 
true;
    }

    
// }}}
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.6038 ]--