Customizing the default web site

When you create a BOINC project using make_project, a web site is created for you. This consists of a front page (html/user/index.php) and a number of pages that let users log in, edit preferences, create profiles, and so on.

Before your project goes public, you'll want to edit this web site in various ways:

Some of this customization can be done by editing the main page (index.php) and the stylesheet (white.css). Other aspects are changed using a configuration file.

Web configuration file

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 this directory under CVS and put all project-specific web files there (create symbolic links from html/inc and html/user).

project.inc is generated by make_project with default values. It includes constants: "; list_start(); list_item("PROJECT", "The name of your project"); list_item("MASTER_URL", "Your project's master URL"); list_item("URL_BASE", "Base URL for web pages"); list_item("STYLESHEET", "Name of stylesheet file"); list_item("COPYRIGHT_HOLDER", "Name of copyright holder"); list_item("SYS_ADMIN_EMAIL", "Users are directed here if they have complaints about message-board moderation. Also, messages about user-of-the-day running low are sent here. "); list_item("FORUM_MODERATION_EMAIL_USER_ID", "Moderation-related emails (such as user complaints) are sent here. "); list_item("INVITE_CODES", "regular expression used for controlling account creation. "); list_item("EMAIL_FROM", "'from' address for emails"); list_item("EMAIL_FROM_NAME", "'from' name for emails"); list_end(); echo " and variables: "; list_start(); list_item("USE_PHPMAILER", "Set to true if you use PHPMailer. In this case you must download PHPMailer and put it (i.e. the directory 'phpmailer') in your html/inc directory. "); list_item("PHPMAILER_HOST", "The Host argument to PHPMailer; typically a semicolon-separated list of SMTP servers. "); list_item("PHPMAIL_MAILER", "The Mailer argument to PHPMailer; typically 'sendmail', 'mail', or 'smtp'. "); list_end(); echo " and functions: "; list_start(); list_item("project_banner($title)", "prints page header"); list_item("project_banner()", "prints page footer"); list_item("show_profile_heading1(), show_profile_heading2()", "text on user profile page"); list_item("show_profile_question1(), show_profile_question2()", "text on user profile page"); list_end(); page_tail(); ?>