08066dac0a45a96ed6d208ba76864f2a59d8f5a9
[atutor.git] / docs / install / update_config.php
1 <?php\r
2 exit;\r
3 define('AT_INCLUDE_PATH', '../include/');\r
4 require(AT_INCLUDE_PATH.'vitals.inc.php');\r
5 \r
6 \r
7 $sql = "REPLACE INTO ".TABLE_PREFIX."config VALUES ('contact_email', '".EMAIL."')";\r
8 mysql_query($sql, $db);\r
9 \r
10 $sql = "REPLACE INTO ".TABLE_PREFIX."config VALUES ('email_notification', '".(int) EMAIL_NOTIFY."')";\r
11 mysql_query($sql, $db);\r
12 \r
13 $sql = "REPLACE INTO ".TABLE_PREFIX."config VALUES ('allow_instructor_requests', '".(int) ALLOW_INSTRUCTOR_REQUESTS."')";\r
14 mysql_query($sql, $db);\r
15 \r
16 $sql = "REPLACE INTO ".TABLE_PREFIX."config VALUES ('auto_approve_instructors', '".(int) AUTO_APPROVE_INSTRUCTORS."')";\r
17 mysql_query($sql, $db);\r
18 \r
19 $sql = "REPLACE INTO ".TABLE_PREFIX."config VALUES ('max_file_size', '".(int) $MaxFileSize."')";\r
20 mysql_query($sql, $db);\r
21 \r
22 $sql = "REPLACE INTO ".TABLE_PREFIX."config VALUES ('max_course_size', '".(int) $MaxCourseSize."')";\r
23 mysql_query($sql, $db);\r
24 \r
25 $sql = "REPLACE INTO ".TABLE_PREFIX."config VALUES ('max_course_float', '".(int) $MaxCourseFloat."')";\r
26 mysql_query($sql, $db);\r
27 \r
28 $sql = "REPLACE INTO ".TABLE_PREFIX."config VALUES ('illegal_extentions', '".implode('|',$IllegalExtentions)."')";\r
29 mysql_query($sql, $db);\r
30 \r
31 $sql = "REPLACE INTO ".TABLE_PREFIX."config VALUES ('site_name', '".SITE_NAME."')";\r
32 mysql_query($sql, $db);\r
33 \r
34 $sql = "REPLACE INTO ".TABLE_PREFIX."config VALUES ('home_url', '".HOME_URL."')";\r
35 mysql_query($sql, $db);\r
36 \r
37 $sql = "REPLACE INTO ".TABLE_PREFIX."config VALUES ('default_language', '".DEFAULT_LANGUAGE."')";\r
38 mysql_query($sql, $db);\r
39 \r
40 $sql = "REPLACE INTO ".TABLE_PREFIX."config VALUES ('cache_dir', '".CACHE_DIR."')";\r
41 mysql_query($sql, $db);\r
42 \r
43 $sql = "REPLACE INTO ".TABLE_PREFIX."config VALUES ('enable_category_themes', '".(int) AT_ENABLE_CATEGORY_THEMES."')";\r
44 mysql_query($sql, $db);\r
45 \r
46 $sql = "REPLACE INTO ".TABLE_PREFIX."config VALUES ('course_backups', '".(int) AT_COURSE_BACKUPS."')";\r
47 mysql_query($sql, $db);\r
48 \r
49 $sql = "REPLACE INTO ".TABLE_PREFIX."config VALUES ('email_confirmation', '".(int) AT_EMAIL_CONFIRMATION."')";\r
50 mysql_query($sql, $db);\r
51 \r
52 $sql = "REPLACE INTO ".TABLE_PREFIX."config VALUES ('master_list', '".(int) AT_MASTER_LIST."')";\r
53 mysql_query($sql, $db);\r
54 \r
55 $sql = "REPLACE INTO ".TABLE_PREFIX."config VALUES ('enable_handbook_notes', '".(int) AT_ENABLE_HANDBOOK_NOTES."')";\r
56 mysql_query($sql, $db);\r
57 \r
58 ?>