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() function handlePost()
{ {
?>
<?php
$host = $_POST['host']; $host = $_POST['host'];
$dbtype = $_POST['dbtype']; $dbtype = $_POST['dbtype'];
$database = $_POST['database']; $database = $_POST['database'];
@ -463,12 +460,12 @@ function handlePost()
$server = $_SERVER['HTTP_HOST']; $server = $_SERVER['HTTP_HOST'];
$path = substr(dirname($_SERVER['PHP_SELF']), 1); $path = substr(dirname($_SERVER['PHP_SELF']), 1);
?> echo <<<STR
<dl class="system_notice"> <dl class="system_notice">
<dt>Page notice</dt> <dt>Page notice</dt>
<dd> <dd>
<ul> <ul>
<?php STR;
$fail = false; $fail = false;
if (empty($host)) { if (empty($host)) {
@ -662,6 +659,14 @@ function writeConf($sitename, $server, $path, $fancy, $db)
return $res; 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') function runDbScript($filename, $conn, $type = 'mysql')
{ {
$sql = trim(file_get_contents($filename)); $sql = trim(file_get_contents($filename));