Location: PHPKode > projects > Whiteboard > whiteboard1.0.3/setup.php
<?php
/*****************************************************************************
 * basic settings--be absolutely sure that these are correct (although they  *
 * may all be changed later without clearing the system)                     *
 *****************************************************************************/

define ("SYSTEMSHORTNAME", "Whiteboard");
define ("SYSTEMLONGNAME", "Whiteboard Courseware System");
define ("CUSTOMIZEDBY", "Your Name");
define ("CUSTOMIZEDFOR", "Your Site's Name");

/*it is best to give a full path for these in case they are not in PHP's search
  path, and to ensure that they aren't aliased (i.e. 'rm' to 'rm -i'); make
  sure that these are the locations of these programs on the web server (not
  just on the machine that you are using) and that they are executable by the
  web server user
*/
/*UNIX "mv" command*/
define ("MVCOMMAND", "/bin/mv");
/*UNIX "cp" command*/
define ("CPCOMMAND", "/bin/cp");
/*UNIX "rm" command*/
define ("RMCOMMAND", "/bin/rm");
/*UNIX "find" command*/
define ("FINDCOMMAND", "/bin/find");
/*UNIX "zip" command*/
define ("ZIPCOMMAND", "/usr/bin/zip");
/*UNIX "file" command--make sure that this supports -i for MIME types (if not,
  download one that does from ftp://ftp.astron.com/pub/file/
*/
define ("FILECOMMAND", "/usr/bin/file");

/*style sheet--PATHTOHTTPROOT (has slash at end) denotes web-accessible root
  of system
*/
define ("STYLESHEET", PATHTOHTTPROOT . "include/style.css");

/*school link below logo on sidebar and in top icon bar*/
define ("SCHOOLLINKTEXT", "School Home");
define ("SCHOOLLINKADDRESS", "yourschoolwebaddress");
/*PATHTOHTTPROOT (has slash at end) denotes web-accessible root of system*/
define ("SCHOOLLINKICON", PATHTOHTTPROOT . "images/apple.gif");
/*it is highly recommended to leave this height at 18--all other top icons have
 this same height
*/
define ("SCHOOLLINKICONHEIGHT", "18");
define ("SCHOOLLINKICONWIDTH", "16");
define ("SCHOOLLINKICONALTTEXT", "School Home");

/*optional second link on sidebar below school link--leave empty for none*/
define ("SECONDLINKTEXT", "");
define ("SECONDLINKADDRESS", "");

/*system logo at top of sidebar*/
/*PATHTOHTTPROOT (has slash at end) denotes web-accessible root of system*/
define ("LOGO", PATHTOHTTPROOT . "images/whiteboard.png");
/*it is highly recommended to leave this width at 188 unless you also change
  the sidebar width below
*/
define ("LOGOWIDTH", "188");
define ("LOGOHEIGHT", "188");
define ("LOGOALTTEXT", "Whiteboard");
/*address associated with clicking on logo--leave blank for none*/
define ("LOGOLINKADDRESS", "http://whiteboard.sourceforge.net");

/*NetID (username) description (will be used instead of "NetID")*/
define ("NETIDDESCRIPTION", "NetID");
/*login page will show "PASSWORDDESCRIPTION Password" (or just "Password" if
  PASSWORDDESCRIPTION is empty)
*/
define ("PASSWORDDESCRIPTION", "UNIX");

/*YP domain (username/password authentication)--ignore if you changed 
  authinclude.php to use something other than YP
*/
define ("YPDOMAIN", "yourypdomain");
/*assignment submission confirmation sent to hide@address.com*/
define ("EMAILDOMAIN", "yourdomain");

/*first administrator settings (only used if no administrators exist)*/
define ("FIRSTADMINISTRATORNETID", "admin");
define ("FIRSTADMINISTRATORLASTNAME", "YourLastName");
define ("FIRSTADMINISTRATORFIRSTNAME", "YourFirstName");
/*may be empty*/
define ("FIRSTADMINISTRATOROFFICE", "");

/*allow user to clear system (must be an administrator)--leave blank for none*/
define ("ALLOWTOCLEARSYSTEM", "");


/*****************************************************************************
 * database and file system settings--make sure that if you change one of    *
 * these in a way that effectively clears one component of the system (the   *
 * file system or database) after information has been stored, you also      *
 * clear the other component                                                 *
 *****************************************************************************/

/*database settings (MySQL)*/
define ("DATABASEHOST", "yourmysqlserver");
define ("DATABASENAME", "whiteboard");
define ("DATABASEUSERNAME", "whiteboard");
define ("DATABASEPASSWORD", "yourpassword");

/*root directory for courses--directory must exist and be readable/writable by
  web server
*/
define ("COURSESDIR", "/whiteboard/courses");
/*temp directory--directory must exist and be readable/writable by web server*/
define ("TEMPDIR", "/whiteboard/tmp");
/*fatal-error (important) log--directory in which this is to be written must
  be writable by web server
*/
define ("ERRORLOG", "/whiteboard/errors.log");


/*****************************************************************************
 * changing items below this point will corrupt the system--only change them *
 * if the database and system directories above are empty                    *
 *****************************************************************************/

/*department length--do not use 0*/
define ("DEPARTMENTLENGTH", 3);

/*NetID min and max lengths--do not use 0*/
define ("NETIDMINLENGTH", 1);
define ("NETIDMAXLENGTH", 8);

/*length (in chars) of longest allowed (course-specific) sidebar link--do not
  use 0
*/
define ("SIDEBARLINKMAXLENGTH", 25);

/*length (in chars) of long, normal, and short database text fields--do not
  use 0
*/
define ("LONGTEXTFIELDLENGTH", 200);
define ("NORMALTEXTFIELDLENGTH", 80);
define ("SHORTTEXTFIELDLENGTH", 20);

/*width (in chars) of each line of announcements, document comments, and
  discussion board descriptions and messages--do not decrease this to a
  number smaller than the maximum number of characters per line in existing
  announcements
*/
define ("TEXTAREAWIDTH", 95);

/*****************************************************************************
 * misc user settings                                                        *
 *****************************************************************************/

/*override login (netid) for testing purposes--leave blank for normal operation
  if OVERRIDEUSER != "" and OVERRIDETO != "", OVERRIDEUSER will get logged in
  as OVERRIDETO instead; if OVERRIDEUSER == "" and OVERRIDETO != "", everyone
  will get logged in as OVERRIDETO automatically
*/
define ("OVERRIDEUSER", "");
define ("OVERRIDETO", "");

/*set to true to disable all changes by users with student permissions
  (file submission, deletion, permanent deletion, and restoration; submission
  testing; and discussion board posting)
*/
define ("DEMOMODE", false);


/*****************************************************************************
 * misc global appearance settings                                           *
 *****************************************************************************/

/*colors in RRGGBB format--no # in front*/
define ("SIDEBARBORDERCOLOR", "000000");
define ("SIDEBARBACKGROUNDCOLOR", "000000");
define ("SIDEBARCOURSECOLOR", "FFFFFF");
define ("SIDEBARTEXTCOLOR", "FFFFFF");
define ("SIDEBARLINKCOLOR", "FFFFFF");
define ("PAGEBACKGROUNDCOLOR", "FFFFFF");
define ("DEFAULTTABLEBORDERCOLOR", "000000");
define ("DEFAULTTABLETOPCOLOR", "C0C0C0");
define ("DEFAULTTABLEBOTTOMCOLOR", "D3D3D3");
define ("DEFAULTTABLECOLOR1", "FFFFFF");
define ("DEFAULTTABLECOLOR2", "F0F0F0");
define ("DEFAULTERRORCOLOR", "FF0000");
define ("DEFAULTMESSAGECOLOR", "000000");

/*page sizes in pixels*/
define ("LINKBARHEIGHT", "20");
define ("SIDEBARWIDTH", "188");
define ("GUTTERWIDTH", "5");
define ("PAGEWIDTH", "612");
define ("LINKBARFRAMEHEIGHT", "25");
define ("SIDEBARFRAMEWIDTH", "230");


/*****************************************************************************
 * misc module settings                                                      *
 *****************************************************************************/

/*number of histograms per row*/
define ("NUMHISTOGRAMSPERROW", "2");
/*height of bar portion of histogram in pixels (10 times given value)*/
define ("HISTOGRAMHEIGHT", "25");
/*maximum number of bars in numeric (non-letter-grade) histogram*/
define ("HISTOGRAMCOLUMNS", "10");
/*histogram colors in RRGGBB format--no # in front*/
define ("HISTOGRAMBACKGROUNDCOLOR", "FFFFFF");
define ("HISTOGRAMTITLECOLOR", "000000");
define ("HISTOGRAMTEXTCOLOR", "000000");
define ("IMAGEHISTOGRAMBORDERCOLOR", "000000");
define ("IMAGEHISTOGRAMBARBORDERCOLOR", "000000");
/*image histogram type--accepted values are png, gif, jpg, and jpeg--note that
  the server must have support for the given type compiled into PHP (it is most
  likely to have png and jpg/jpeg)
*/
define ("IMAGEHISTOGRAMTYPE", "png");
/*image histogram measurements in pixes*/
define ("IMAGEHISTOGRAMBORDER", "10");
define ("IMAGEHISTOGRAMTEXTOFFSET", "10");
define ("IMAGEHISTOGRAMBARWIDTH", "25");
define ("IMAGEHISTOGRAMBARSPACING", "5");
/*image histogram fonts--use numbers (1-5) for PHP built-in fonts, give paths
  for true-type fonts
*/
define ("IMAGEHISTOGRAMTITLEFONT", 5);
//define ("IMAGEHISTOGRAMTITLEFONT", "/whiteboard/fonts/SF Old Republic v2.0/SF Old Republic Bold.ttf");
define ("IMAGEHISTOGRAMFONT", 5);
//define ("IMAGEHISTOGRAMFONT", "/whiteboard/fonts/SF Grandezza v1.0/SF Grandezza Medium Oblique.ttf");
/*image histogram font sizes (for both true-type and built-in fonts)*/
define ("IMAGEHISTOGRAMTITLEFONTSIZE", 13);
define ("IMAGEHISTOGRAMFONTSIZE", 10);

/*enable/disable discussion board search*/
define ("DISCUSSIONSEARCH", false);

/*default max assignment total upload size (includes size of deleted files if
  students are permitted to manage deleted files)
*/
define ("DEFAULTMAXSPACE", 100000);
?>
Return current item: Whiteboard