lotsa tabulation changed to 4 spaces

This commit is contained in:
Brenda Wallace 2009-09-13 18:22:32 +12:00
parent 367ed28efa
commit 61d5d51cf5
1 changed files with 95 additions and 90 deletions

View File

@ -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));