Esempio n. 1
0
function dbConnectOtherUsers($username, $password)
{
    // $hostname='108.2.206.24:3306';
    // $dbname='lvarcftp_test';
    // $user = '******';
    // $pwd = 'RW22qhHO62HO';
    $hostname = 'localhost:3306';
    $dbname = 'lvarcftp_w3oi';
    // Connection code
    $conn = _mysql_connect($hostname, $username, $password);
    return $conn;
}
Esempio n. 2
0
function cherokee_mysql_connect($host = NULL, $user = NULL, $pass = NULL, $new_link = false, $client_flags = 0)
{
    global $_dbslayer;
    $host = $host ? $host : $_dbslayer['db_host'];
    if ($host != $_dbslayer['db_host']) {
        return _mysql_connect($host, $user, $pass, $new_link, $client_flags);
    }
    return cherokee_mysql_pconnect($host, $user, $pass, $client_flags);
}