Completed
Push — develop ( 879d74...52dce9 )
by Seth
04:03
created

config.inc.php (1 issue)

Severity

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
/* this will break if there are mod_rewrites, but will do for now... */
4
define('APP_URL', 'http://' . $_SERVER['SERVER_NAME'] . str_replace(realpath($_SERVER['DOCUMENT_ROOT']), '', realpath(__DIR__)));
5
define('APP_PATH', realpath(__DIR__));
6
7
/* customize generated pages */
8
define('SCHOOL_NAME', 'St. Mark&rsquo;s School');
9
define('SCHOOL_URL', 'http://www.stmarksschool.org');
10
define('SCHOOL_CANVAS_INSTANCE', 'https://stmarksschool.instructure.com');
11
define('SCHOOL_DEPT', 'Academic Technology');
12
define('SCHOOL_DEPT_URL', 'http://area51.stmarksschool.org');
13
define('SCHOOL_ADDRESS', '25 Marlboro Road, Southborough, Massachusetts, 01772');
14
define('SCHOOL_COLOR_LIGHT', 'white'); // masthead foreground
15
define('SCHOOL_COLOR_DARK', '#003359'); // masthead background and link colors
16
17
define('TOOL_NAME', 'Canvas Calendar &harr; ICS Tool');
18
define('TOOL_START_PAGE', dirname($_SERVER['PHP_SELF']));
19
20
define('LOCAL_TIMEZONE', 'US/Eastern'); // TODO:0 Can we detect the timezone for the Canvas instance and use it? issue:18
21
define('SEPARATOR', '_'); // used when concatenating information in the cache database
22
define('SYNC_TIMESTAMP_FORMAT', 'Y-m-d\TH:iP'); // same as CANVAS_TIMESTAMP_FORMAT, FWIW
23
24
define('WORKING_DIR', '/var/www-data/canvas/ics-sync/');
25
26
define('API_CLIENT_ERROR_RETRIES', 1);
27
define('API_SERVER_ERROR_RETRIES', 3);
28
29
?>
0 ignored issues
show
It is not recommended to use PHP's closing tag ?> in files other than templates.

Using a closing tag in PHP files that only contain PHP code is not recommended as you might accidentally add whitespace after the closing tag which would then be output by PHP. This can cause severe problems, for example headers cannot be sent anymore.

A simple precaution is to leave off the closing tag as it is not required, and it also has no negative effects whatsoever.

Loading history...