Beispiel #1
0
    //require($config['classdir'] . '/db_Wrap.class.php');
    $install_test_result[$id] .= "classdir (" . $config['classdir'] . "/sotf_Utils.class.php) " . GetPerm($config['classdir'] . "/sotf_Utils.class.php", "read") . "<BR />";
    //require($config['classdir'] . '/sotf_Utils.class.php');
    $install_test_result[$id] .= "classdir (" . $config['classdir'] . "/sotf_User.class.php) " . GetPerm($config['classdir'] . "/sotf_User.class.php", "read") . "<BR />";
    //require($config['classdir'] . '/sotf_User.class.php');
    $install_test_result[$id] .= "classdir (" . $config['classdir'] . "/sotf_Page.class.php) " . GetPerm($config['classdir'] . "/sotf_Page.class.php", "read") . "<BR />";
    //require($config['classdir'] . '/sotf_Page.class.php');
    $install_test_result[$id] .= "classdir (" . $config['classdir'] . "/sotf_Permission.class.php) " . GetPerm($config['classdir'] . "/sotf_Permission.class.php", "read") . "<BR />";
    //require($config['classdir'] . '/sotf_Permission.class.php');
    $install_test_result[$id] .= "classdir (" . $config['classdir'] . "/sotf_Vars.class.php) " . GetPerm($config['classdir'] . "/sotf_Vars.class.php", "read") . "<BR />";
    //require($config['classdir'] . '/sotf_Vars.class.php');
    $install_test_result[$id] .= "classdir (" . $config['classdir'] . "/sotf_Repository.class.php) " . GetPerm($config['classdir'] . "/sotf_Repository.class.php", "read") . "<BR />";
    //require($config['classdir'] . '/sotf_Repository.class.php');
    $install_test_result[$id] .= "classdir (" . $config['classdir'] . "/sotf_FileList.class.php) " . GetPerm($config['classdir'] . "/sotf_FileList.class.php", "read") . "<BR />";
    //require($config['classdir'] . '/sotf_FileList.class.php');
    $install_test_result[$id] .= "classdir (" . $config['classdir'] . "/sotf_AudioCheck.class.php) " . GetPerm($config['classdir'] . "/sotf_AudioCheck.class.php", "read") . "<BR />";
    //require($config['classdir'] . '/sotf_AudioCheck.class.php');
    //		$install_test_result[$id] .= "rosszdir (C:/temp/temp) ".GetPerm("C:/temp/temp/pmppmp.pmp", "read")."<BR />";
    //		$install_test_result[$id] .= " () ".GetPerm(."/pmppmp.pmp")."<BR />";
    if (strpos($install_test_result[$id], "ERROR")) {
        $install_color[$id] = $install_red;
    } else {
        $install_color[$id] = $install_green;
    }
}
PrintTitle($id);
PrintButton($id);
$id = 4;
//////////////////////////Test 4
if (RunTest($id, "PostgreSQL connection")) {
    dbug("TEST 4: pgsql connection");
Beispiel #2
0
    //require($classdir . '/db_Wrap.class.php');
    $install_test_result[$id] .= "classdir ({$classdir}/sotf_Utils.class.php) " . @GetPerm($classdir . "/sotf_Utils.class.php", "read") . "<BR />";
    //require($classdir . '/sotf_Utils.class.php');
    $install_test_result[$id] .= "classdir ({$classdir}/sotf_User.class.php) " . @GetPerm($classdir . "/sotf_User.class.php", "read") . "<BR />";
    //require($classdir . '/sotf_User.class.php');
    $install_test_result[$id] .= "classdir ({$classdir}/sotf_Page.class.php) " . @GetPerm($classdir . "/sotf_Page.class.php", "read") . "<BR />";
    //require($classdir . '/sotf_Page.class.php');
    $install_test_result[$id] .= "classdir ({$classdir}/sotf_Permission.class.php) " . @GetPerm($classdir . "/sotf_Permission.class.php", "read") . "<BR />";
    //require($classdir . '/sotf_Permission.class.php');
    $install_test_result[$id] .= "classdir ({$classdir}/sotf_Vars.class.php) " . @GetPerm($classdir . "/sotf_Vars.class.php", "read") . "<BR />";
    //require($classdir . '/sotf_Vars.class.php');
    $install_test_result[$id] .= "classdir ({$classdir}/sotf_Repository.class.php) " . @GetPerm($classdir . "/sotf_Repository.class.php", "read") . "<BR />";
    //require($classdir . '/sotf_Repository.class.php');
    $install_test_result[$id] .= "classdir ({$classdir}/sotf_FileList.class.php) " . @GetPerm($classdir . "/sotf_FileList.class.php", "read") . "<BR />";
    //require($classdir . '/sotf_FileList.class.php');
    $install_test_result[$id] .= "classdir ({$classdir}/sotf_AudioCheck.class.php) " . @GetPerm($classdir . "/sotf_AudioCheck.class.php", "read") . "<BR />";
    //require($classdir . '/sotf_AudioCheck.class.php');
    //		$install_test_result[$id] .= "rosszdir (C:/temp/temp) ".@GetPerm("C:/temp/temp/pmppmp.pmp", "read")."<BR />";
    //		$install_test_result[$id] .= " () ".GetPerm(."/pmppmp.pmp")."<BR />";
    if (strpos($install_test_result[$id], "ERROR")) {
        $install_color[$id] = $install_red;
    } else {
        $install_color[$id] = $install_green;
    }
}
PrintTitle($id);
PrintButton($id);
$id = 4;
//////////////////////////Test 4
if (RunTest($id, "PostGresql connection")) {
    $conn = @pg_connect("host={$install_host} port={$install_port} user={$install_user} dbname=template1 password={$install_pass}");