function GetConnectionOptions()
{
    $result = GetGlobalConnectionOptions();
    $result['client_encoding'] = 'utf8';
    GetApplication()->GetUserAuthorizationStrategy()->ApplyIdentityToConnectionOptions($result);
    return $result;
}
コード例 #2
0
function GetConnectionOptions()
{
    $result = GetGlobalConnectionOptions();
    $result['client_encoding'] = 'utf8';
    return $result;
}
コード例 #3
0
function GetConnectionOptions()
{
    $result = GetGlobalConnectionOptions();
    GetApplication()->GetUserAuthorizationStrategy()->ApplyIdentityToConnectionOptions($result);
    return $result;
}
コード例 #4
0
ファイル: authorization.php プロジェクト: eroncalli/atig
function GetIdentityCheckStrategy()
{
    return new TableBasedIdentityCheckStrategy(new MyPDOConnectionFactory(), GetGlobalConnectionOptions(), 'atig_users', 'user_name', 'user_password', 'MD5');
}
コード例 #5
0
ファイル: ax_general.php プロジェクト: jsrxar/dto
<?php

$debug = false;
function get_param($parametro)
{
    if (isset($_POST[$parametro])) {
        $param_val = $_POST[$parametro];
    } elseif (isset($_GET[$parametro])) {
        $param_val = $_GET[$parametro];
    }
    return $param_val;
}
if ($debug) {
    ini_set('display_errors', 'On');
    error_reporting(E_ALL);
} else {
    ini_set('display_errors', 'Off');
    error_reporting(0);
}
// Conectamos a la base de datos
include_once dirname(__FILE__) . '/' . 'phpgen_settings.php';
$dbo = GetGlobalConnectionOptions();
//echo "<!--p>\nhost=" . $dbo['server'] . "\ndbname=" . $dbo['database'] . "\nuser="******"\npassword="******"\n<p-->\n";
$dbc = pg_pconnect('host=' . $dbo['server'] . ' dbname=' . $dbo['database'] . ' user='******'username'] . ' password='******'password']);
if (!$dbc) {
    if ($debug) {
        echo '<h3>Imposible conectar a la Base de Datos</h3>';
    }
    exit;
}
コード例 #6
0
function GetIdentityCheckStrategy()
{
    return new TableBasedIdentityCheckStrategy(new MyConnectionFactory(), GetGlobalConnectionOptions(), 'staff', 'username', 'password', 'SHA256');
}
コード例 #7
0
function GetIdentityCheckStrategy()
{
    return new TableBasedIdentityCheckStrategy(new MySqlIConnectionFactory(), GetGlobalConnectionOptions(), 'phpgen_users', 'user_name', 'user_password', 'SHA1');
}