!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/test/MDB_QueryTool/tests/   drwxr-xr-x
Free 9.91 GB of 61.93 GB (16.01%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     SetDbInstanceTest.php (1.38 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
//
// $Id: SetDbInstanceTest.php 322098 2012-01-11 21:20:03Z danielc $
//

require_once dirname(__FILE__) . '/TestCase.php';

/**
* This class just checks if the query is returned, not if
* the query was properly rendered. This should be subject to
* some other tests!
*
* @package tests
*/
class tests_SetDbInstanceTest extends tests_TestCase
{
    
/**
     * Check if the two instances are the same by comparing
     * the fetchMode, since this is the easiest to compare if
     * two objects are the same in PHP4.
     * We can do that since the querytool sets the fetch mode to
     * MDB_FETCHMODE_ASSOC.
     * Not very nice but it works.
     *
     */
    
function test_default()
    {
        
$db MDB2::connect(unserialize(MDB_QUERYTOOL_TEST_DSN));

        
$qt = new MDB_QueryTool(null, array(), 2);
        
$qt->setDbInstance($db);
        
$dbActual $qt->getDbInstance();
        
$this->assertEquals($db->fetchmode$dbActual->fetchmode);
    }

    
/**
     * Make sure the way we did it before works too.
     * Passing the DB_DSN to the constructor should also work.
     * And retreiving the db instance should result in a sub class
     * of MDB_common.
     */
    
function test_oldWay()
    {
        
$qt = new MDB_QueryTool(unserialize(MDB_QUERYTOOL_TEST_DSN), array(), 2);
        
$db $qt->getDbInstance();
        
$this->assertInstanceOf('MDB2_Driver_Common'$db);
    }

}

?>

:: 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.4962 ]--