Skip to content
Extraits de code Groupes Projets
Valider ccd357bc rédigé par Animation des soirees's avatar Animation des soirees
Parcourir les fichiers

Add URL

parent 8a630008
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -19,14 +19,14 @@ X-WR-CALNAME:Sam events\n\n";
// get events
if (isset($_GET['nick'])) {
$events = $bdd->prepare('SELECT s.id, title, date, place, description
$events = $bdd->prepare('SELECT s.id, title, date, place, description, link
FROM sam s JOIN sam_users su ON s.id = su.event
WHERE nick = ?
ORDER BY date');
$events->execute(array($_GET['nick']));
}
else {
$events = $bdd->prepare('SELECT id, title, date, place, description
$events = $bdd->prepare('SELECT id, title, date, place, description, link
FROM sam
ORDER BY date');
$events->execute();
......@@ -43,6 +43,7 @@ DTEND:" . gmdate(DATE_ICAL, $event[2] + 5*3600) . "
SUMMARY:".str_replace(',', '\\,', $event[1])."
DESCRIPTION:".str_replace(',', '\\,', $event[4])."
LOCATION:".$event[3]."
URL:".$event[5]."
END:VEVENT\n\n";
}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter