-
Notifications
You must be signed in to change notification settings - Fork 29
/
config-example.php
executable file
·54 lines (45 loc) · 1.55 KB
/
config-example.php
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
<?php
// Display any php errors (for development purposes)
error_reporting(E_ALL);
ini_set('display_errors', '1');
/***************************/
/* TEMPLATE WIZARD CONFIG */
/***************************/
// The URL for where the "wizard" folder is located
$_SESSION['template_wizard_url'] = 'https://<path to wizard>/wizard';
require_once __DIR__.'/wizard/resources/blti.php';
require_once __DIR__.'/wizard/resources/cryptastic.php';
require_once __DIR__.'/wizard/resources/meekrodb2.2.class.php';
// Database connection information for Template Wizard
DB::$host ='';
DB::$user = '';
DB::$password = '';
DB::$dbName = '';
// Strings to help encrypt/decrypt user OAuth tokens
$pass = '';
$salt = '';
// Your Canvas OAuth2 Developer information. Used for getting OAuth tokens from users
$client_id = '#####';
$clientSecret = '######';
// The Shared Secret you use when setting up the Template Wizard LTI tool
$lti_secret = "###";
// Message to display if the OAuth token request fails
$oauth_error_message = 'There is a problem, contact someone to fix it';
// TEMPLATE ARRAY (templateName, minWidth,minHeight, ratioX,ratioY)
// This array is for customizing banner images for template themes
$templates = array (
array('kl_fp_horizontal_nav_2', 1050,312, 215,64),
array('kl_fp_panel_nav_2', 1050,312, 215,64),
array('kl_fp_squares_1x1', 320,320, 1,1),
array('kl_fp_circles_1x1', 320,320, 1,1)
);
// RATIO ARRAY (ratioX, ratioY)
$ratios = array (
array (1,1),
array(4,3),
array(5,4),
array(7,5),
array(3,2),
array(16,9)
);
?>