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