most of code style errors gone
Conflicts: install.php
This commit is contained in:
parent
93605dce99
commit
dbc08ef0a0
19
install.php
19
install.php
@ -516,8 +516,7 @@ STR;
|
|||||||
}
|
}
|
||||||
|
|
||||||
global $dbModules;
|
global $dbModules;
|
||||||
$db = call_user_func($dbModules[$dbtype]['installer'],
|
$db = call_user_func($dbModules[$dbtype]['installer'], $host, $database, $username, $password);
|
||||||
$host, $database, $username, $password);
|
|
||||||
|
|
||||||
if (!$db) {
|
if (!$db) {
|
||||||
// database connection failed, do not move on to create config file.
|
// database connection failed, do not move on to create config file.
|
||||||
@ -540,12 +539,10 @@ STR;
|
|||||||
|
|
||||||
updateStatus("StatusNet has been installed at $link");
|
updateStatus("StatusNet has been installed at $link");
|
||||||
updateStatus("You can visit your <a href='$link'>new StatusNet site</a>.");
|
updateStatus("You can visit your <a href='$link'>new StatusNet site</a>.");
|
||||||
?>
|
|
||||||
|
|
||||||
<?php
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function pgsql_db_installer($host, $database, $username, $password) {
|
function Pgsql_Db_installer($host, $database, $username, $password)
|
||||||
|
{
|
||||||
$connstring = "dbname=$database host=$host user=$username";
|
$connstring = "dbname=$database host=$host user=$username";
|
||||||
|
|
||||||
//No password would mean trust authentication used.
|
//No password would mean trust authentication used.
|
||||||
@ -605,7 +602,8 @@ function pgsql_db_installer($host, $database, $username, $password) {
|
|||||||
return $db;
|
return $db;
|
||||||
}
|
}
|
||||||
|
|
||||||
function mysql_db_installer($host, $database, $username, $password) {
|
function Mysql_Db_installer($host, $database, $username, $password)
|
||||||
|
{
|
||||||
updateStatus("Starting installation...");
|
updateStatus("Starting installation...");
|
||||||
updateStatus("Checking database...");
|
updateStatus("Checking database...");
|
||||||
|
|
||||||
@ -678,9 +676,10 @@ function writeConf($sitename, $server, $path, $fancy, $db)
|
|||||||
/**
|
/**
|
||||||
* Install schema into the database
|
* Install schema into the database
|
||||||
*
|
*
|
||||||
* @param filename $filename location of database schema file
|
* @param string $filename location of database schema file
|
||||||
* @param conn $conn connection to database
|
* @param dbconn $conn connection to database
|
||||||
* @param type $type type of database, currently mysql or pgsql
|
* @param string $type type of database, currently mysql or pgsql
|
||||||
|
*
|
||||||
* @return boolean - indicating success or failure
|
* @return boolean - indicating success or failure
|
||||||
*/
|
*/
|
||||||
function runDbScript($filename, $conn, $type = 'mysql')
|
function runDbScript($filename, $conn, $type = 'mysql')
|
||||||
|
Loading…
Reference in New Issue
Block a user