Update standards version & libawl dependencies.
[wrms.git] / config / config.php-default
blob5ef5c0c62c6d46bb34c71ae619f74015b934b174
1 <?php
3 // $dbconn = pg_Connect("dbname=wrms user=general");
4 $dbconn = pg_Connect("host=dewey.db port=5432 dbname=wrms user=general");
6 $admin_email = "wrms@catalyst.net.nz";
7 $basefont = "verdana,sans-serif";
8 $system_name = "Catalyst WRMS";
9 $sysabbr = "wrms";
11 // Only admin/support can see the ranking report.
12 $rank_report_anyone = 0;
14 $base_dns = "http://$HTTP_HOST";
15 $base_url = "";
16 $external_base_url = $base_dns;
17 $base_dir = $DOCUMENT_ROOT;
18 $module = "base";
19 $images = "images";
20 $colors = array(
21         "bg1" => "#ffffff", // primary background
22         "fg1" =>  "#000000", // text on primary background
23         "link1" =>  "#660000", // Links on row0/row1
24         "bg2" =>  "#660000", // secondary background (behind menus)
25         "fg2" =>  "#ffffff", // text on links
26         "bg3" =>  "#000000", // tertiary background
27         "fg3" =>  "#ffffff", // tertiary foreground
28         "hv1" =>  "#660000", // text on hover
29         "hv2" =>  "#f0ff4c", // other text on hover
30         "row0" =>  "#ffffff", // dark rows in listings
31         "row1" =>  "#f0ece8", // light rows in listings
32         "link2" =>  "#333333", // Links on row0/row1
33         "bghelp" => "#ffffff", // help background
34         "fghelp" =>  "#000000", // text on help background
35         8 =>  "#583818", // Form headings
36         9 =>  "#ccbea1", // Mandatory forms
37         9 =>  "#ccbea1", // Mandatory forms
38         10 =>  "#50a070", // whatever!
39         10 =>  "#50a070", // whatever!
41 // Parts of a text block (default colors - some blocks might code around this
42                 "blockfront" => "black",
43                 "blockback" => "white",
44                 "blockbg2" => "white",
45                 "blocktitle" => "white",
46                 "blocksides" => "#ffffff",
47                 "blockextra" => "#660000"
50 $fonts = array( "tahoma",               // primary font
51                 "verdana",      // secondary font
52                 "help"  => "times",             // help text
53                 "quote" => "times new roman, times, serif", // quotes in messages
54                 "narrow"        => "arial narrow, helvetica narrow, times new roman, times", // quotes in messages
55                 "fixed" => "courier, fixed",    // monospace font
56                 "block" => "tahoma");   // block font
59 // Set the bebug variable initially to '0'. This variable is made available
60 // to all local routines for verbose printing.
61 if ( !isset($debuglevel) ) $debuglevel = 2;
65 function block_open(  $bgcolor="", $border_color="") {
66   global $colors;
67   if ( $bgcolor == "" ) $bgcolor=$colors["blockback"];
68   if ( $border_color == "" ) $border_color=$colors["blocksides"];
69   echo "<table cellpadding=\"1\" cellspacing=\"0\" border=\"0\" width=\"100%\" bgcolor=\"$border_color\" style=\" margin: 0 1px;\">\n";
70   echo "<tr><td>\n";
71   echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"$bgcolor\">\n";
74 //-----------------------------------------
75 // Function to title a block of options / menus / whatever
76 //-----------------------------------------
77 function block_title( $title="&nbsp;", $bgcolor="", $border_color="") {
78   global $colors;
79   if ( $bgcolor == "" ) $bgcolor=$colors["blocktitle"];
80   if ( $border_color == "" ) $border_color=$colors["blocksides"];
82   echo "<tr bgcolor=\"$bgcolor\">\n";
83   echo "<td class=blockhead align=center>$title</td>\n";
84   echo "</tr>\n";
88 //-----------------------------------------
89 // Function to finish a block of options / menus / whatever
90 //-----------------------------------------
91 function block_close() {
92   echo "</table>\n";
93   echo "</td></tr>\n";
94   echo "</table>\n";