r1106 importing RackTables trunk
[racktables] / inc / config.php
1 <?
2 /*
3 *
4 * This is RackTables public configuration file.
5 *
6 */
7
8 $enterprise = 'MyCompanyName';
9 // This is the name of hash used to store account password hashes in the database.
10 define ('PASSWORD_HASH', 'sha1');
11 define ('VERSION', '0.14.6');
12
13 $rtwidth[0] = 9;
14 $rtwidth[1] = 21;
15 $rtwidth[2] = 9;
16
17 // Free atoms. They are available for allocation to objects.
18 // They are not stored in the database.
19 // HSV: 180-25-75
20 $color['F'] = '8fbfbf';
21
22 // Absent atoms.
23 // HSV: 0-0-75
24 $color['A'] = 'bfbfbf';
25
26 // Unusable atoms. Some problems keep them to be 'F'.
27 // HSV: 0-25-75
28 $color['U'] = 'bf8f8f';
29
30 // Taken atoms. object_id should be present then.
31 // HSV: 180-50-50
32 $color['T'] = '408080';
33
34 // Taken atoms with highlight. They are not stored in the database and
35 // are only used for highlighting.
36 // HSV: 180-50-100
37 $color['Th'] = '80ffff';
38
39 // Taken atoms with object problem. This is detected at runtime.
40 // HSV: 0-50-50
41 $color['Tw'] = '804040';
42
43 // An object can be both current and problematic. We run highlightObject() first
44 // and markupObjectProblems() second.
45 // HSV: 0-50-100
46 $color['Thw'] = 'ff8080';
47
48 $nextorder['odd'] = 'even';
49 $nextorder['even'] = 'odd';
50
51 // Taken from the database, RJ-45/100Base-TX
52 $default_port_type = 6;
53
54 // Number of lines in object mass-adding form.
55 define ('MASSCOUNT', 15);
56 define ('MAXSELSIZE', 30);
57
58 // FIXME: This is taken right from the database.
59 define ('TYPE_SERVER', 4);
60 define ('TYPE_SWITCH', 8);
61 define ('TYPE_ROUTER', 7);
62
63 // Row-scope picture scale factor.
64 define ('ROW_SCALE', 2);
65
66 // New-style image declarations.
67 $image['error']['path'] = 'pix/error.png';
68 $image['error']['width'] = 76;
69 $image['error']['height'] = 17;
70 $image['favicon']['path'] = 'pix/racktables.ico';
71 $image['favicon']['width'] = 16;
72 $image['favicon']['height'] = 16;
73 $image['logo']['path'] = 'pix/defaultlogo.png';
74 $image['logo']['width'] = 210;
75 $image['logo']['height'] = 40;
76 $image['rackspace']['path'] = 'pix/racks.png';
77 $image['rackspace']['width'] = 218;
78 $image['rackspace']['height'] = 200;
79 $image['objects']['path'] = 'pix/server.png';
80 $image['objects']['width'] = 218;
81 $image['objects']['height'] = 200;
82 $image['ipv4space']['path'] = 'pix/addressspace.png';
83 $image['ipv4space']['width'] = 218;
84 $image['ipv4space']['height'] = 200;
85 $image['config']['path'] = 'pix/configuration.png';
86 $image['config']['width'] = 218;
87 $image['config']['height'] = 200;
88 $image['reports']['path'] = 'pix/report.png';
89 $image['reports']['width'] = 218;
90 $image['reports']['height'] = 200;
91 $image['reserve']['path'] = 'pix/stop.png';
92 $image['reserve']['width'] = 16;
93 $image['reserve']['height'] = 16;
94 $image['useup']['path'] = 'pix/go.png';
95 $image['useup']['width'] = 16;
96 $image['useup']['height'] = 16;
97 $image['blockuser'] = $image['reserve'];
98 $image['unblockuser'] = $image['useup'];
99 $image['link']['path'] = 'pix/link.png';
100 $image['link']['width'] = 24;
101 $image['link']['height'] = 24;
102 $image['unlink']['path'] = 'pix/unlink.png';
103 $image['unlink']['width'] = 24;
104 $image['unlink']['height'] = 24;
105 $image['add']['path'] = 'pix/greenplus.png';
106 $image['add']['width'] = 16;
107 $image['add']['height'] = 16;
108 $image['delete']['path'] = 'pix/delete_s.gif';
109 $image['delete']['width'] = 16;
110 $image['delete']['height'] = 16;
111 $image['grant'] = $image['add'];
112 $image['revoke'] = $image['delete'];
113
114 ?>