forked from GNUsocial/gnu-social
lotsa tabulation changed to 4 spaces
This commit is contained in:
parent
367ed28efa
commit
61d5d51cf5
15
install.php
15
install.php
@ -450,9 +450,6 @@ function updateStatus($status, $error=false)
|
||||
|
||||
function handlePost()
|
||||
{
|
||||
?>
|
||||
|
||||
<?php
|
||||
$host = $_POST['host'];
|
||||
$dbtype = $_POST['dbtype'];
|
||||
$database = $_POST['database'];
|
||||
@ -463,12 +460,12 @@ function handlePost()
|
||||
$server = $_SERVER['HTTP_HOST'];
|
||||
$path = substr(dirname($_SERVER['PHP_SELF']), 1);
|
||||
|
||||
?>
|
||||
echo <<<STR
|
||||
<dl class="system_notice">
|
||||
<dt>Page notice</dt>
|
||||
<dd>
|
||||
<ul>
|
||||
<?php
|
||||
STR;
|
||||
$fail = false;
|
||||
|
||||
if (empty($host)) {
|
||||
@ -662,6 +659,14 @@ function writeConf($sitename, $server, $path, $fancy, $db)
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* Install schema into the database
|
||||
*
|
||||
* @param filename $filename location of database schema file
|
||||
* @param conn $conn connection to database
|
||||
* @param type $type type of database, currently mysql or pgsql
|
||||
* @return boolean - indicating success or failure
|
||||
*/
|
||||
function runDbScript($filename, $conn, $type = 'mysql')
|
||||
{
|
||||
$sql = trim(file_get_contents($filename));
|
||||
|
Loading…
Reference in New Issue
Block a user