3 # $dbconn = pg_pConnect("host=dewey.db port=5432 dbname=wrms user=general");
4 $dbconn = pg_Connect("host=dewey.db port=5432 dbname=wrms user=general");
7 $admin_email = "wrms@catalyst.net.nz";
8 $basefont = "verdana,sans-serif";
9 $system_name = "Catalyst WRMS2";
12 // Only admin/support can see the ranking report.
13 $rank_report_anyone = 0;
15 //$debuggroups['Session'] = 1;
16 //$debuggroups['Login'] = 1;
17 $debuggroups['querystring'] = 1;
18 $debuggroups['Request'] = 1;
19 //$debuggroups['WorkSystem'] = 1;
21 $base_dns = "http://$HTTP_HOST";
23 $external_base_url = $base_dns;
24 $base_dir = $DOCUMENT_ROOT;
25 $attachment_dir = "/home/wrms/wrms/html/attachments";
29 "bg1" => "#ffffff", // primary background
30 "fg1" => "#000000", // text on primary background
31 "link1" => "#660000", // Links on row0/row1
32 "bg2" => "#660000", // secondary background (behind menus)
33 "fg2" => "#ffffff", // text on links
34 "bg3" => "#000000", // tertiary background
35 "fg3" => "#ffffff", // tertiary foreground
36 "hv1" => "#660000", // text on hover
37 "hv2" => "#f0ff4c", // other text on hover
38 "row0" => "#ffffff", // dark rows in listings
39 "row1" => "#f0ece8", // light rows in listings
40 "link2" => "#333333", // Links on row0/row1
41 "bghelp" => "#ffffff", // help background
42 "fghelp" => "#000000", // text on help background
44 // Parts of a text block (default colors - some blocks might code around this
45 "blockfront" => "black",
46 "blockback" => "white",
47 "blockbg2" => "white",
48 "blocktitle" => "white",
49 "blocksides" => "#ffffff",
50 "blockextra" => "#660000"
53 $fonts = array( "tahoma", // primary font
54 "verdana", // secondary font
55 "help" => "times", // help text
56 "quote" => "times new roman, times, serif", // quotes in messages
57 "narrow" => "arial narrow, helvetica narrow, times new roman, times", // quotes in messages
58 "fixed" => "courier, fixed", // monospace font
59 "block" => "tahoma"); // block font
62 // Set the bebug variable initially to '0'. This variable is made available
63 // to all local routines for verbose printing.
64 if ( !isset($debuglevel) ) $debuglevel = 2;
66 function block_open( $bgcolor="", $border_color="") {
67 echo '<div class="block">';
71 //-----------------------------------------
72 // Function to title a block of options / menus / whatever
73 //-----------------------------------------
74 function block_title( $title=" ", $bgcolor="", $border_color="") {
75 echo '<div class="blockhead">'.$title.'</div>';
79 //-----------------------------------------
80 // Function to finish a block of options / menus / whatever
81 //-----------------------------------------
82 function block_close() {