dd248b3423669b58a501183a434a72c239d1b1f2
[atutor.git] / mods / atutor_opencaps / opencaps / include / config.inc.php
1 <?php\r
2 /*\r
3  * OpenCaps\r
4  * http://opencaps.atrc.utoronto.ca\r
5  * \r
6  * Copyright 2009 Heidi Hazelton\r
7  * Adaptive Technology Resource Centre, University of Toronto\r
8  * \r
9  * Licensed under the Educational Community License (ECL), Version 2.0. \r
10  * You may not use this file except in compliance with this License.\r
11  * http://www.opensource.org/licenses/ecl2.php\r
12  * \r
13  */\r
14 \r
15 /* edit with correct values and copy to /include/config.inc.php */\r
16 \r
17 \r
18 /* general config */\r
19 define('MAX_FILE_SIZE', '10485760'); //10M\r
20 define('DISABLE_LOCAL', true);\r
21 define('ACTIVE_SYSTEM', '1');\r
22 \r
23 /* mysql config */\r
24 define('DB_USER',               '');\r
25 define('DB_PASSWORD',   '');\r
26 define('DB_HOST',               'localhost');\r
27 define('DB_PORT',               '3306');\r
28 define('DB_NAME',       'opencaps');\r
29 define('ACTIVE_SYSTEM', '1');\r
30 define('MODULE_MODE_ON', true);\r
31 define('OC_DEBUG_MODE_ON', false);\r
32 \r
33 /*\r
34  * added by Anto\r
35  */\r
36 if(!isset($_SESSION['atutor_base_url']))\r
37 {\r
38         if(isset($_GET['athome']) && $_GET['athome']!='')\r
39         {\r
40                 $_SESSION['atutor_base_url'] = $_GET['athome'];\r
41         } else {\r
42                 $_SESSION['atutor_base_url'] = '';\r
43         }\r
44 }\r
45 $systems[1]['url'] = $_SESSION['atutor_base_url'].'/mods/AtOpenCaps/service.php';\r
46 $systems[1]['name'] = 'atutor';\r
47 $systems[1]['type'] = 'atutor';\r
48 ?>