| 1 | #!perl |
1 | #!perl |
| 2 | ################################################################################ |
2 | ################################################################################ |
| 3 | # WeBWorK Online Homework Delivery System |
3 | # WeBWorK Online Homework Delivery System |
| 4 | # Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/ |
4 | # Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/ |
| 5 | # $CVSHeader: webwork2/conf/global.conf.dist,v 1.103 2004/09/10 22:03:26 sh002i Exp $ |
5 | # $CVSHeader: webwork2/conf/global.conf.dist,v 1.104 2004/09/11 06:15:14 sh002i Exp $ |
| 6 | # |
6 | # |
| 7 | # This program is free software; you can redistribute it and/or modify it under |
7 | # This program is free software; you can redistribute it and/or modify it under |
| 8 | # the terms of either: (a) the GNU General Public License as published by the |
8 | # the terms of either: (a) the GNU General Public License as published by the |
| 9 | # Free Software Foundation; either version 2, or (at your option) any later |
9 | # Free Software Foundation; either version 2, or (at your option) any later |
| 10 | # version, or (b) the "Artistic License" which comes with this package. |
10 | # version, or (b) the "Artistic License" which comes with this package. |
| … | |
… | |
| 337 | # with the /other/ timing log which can be set by WeBWorK::Timing and is used |
337 | # with the /other/ timing log which can be set by WeBWorK::Timing and is used |
| 338 | # for benchmarking system performance in general. At some point, this timing |
338 | # for benchmarking system performance in general. At some point, this timing |
| 339 | # mechanism will be deprecated in favor of the WeBWorK::Timing mechanism.) |
339 | # mechanism will be deprecated in favor of the WeBWorK::Timing mechanism.) |
| 340 | $webworkFiles{logs}{timing} = "$webworkDirs{logs}/timing.log"; |
340 | $webworkFiles{logs}{timing} = "$webworkDirs{logs}/timing.log"; |
| 341 | |
341 | |
|
|
342 | # Logs courses created via the web-based Course Administration module. |
|
|
343 | $webworkFiles{logs}{hosted_courses} = "$webworkDirs{logs}/hosted_courses.log"; |
|
|
344 | |
| 342 | # The transaction log contains data from each recorded answer submission. This |
345 | # The transaction log contains data from each recorded answer submission. This |
| 343 | # is useful if the database becomes corrupted. |
346 | # is useful if the database becomes corrupted. |
| 344 | $webworkFiles{logs}{transaction} = "$courseDirs{logs}/transaction.log"; |
347 | $webworkFiles{logs}{transaction} = "$courseDirs{logs}/transaction.log"; |
| 345 | |
348 | |
| 346 | # The answer log stores a history of all users' submitted answers. |
349 | # The answer log stores a history of all users' submitted answers. |
| … | |
… | |
| 551 | # USE DvipngDepths; |
554 | # USE DvipngDepths; |
| 552 | # CREATE TABLE depths (md5 CHAR(33) NOT NULL, depth SMALLINT, PRIMARY KEY (md5)); |
555 | # CREATE TABLE depths (md5 CHAR(33) NOT NULL, depth SMALLINT, PRIMARY KEY (md5)); |
| 553 | # GRANT ALL ON DvipngDepths.* TO webworkWrite; |
556 | # GRANT ALL ON DvipngDepths.* TO webworkWrite; |
| 554 | # |
557 | # |
| 555 | # In the last statement, "webworkWrite" should match the user below. |
558 | # In the last statement, "webworkWrite" should match the user below. |
|
|
559 | # FIXME: this database can become a table in the 'webwork' database |
| 556 | dvipng_depth_db => { |
560 | dvipng_depth_db => { |
| 557 | dbsource => 'dbi:mysql:DvipngDepths', |
561 | dbsource => 'dbi:mysql:DvipngDepths', |
| 558 | user => $dbLayouts{sql}->{password}->{params}->{usernameRW}, |
562 | user => $dbLayouts{sql}->{password}->{params}->{usernameRW}, |
| 559 | passwd => $dbLayouts{sql}->{password}->{params}->{passwordRW}, |
563 | passwd => $dbLayouts{sql}->{password}->{params}->{passwordRW}, |
| 560 | }, |
564 | }, |