diff --git a/config/config.php b/config/config.php
index e452d2bd..93e399fe 100644
--- a/config/config.php
+++ b/config/config.php
@@ -4,20 +4,11 @@
// $c->admin_email = 'andrew@catalyst.net.nz';
// $c->system_name = "Really Simple CalDAV Store";
- if ( ! $dbconn = pg_Connect("port=5433 dbname=caldav user=general") ) {
- if ( ! $dbconn = pg_Connect("port=5432 dbname=caldav user=general") ) {
- echo "
Database Error
- Database Error
- Could not connect to PGPool or to Postgres
-
- ";
- exit;
- }
- }
+ $c->pg_connect[] = 'dbname=rscds port=5433 user=general';
+ $c->pg_connect[] = 'dbname=rscds port=5432 user=general';
$c->dbg['vevent'] = 1;
$c->dbg['put'] = 1;
$c->dbg['report'] = 1;
-
?>
\ No newline at end of file
diff --git a/debian/changelog b/debian/changelog
index 25be80b0..b0701598 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+rscds (0.1.3) unstable; urgency=low
+
+ * Hopefully now fairly much ready to install.
+
+ -- Andrew McMillan Wed, 13 Sep 2006 14:10:31 +1200
+
rscds (0.1.2) unstable; urgency=low
* Add alternative depends on postgresql-client so we can install this on a
diff --git a/htdocs/client_configuration_help.php b/htdocs/client_configuration_help.php
new file mode 100644
index 00000000..35ada2bd
--- /dev/null
+++ b/htdocs/client_configuration_help.php
@@ -0,0 +1,27 @@
+LoginRequired();
+
+$c->title = "Really Simple CalDAV Store - Configuration Help";
+include("page-header.php");
+
+$username = ( $session->user_no > 0 ? $session->username : "username" );
+
+echo <<$c->title
+Evolution
+
+
+- Type:CalDAV
+- Name:Give the calendar a local name
+- URL:caldav://server.domain.name/caldav.php/$username
+- Use SSL:if your server is using SSL you should check this
+- Username:$username
+
+
+EOBODY;
+
+include("page-header.php");
+
+?>
\ No newline at end of file
diff --git a/htdocs/index.php b/htdocs/index.php
index 1368298f..2b21499d 100644
--- a/htdocs/index.php
+++ b/htdocs/index.php
@@ -3,16 +3,17 @@ require_once("always.php");
require_once("RSCDSSession.php");
$session->LoginRequired();
-?>
-
-
-
-Really Simple CalDAV Store
-
-
+include("page-header.php");
+
+ echo <<These are the admin pages...
-You appear to be logged on as $session->username ($session->fullname)";
-?>
-
-
\ No newline at end of file
+You appear to be logged on as $session->username ($session->fullname)
+Useful links:
+
+
+EOBODY;
+
+include("page-footer.php");
+?>
\ No newline at end of file
diff --git a/htdocs/rscds.css b/htdocs/rscds.css
new file mode 100644
index 00000000..4b72a177
--- /dev/null
+++ b/htdocs/rscds.css
@@ -0,0 +1,8 @@
+/* Basic overridable CSS for Really Simple CalDAV Store */
+
+span.prompt {
+ font-weight: bold;
+ width: 12em;
+ padding-right: 1em;
+ display: block;
+}
\ No newline at end of file
diff --git a/inc/always.php b/inc/always.php
index 3b9f3b99..e349420c 100644
--- a/inc/always.php
+++ b/inc/always.php
@@ -58,9 +58,30 @@ else {
exit;
}
-// In case this was forced in the configuration file
+/**
+* Attempt to connect to the configured connect strings
+*/
+$dbconn = false;
+foreach( $c->pg_connect AS $k => $v ) {
+ if ( !$dbconn ) $dbconn = pg_Connect($v);
+}
+if ( ! $dbconn ) {
+ echo <<Database Error
+Database Error
+Could not connect to PGPool or to Postgres
+
+