Skip to content

Commit 709eb19

Browse files
committed
Merge branch 'master' into no-standard-sqlite-db
2 parents 30165f1 + 17ee76b commit 709eb19

File tree

16 files changed

+137
-883
lines changed

16 files changed

+137
-883
lines changed

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,9 @@ Specific/virtualhosts/baikal.apache2
1010
# Composer stuff
1111
composer.lock
1212
vendor
13+
14+
# Build
15+
/build
16+
17+
# Vim
18+
.*.swp

CHANGELOG.md

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
ChangeLog
2+
=========
3+
4+
0.3.0 (????-??-??)
5+
------------------
6+
7+
* Now requires PHP 5.5.
8+
* Upgraded to sabre/dav 3.1
9+
* Support for WebDAV-Sync.
10+
* Support for Calendar subscriptions.
11+
* Support for iCalender and vCard export plugins.
12+
* Created a central `dav.php` that does both carddav and caldav. `cal.php`
13+
and `card.php` are still there, but will be removed in a future version.
14+
* Added ability for users to change the calendar color.
15+
* Moved server logic to a new class: `Baikal\Core\Server`.
16+
* List of timezones is not generated from `DateTimeZone` class.
17+
* Simplified packaging scripts into a Makefile.
18+
* Fixed: bug when using a MySQL schema name that contains a whitespace.
19+
* Twig is now a composer dependency.
20+
* Moved documentation to sabre.io.
21+
22+
23+
0.2.7 (2014-02-02)
24+
------------------
25+
26+
* @jeromeschneider: New error detection: composer has not been installed.
27+
* @Busch: added rewrite rules for apache2 hosts.
28+
* @jeromeschneider: Corrected the http/https protocol detection.
29+
* @josteink, @janpieper, @jaltek, @Jentsch, @GeeF and @fhemberger: Improved
30+
INSTALL.md.
31+
* @janpieper: Added CalDAV and CardDAV instructions for BlackBerry OS 10.
32+
* James Lay: Add Quick & Dirty install guide for Ubuntu 12.04 in INSTALL.md.
33+
* @torzak: Auth more compatible with Synology software.
34+
* @skyhook19: Added Thunderbird CardDAV setup instructions.
35+
* @cimm: Update OS X and iOS installation instructions.
36+
* @Jentsch: Removing eXecutable flag from non executables like text files or
37+
php scripts.
38+
* @Jentsch: Adding eXecutable flag to a bash script.
39+
* @altima: Improved CardDAV and CalDAV auth compatibility with Windows Phones.
40+
* @fhemberger: Make calendar description optional.
41+
* @fhemberger: Make HTML5 shiv a local resource.
42+
* @fhemberger: Improve application security.
43+
* @janpieper and @evert: Fixing #139: Prevent PHP from parsing your MySQL
44+
credentials.
45+
* Ships with sabre/dav 1.8.6
46+
47+
48+
0.2.6 (2013-07-07)
49+
------------------
50+
51+
* No changes
52+
* Ships with sabre/dav 1.8.6
53+
54+
55+
0.2.5 (2013-07-07)
56+
------------------
57+
58+
* Baïkal releases are now based on composer thanks to @evert.
59+
* Formal and Flake are not longer submodules
60+
* Moved a few classes around.
61+
* Ships with sabre/dav 1.8.6
62+
63+
64+
0.2.4 (2012-11-18)
65+
------------------
66+
67+
* Ships with sabre/dav 1.8.0
68+
69+
70+
0.2.3 (2012-11-08)
71+
-----------------
72+
73+
* Ships with sabre/dav 1.5.7

ChangeLog.md

-27
This file was deleted.

Core/Frameworks/Baikal/Core/Server.php

+28-28
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
/**
3232
* The Baikal Server
3333
*
34-
* This class sets up the underlying Sabre\DAV\Server object.
34+
* This class sets up the underlying Sabre\DAV\Server object.
3535
*
3636
* @copyright Copyright (C) Jérôme Schneider <[email protected]>
3737
* @author Evert Pot (http://evertpot.com/)
@@ -41,63 +41,63 @@ class Server {
4141

4242
/**
4343
* Is CalDAV enabled?
44-
*
44+
*
4545
* @var bool
4646
*/
4747
protected $enableCalDAV;
4848

4949
/**
5050
* is CardDAV enabled?
51-
*
52-
* @var bool
51+
*
52+
* @var bool
5353
*/
5454
protected $enableCardDAV;
5555

5656
/**
57-
* "Basic" or "Digest"
58-
*
59-
* @var string
57+
* "Basic" or "Digest"
58+
*
59+
* @var string
6060
*/
6161
protected $authType;
6262

6363
/**
64-
* HTTP authentication realm
65-
*
66-
* @var string
64+
* HTTP authentication realm
65+
*
66+
* @var string
6767
*/
6868
protected $authRealm;
6969

7070
/**
71-
* Reference to Database object
72-
*
73-
* @var PDO
71+
* Reference to Database object
72+
*
73+
* @var PDO
7474
*/
7575
protected $pdo;
7676

7777
/**
78-
* baseUri for the sabre/dav server
79-
*
78+
* baseUri for the sabre/dav server
79+
*
8080
* @var string
8181
*/
8282
protected $baseUri;
8383

8484
/**
85-
* The sabre/dav Server object
86-
*
87-
* @var \Sabre\DAV\Server
85+
* The sabre/dav Server object
86+
*
87+
* @var \Sabre\DAV\Server
8888
*/
8989
protected $server;
9090

9191

9292
/**
93-
* Creates the server object.
94-
*
95-
* @param bool $enableCalDAV
96-
* @param bool $enableCardDAV
97-
* @param string $authType
98-
* @param string $authRealm
99-
* @param PDO $pdo
100-
* @param string $baseUri
93+
* Creates the server object.
94+
*
95+
* @param bool $enableCalDAV
96+
* @param bool $enableCardDAV
97+
* @param string $authType
98+
* @param string $authRealm
99+
* @param PDO $pdo
100+
* @param string $baseUri
101101
*/
102102
function __construct($enableCalDAV, $enableCardDAV, $authType, $authRealm, PDO $pdo, $baseUri) {
103103

@@ -114,7 +114,7 @@ function __construct($enableCalDAV, $enableCardDAV, $authType, $authRealm, PDO $
114114

115115
/**
116116
* Starts processing
117-
*
117+
*
118118
* @return void
119119
*/
120120
function start() {
@@ -145,7 +145,7 @@ protected function initServer() {
145145
$nodes[] = new \Sabre\CalDAV\CalendarRoot($principalBackend, $calendarBackend);
146146
}
147147
if ($this->enableCardDAV) {
148-
$carddavBackend = new \Sabre\CardDAV\Backend\PDO($GLOBALS["DB"]->getPDO());
148+
$carddavBackend = new \Sabre\CardDAV\Backend\PDO($GLOBALS["DB"]->getPDO());
149149
$nodes[] = new \Sabre\CardDAV\AddressBookRoot($principalBackend, $carddavBackend);
150150
}
151151

Core/Frameworks/Baikal/Scripts/package-flat.sh

-80
This file was deleted.

Core/Frameworks/Baikal/Scripts/package-regular.sh

-53
This file was deleted.

Core/Resources/Db/MySQL/db.sql

-8
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,6 @@ CREATE TABLE groupmembers (
117117
UNIQUE(principal_id, member_id)
118118
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
119119

120-
INSERT INTO principals (uri,email,displayname) VALUES
121-
('principals/admin', '[email protected]','Administrator'),
122-
('principals/admin/calendar-proxy-read', null, null),
123-
('principals/admin/calendar-proxy-write', null, null);
124-
125120
CREATE TABLE propertystorage (
126121
id INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
127122
path VARBINARY(1024) NOT NULL,
@@ -137,6 +132,3 @@ CREATE TABLE users (
137132
digesta1 VARBINARY(32),
138133
UNIQUE(username)
139134
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
140-
141-
INSERT INTO users (username,digesta1) VALUES
142-
('admin', '87fd274b7b6c01e48d7c2f965da8ddf7');

0 commit comments

Comments
 (0)