This website works better with JavaScript.
Home
Help
Sign In
ESIR
/
KiWi-Calendar
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
updated database
master
n0m1s
11 years ago
parent
7e574f6ff1
commit
bb73afc00b
3 changed files
with
3 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-2
calendar.php
+1
-1
getEvents.php
BIN
testdb.db
+ 2
- 2
calendar.php
View File
@ -4,8 +4,8 @@
# header("Location:.");
# exit;
# }
header
(
'Content-type: text/calendar; charset=utf-8'
);
header
(
'Content-Disposition: inline; filename=kiwicalendar.ics'
);
# header(
'Content-type: text/calendar; charset=utf-8');
# header(
'Content-Disposition: inline; filename=kiwicalendar.ics');
include
(
"
./getEvents.php
"
);
$icalheader
=
"
BEGIN:VCALENDAR
+ 1
- 1
getEvents.php
View File
@ -15,7 +15,7 @@
echo
(
"
Impossible d'acceder à la base de donnée
"
);
die
();
}
$stmt
=
$pdo
->
prepare
(
"
SELECT
* FROM events
"
);
$stmt
=
$pdo
->
prepare
(
"
SELECT
titre, localisation, dtstart, dtend, description FROM events, categorie WHERE events.categorie = categorie.id
"
);
$stmt
->
execute
();
$result
=
$stmt
->
fetchAll
();
return
$result
;
BIN
testdb.db
View File
Write
Preview
Loading…
Cancel
Save