forked from GNUsocial/gnu-social
connect to pg working
This commit is contained in:
parent
3fe182e865
commit
343e2010ae
25
install.php
25
install.php
@ -204,10 +204,10 @@ function handlePost()
|
||||
$fail = true;
|
||||
}
|
||||
|
||||
if (empty($password)) {
|
||||
updateStatus("No password specified.", true);
|
||||
$fail = true;
|
||||
}
|
||||
// if (empty($password)) {
|
||||
// updateStatus("No password specified.", true);
|
||||
// $fail = true;
|
||||
// }
|
||||
|
||||
if (empty($sitename)) {
|
||||
updateStatus("No sitename specified.", true);
|
||||
@ -233,11 +233,20 @@ function handlePost()
|
||||
<?php
|
||||
}
|
||||
|
||||
function pgsql_db_installer($host, $database, $username, $password, $sitename) {
|
||||
echo 'TODO'; exit;
|
||||
}
|
||||
function pgsql_db_installer($host, $database, $username, $password, $sitename) {
|
||||
$connstring = "dbname=$database host=$host user=$username";
|
||||
|
||||
function mysql_db_installer($host, $database, $username, $password, $sitename) {
|
||||
//No password would mean trust authentication used.
|
||||
if (!empty($password)) {
|
||||
$connstring .= " password=$password";
|
||||
}
|
||||
updateStatus("Starting installation...");
|
||||
updateStatus("Checking database...");
|
||||
$conn = pg_connect($connstring);
|
||||
|
||||
}
|
||||
|
||||
function mysql_db_installer($host, $database, $username, $password, $sitename) {
|
||||
updateStatus("Starting installation...");
|
||||
updateStatus("Checking database...");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user