Changes between Version 5 and Version 6 of WebConfig
- Timestamp:
- May 28, 2008, 1:21:01 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WebConfig
v5 v6 4 4 When you create a BOINC project using [MakeProject make_project], a web site is created for you. This consists of a front page (`html/user/index.php`), which links to pages where users can log in, edit preferences, create profiles, and so on. 5 5 6 Before your project goes public, you'll want to change this web site by adding content specific to your project, and by giving the web site a graphical identity specific to your project. 7 Make sure you do a good job; your web site has a large impact on your project's ability to [VolunteerRecruit recruit and retain participants]. 6 Before your project goes public, you'll want to change this web site by adding content 7 and giving the web site a graphical identity specific to your project. 8 Make sure you do a good job; 9 your web site has a large impact on your project's ability to 10 [VolunteerRecruit recruit and retain participants]. 8 11 9 Some of this customization can be done by editing the main page (`index.php`) and the stylesheet (`white.css`) files. Other aspects are changed using a configuration file, described below. 12 Some of this customization can be done by editing the main page (`index.php`) and the stylesheet (`white.css`) files. 13 Other aspects are changed using a configuration file, described below. 10 14 11 15 == Web configuration file == 12 The file `html/project/project.inc` serves as a configuration file for your web site. It exists in a separate directory (html/project) so that you can put all project-specific web files there (create symbolic links from `html/inc` and `html/user`). You can also put this directory under your own CVS to manage version control. 16 The file `html/project/project.inc` serves as a configuration file for your web site. 17 It exists in a separate directory (html/project) so that you can put all project-specific web files there 18 (create symbolic links from `html/inc` and `html/user`). 19 You should put this directory under version control (SVN or CVS). 13 20 14 21 The file `project.inc` is generated by [MakeProject make_project] with default values. 15 When you set up your project you need to edit this file to customize the constants and functions it contains.22 Edit this file to customize the constants and functions it contains. 16 23 17 18 To properly configure your project you need to set values for these constants: 24 Constants: 19 25 20 26 '''PROJECT''':: 21 27 The name of your project 22 28 '''MASTER_URL''':: 23 Your project's master URL 29 Your project's master URL (warning: if you change this, volunteers will have to detach/reattach your project) 24 30 '''URL_BASE''':: 25 31 Base URL for web pages (usually same as master URL) … … 29 35 Name of copyright holder 30 36 '''SYS_ADMIN_EMAIL''':: 31 Users are directed here if they 37 Users are directed here if they have complaints about message-board moderation. Also, messages about user-of-the-day running low are sent here. 32 38 '''FORUM_MODERATION_EMAIL_USER_ID''':: 33 39 Moderation-related emails (such as user complaints) are sent here. … … 39 45 'from' name for emails 40 46 41 You also need to customize these functions:47 Functions: 42 48 43 49 '''project_banner()''':: … … 55 61 '''project_user_page_private()''':: 56 62 Prints project-specific text on private user page 63 '''donations_intro()''':: 64 Displays customized donation information. Useful to describe what the project uses donations for, and project specific guides for donations. If function is not defined, standard donation information is displayed.html/user/donations.php. 65 '''project_rules_policies()''':: 66 Displays customized project rules and policies. If return value is ''true'', standard rules and policies are appended in the end. If function is not defined, default rules and policies are displayed. Return true to append default rules and policies. Should use PHP `echo()` to output text. Used inhtml/user/info.php. 57 67 58 If you want to use PHPMailer to send e-mail to project participants then you should set the following 59 constants to appropriate values. 68 To use PHPMailer (the preferred way to send emails to participants): 60 69 61 70 '''USE_PHPMAILER'''::