r1175 + rearranged parameters around
[racktables] / inc / config.php
CommitLineData
e673ee24
DO
1<?
2/*
3*
4* This is RackTables public configuration file.
5*
6*/
7
8d07e3e0
DO
8
9/* The following parameters/constants are necessary, although they are unlikely
10 * to change. They just have to be stored somewhere and this is the place.
11 */
12
e673ee24
DO
13// This is the name of hash used to store account password hashes in the database.
14define ('PASSWORD_HASH', 'sha1');
e673ee24
DO
15$rtwidth[0] = 9;
16$rtwidth[1] = 21;
17$rtwidth[2] = 9;
18
19// Free atoms. They are available for allocation to objects.
20// They are not stored in the database.
21// HSV: 180-25-75
22$color['F'] = '8fbfbf';
23
24// Absent atoms.
25// HSV: 0-0-75
26$color['A'] = 'bfbfbf';
27
28// Unusable atoms. Some problems keep them to be 'F'.
29// HSV: 0-25-75
30$color['U'] = 'bf8f8f';
31
32// Taken atoms. object_id should be present then.
33// HSV: 180-50-50
34$color['T'] = '408080';
35
36// Taken atoms with highlight. They are not stored in the database and
37// are only used for highlighting.
38// HSV: 180-50-100
39$color['Th'] = '80ffff';
40
41// Taken atoms with object problem. This is detected at runtime.
42// HSV: 0-50-50
43$color['Tw'] = '804040';
44
45// An object can be both current and problematic. We run highlightObject() first
46// and markupObjectProblems() second.
47// HSV: 0-50-100
48$color['Thw'] = 'ff8080';
49
50$nextorder['odd'] = 'even';
51$nextorder['even'] = 'odd';
52
8d07e3e0
DO
53
54
55/*******************************************************************************
56 * The following parameters are likely to be changed by user, thus they
57 * are listed below until we implement a configuration storage to move
58 * them there.
59 */
60
61$enterprise = 'MyCompanyName';
62
e673ee24
DO
63// Taken from the database, RJ-45/100Base-TX
64$default_port_type = 6;
65
66// Number of lines in object mass-adding form.
67define ('MASSCOUNT', 15);
68define ('MAXSELSIZE', 30);
69
70// FIXME: This is taken right from the database.
71define ('TYPE_SERVER', 4);
72define ('TYPE_SWITCH', 8);
73define ('TYPE_ROUTER', 7);
74
75// Row-scope picture scale factor.
76define ('ROW_SCALE', 2);
77
75d3818d
DO
78// Max switch port per one row on the switchvlans dynamic tab.
79define ('PORTS_PER_ROW', 12);
80
8d07e3e0
DO
81/*******************************************************************************
82 * And finally there are some things that we'd still like to see in the
83 * configuration storage, but not changeable by user.
84 */
85define ('VERSION', '0.14.6');
86
e673ee24 87?>