Skip to content
This repository was archived by the owner on May 29, 2024. It is now read-only.

Commit fcdcbc9

Browse files
Seth BattisSeth Battis
authored andcommitted
cURL
Signed-off-by: Seth Battis <[email protected]>
1 parent 44c4094 commit fcdcbc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sync.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
`id` = '{$schedule['calendar']}'
2727
");
2828
if ($calendar = $calendarResponse->fetch_assoc()) {
29-
shell_exec('php import.php ' . urlencode($calendar['ics_url']) . ' ' . urlencode($calendar['canvas_url']) . ' ' . urlencode($schedule['id']));
29+
shell_exec('curl -u ' . MYSQL_USER . ':' . MYSQL_PASSWORD . ' -k "https://skunkworks.stmarksschool.org/canvas/ics-sync/import.php?cal=' . urlencode($calendar['ics_url']) . '&canvas_url=' . urlencode($calendar['canvas_url']) . '&schedule=' . urlencode($schedule['id']) . '"');
3030
}
3131
}
3232

0 commit comments

Comments
 (0)