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


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

/**
 * Declares functions that need to be available in the global scope
 *
 * @package MDB2
 * @category Database
 * @author Daniel Convissor <danielc@php.net>
 */

/**
 * Builds the tables used by the test suite.
 *
 * @param array|MDB2_Driver_Common $ci  either a MDB2_Driver_Common object or
 *                   an associative array with two elements.  The "dsn"
 *                   element must contain an array of DSN information.
 *                   The "options" element must be an array of connection
 *                   options.
 */
function build_schema($ci) {
    
$file __DIR__ '/schema.xml';

    if (
is_object($ci)) {
        if (! 
$ci instanceof MDB2_Driver_Common) {
            die(
"Must be a MDB2_Driver_Common object.\n");
        }
        
$db $ci;
        
$database $ci->getDatabase();
        
$phptype $ci->phptype;
        
$original_options $ci->options;
    } else {
        if (!
is_array($ci['dsn'])) {
            die(
'$ci["dsn"] must use the array DSN format.' "\n");
        }
        
$db $ci['dsn'];
        
$database $db['database'];
        
$phptype $db['phptype'];

        if (!
array_key_exists('options'$ci)) {
            die(
'$ci["options"] is missing.' "\n");
        }
        
$original_options $ci['options'];
    }

    
$variables = array(
        
'name'   => $database,
        
'create' => true,
    );

    
$options = array(
        
'log_line_break'   => '<br />',
        
'idxname_format'   => '%s',
        
'debug'            => true,
        
'quote_identifier' => true,
        
'force_defaults'   => false,
        
'portability'      => false
    
);
    
$options array_merge($options$original_options);

    
$err_base "TEST SCHEMA BUILD ERROR FOR $phptype: ";

    
$schema MDB2_Schema::factory($db$options);
    if (
MDB2::isError($schema)) {
        die(
$err_base $schema->getMessage() . ' '
            
$schema->getUserInfo() . "\n");
    }

    
$definition $schema->parseDatabaseDefinitionFile($file$variablestruetrue);
    if (
MDB2::isError($definition)) {
        die(
$err_base $definition->getMessage() . ' - '
            
$definition->getUserInfo() . "\n");
    } else {
        
$operation $schema->createDatabase($definition);
        if (
MDB2::isError($operation)) {
            die(
$err_base $operation->getMessage() . ' '
                
$operation->getUserInfo() . "\n");
        }
    }
}

/**
 * Determines if the desired MDB2_Driver class is available IN THE LOCATION
 * WE ARE TESTING
 *
 * Because there's not much point in testing some other installation.
 *
 * @param string $phptype  the "phptype" of the driver we're looking for
 * @return bool
 * @uses MDB2_TEST_MDB2_PATH  to determine the path
 */
function is_driver_available($phptype) {
    return 
file_exists(MDB2_TEST_MDB2_PATH "/MDB2/Driver/$phptype.php");
}

/**
 * Produces a multi-diemnsional array containing the connection information
 * for each DBMS to be tested
 *
 * The connection information for each DBMS is an associative array with two
 * elements.  The "dsn" element must contain an array of DSN information.
 * The "options" element must be an array of connection options.
 *
 * Used by Standard_Abstract::provider()
 *
 * @return array
 */
function mdb2_test_db_object_provider() {
    static 
$dbs;

    if (!isset(
$dbs)) {
        
$dsns unserialize(MDB2_TEST_SERIALIZED_DSNS);
        
$dbs = array();
        foreach (
$dsns as $driver => $ci) {
            
$dbs[$driver] = array(
                
$ci,
            );

            
// Disable messages from other packages while building schema.
            
$prior error_reporting(E_ALL & ~E_STRICT & ~E_DEPRECATED);
            
build_schema($ci);
            
error_reporting($prior);
        }
    }

    return 
$dbs;
}

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