-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.sample.php
More file actions
62 lines (51 loc) · 1.75 KB
/
Copy pathconfig.sample.php
File metadata and controls
62 lines (51 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
/**
* Since we can't store arrays as constants until PHP 5.6, we'll use this `$calendars` hash
* to store the calendar name and ID and serialize it into a constant. When we need it, we
* can just unserialize it.
*
* Big-ups to http://stackoverflow.com/a/1290388
*
* ex.
* $calendars = array(
* 'Library Hours' => 'hours_email_address@gmail.com',
* 'Another Room' => 'asbcaosd2q90fu9awojeq2@groups.google.com'
* );
*/
$calendars = array();
/**
* Google apps API key (I'm not 100% sure if you have to specifically register for
* Google Calendars or if it's a one-stop-shop kind of thing.)
*/
define("GOOGLE_API_KEY", "");
/**
* Do we want to display meta info about the event? If true, the feed will include
* a hash with the following keys:
* 'type' => // type of calendar, as of now will always be 'google'
* 'id' => // id of the event
* 'url' => // url to event
*/
define("DISPLAY_CALENDAR_META", false);
/**
* formatting related constants to be used w/in PHP's `date()` function
*
* "l, F jS" => "Wednesday, January 7th"
* "h:i a" => 09:00 am
*
* note: using "D." will abbreviate the day (eg. "Wed.")
* note: using "M." will abbreviate the month (eg. "Jan.")
* see: http://php.net/manual/en/function.date.php
*/
define("DAY_FORMAT", "l, F jS");
define("HOUR_FORMAT", "g:i a");
/**
* Where to store the static JSON files. Defaults to the current directory in a folder named `json`.
*
* NOTE: if using this from within cron, you'll want to make sure that the path is absolute,
* as cron executes from the root folder.
*/
define('OUTPUT_LOCATION', dirname(__FILE__) . "/json")
/**
* And yeah, leave this one be
*/
define("CALENDARS_SERIALIZED", serialize($calendars));