mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-04-28 15:40:14 +00:00
Ready to install this time?
This commit is contained in:
parent
9d67ee725a
commit
acc28c0faa
@ -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 "<html><head><title>Database Error</title></head><body>
|
||||
<h1>Database Error</h1>
|
||||
<h3>Could not connect to PGPool or to Postgres</h3>
|
||||
</body>
|
||||
</html>";
|
||||
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;
|
||||
|
||||
|
||||
?>
|
||||
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -1,3 +1,9 @@
|
||||
rscds (0.1.3) unstable; urgency=low
|
||||
|
||||
* Hopefully now fairly much ready to install.
|
||||
|
||||
-- Andrew McMillan <debian@mcmillan.net.nz> 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
|
||||
|
||||
27
htdocs/client_configuration_help.php
Normal file
27
htdocs/client_configuration_help.php
Normal file
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
require_once("always.php");
|
||||
require_once("RSCDSSession.php");
|
||||
$session->LoginRequired();
|
||||
|
||||
$c->title = "Really Simple CalDAV Store - Configuration Help";
|
||||
include("page-header.php");
|
||||
|
||||
$username = ( $session->user_no > 0 ? $session->username : "username" );
|
||||
|
||||
echo <<<EOBODY
|
||||
<h1>$c->title</h1>
|
||||
<h2>Evolution</h2>
|
||||
<p>
|
||||
<ol>
|
||||
<li><span class="prompt">Type:</span>CalDAV</li>
|
||||
<li><span class="prompt">Name:</span>Give the calendar a local name</li>
|
||||
<li><span class="prompt">URL:</span>caldav://server.domain.name/caldav.php/$username</li>
|
||||
<li><span class="prompt">Use SSL:</span>if your server is using SSL you should check this</li>
|
||||
<li><span class="prompt">Username:</span>$username</li>
|
||||
</ol>
|
||||
</p>
|
||||
EOBODY;
|
||||
|
||||
include("page-header.php");
|
||||
|
||||
?>
|
||||
@ -3,16 +3,17 @@ require_once("always.php");
|
||||
require_once("RSCDSSession.php");
|
||||
$session->LoginRequired();
|
||||
|
||||
?>
|
||||
<html>
|
||||
<head>
|
||||
<meta/>
|
||||
<title>Really Simple CalDAV Store</title>
|
||||
</head>
|
||||
<body>
|
||||
include("page-header.php");
|
||||
|
||||
echo <<<EOBODY
|
||||
<h1>These are the admin pages...</h1>
|
||||
<?php
|
||||
echo "<p>You appear to be logged on as $session->username ($session->fullname)</p>";
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
<p>You appear to be logged on as $session->username ($session->fullname)</p>
|
||||
<p>Useful links:
|
||||
<ul>
|
||||
<li><a href="/client_configuration_help.php">Help on configuring CalDAV clients with RSCDS</a></li>
|
||||
</ul>
|
||||
</p>
|
||||
EOBODY;
|
||||
|
||||
include("page-footer.php");
|
||||
?>
|
||||
8
htdocs/rscds.css
Normal file
8
htdocs/rscds.css
Normal file
@ -0,0 +1,8 @@
|
||||
/* Basic overridable CSS for Really Simple CalDAV Store */
|
||||
|
||||
span.prompt {
|
||||
font-weight: bold;
|
||||
width: 12em;
|
||||
padding-right: 1em;
|
||||
display: block;
|
||||
}
|
||||
@ -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 <<<EOERRMSG
|
||||
<html><head><title>Database Error</title></head><body>
|
||||
<h1>Database Error</h1>
|
||||
<h3>Could not connect to PGPool or to Postgres</h3>
|
||||
</body>
|
||||
</html>
|
||||
EOERRMSG;
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* Force the domain name to what was in the configuration file
|
||||
*/
|
||||
$_SERVER['SERVER_NAME'] = $c->domain_name;
|
||||
|
||||
|
||||
if ( !function_exists('apache_request_headers') ) {
|
||||
function apache_request_headers() {
|
||||
return getallheaders();
|
||||
|
||||
@ -0,0 +1,2 @@
|
||||
</body>
|
||||
</html>
|
||||
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
if ( !isset($c->title) ) {
|
||||
$c->title = "Really Simple CalDAV Store";
|
||||
}
|
||||
|
||||
echo <<<EOHDR
|
||||
<html>
|
||||
<head>
|
||||
<meta/>
|
||||
<title>$c->title</title>
|
||||
<link rel="stylesheet" type="text/css" href="/rscds.css" />
|
||||
</head>
|
||||
<body>
|
||||
EOHDR;
|
||||
|
||||
?>
|
||||
34
inc/rscds_configuration_missing.php
Normal file
34
inc/rscds_configuration_missing.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
include("page-header.php");
|
||||
|
||||
echo <<<EOBODY
|
||||
<h1>WRMS Not Configured</h1>
|
||||
<h2>The Bad News</h2>
|
||||
<p>There is no configuration file present in <b>/etc/rscds/$_SERVER[SERVER_NAME]-conf.php</b> so
|
||||
your installation is not fully set up.</p>
|
||||
<h2>The Good News</h2>
|
||||
<p>Well, you're seeing this! At least you have RSCDS <i>installed</i> :-) You also have Apache and PHP working
|
||||
and so really you are well on the road to success!</p>
|
||||
<h2>The Dubious News</h2>
|
||||
<p>You could try and <a href="http://$_SERVER[SERVER_NAME]/docs/rscds/configuring.html">click here</a> and
|
||||
see if that enlightens you at all. Odds are it's a fairly broken link, but it might work sooner
|
||||
or later so keep downloading new versions and trying again. Or make some guesses. Or bug Andrew :-)</p>
|
||||
<h2>The Really Basic Help</h2>
|
||||
<p>The configuration file should look something like this:</p>
|
||||
<pre>
|
||||
<?php
|
||||
// \$c->domainname = 'rscds.example.com';
|
||||
// \$c->sysabbr = 'rscds';
|
||||
// \$c->system_name = 'Really Simple CalDAV Store';
|
||||
|
||||
\$c->admin_email = 'admin@example.com';
|
||||
\$c->pg_connect[] = 'dbname=rscds port=5432 user=general';
|
||||
|
||||
?>
|
||||
</pre>
|
||||
<p>The only really <em>essential</em> thing there is that connect string for the database, although
|
||||
configuring someone for the admin e-mail is a really good idea.</p>
|
||||
EOBODY;
|
||||
|
||||
include("page-footer.php");
|
||||
?>
|
||||
15
rscds.webprj
15
rscds.webprj
@ -28,11 +28,14 @@
|
||||
<item url="inc/vEvent.php" uploadstatus="1" />
|
||||
<item url="debian/" uploadstatus="1" />
|
||||
<item url="debian/rules" uploadstatus="1" />
|
||||
<item url="dba/rscds.sql" />
|
||||
<item url="htdocs/freebusy.php" />
|
||||
<item url="htdocs/index.php" />
|
||||
<item url="inc/RSCDSSession.php" />
|
||||
<item url="inc/page-header.php" />
|
||||
<item url="inc/page-footer.php" />
|
||||
<item url="dba/rscds.sql" uploadstatus="1" />
|
||||
<item url="htdocs/freebusy.php" uploadstatus="1" />
|
||||
<item url="htdocs/index.php" uploadstatus="1" />
|
||||
<item url="inc/RSCDSSession.php" uploadstatus="1" />
|
||||
<item url="inc/page-header.php" uploadstatus="1" />
|
||||
<item url="inc/page-footer.php" uploadstatus="1" />
|
||||
<item url="inc/rscds_configuration_missing.php" />
|
||||
<item url="htdocs/client_configuration_help.php" />
|
||||
<item url="htdocs/rscds.css" />
|
||||
</project>
|
||||
</webproject>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user