Projet

Général

Profil

Paste
Statistiques
| Branche: | Révision:

ryxeo-glpi-git / config / define.php @ 15ef2b99

Historique | Voir | Annoter | Télécharger (12,9 ko)

1
<?php
2

    
3
        // Current version of GLPI
4
        define("GLPI_VERSION","0.71.5");
5

    
6
        // dicts
7
        // dictionnaires
8
        // 0 Name - 1 lang file -  2calendar dico - 3toolbar dico
9
        $CFG_GLPI["languages"]=array(   
10
                "pt_BR"=>array("Brazilian","pt_BR.php","br","pt"),
11
                "bg_BG"=>array("Bulgarian","bg_BG.php","bg","bg"),
12
                "ca_CA"=>array("Catalan","ca_CA.php","ca","ca"),
13
                "cs_CZ"=>array("Czech","cs_CZ.php","cs","cs"),
14
                "de_DE"=>array("Deutsch","de_DE.php","de","de"),
15
                "dk_DK"=>array("Danish","dk_DK.php","da","da"),
16
                "nl_NL"=>array("Dutch","nl_NL.php","nl","nl"),
17
                "nl_BE"=>array("Dutch (Belgium)","nl_BE.php","nl","nl"),
18
                "en_GB"=>array("English","en_GB.php","en","en"),
19
                "es_AR"=>array("Español (Argentina)","es_AR.php","es","es"),
20
                "es_ES"=>array("Español (España)","es_ES.php","es","es"),
21
                "fr_FR"=>array("Français","fr_FR.php","fr","fr"),
22
                "gl_ES"=>array("Galician","gl_ES.php","es","es"),
23
                "el_EL"=>array("Greek","el_EL.php","el","el"),
24
                "hu_HU"=>array("Hungarian","hu_HU.php","hu","hu"),
25
                "it_IT"=>array("Italiano","it_IT.php","it","it"),
26
                "ja_JP"=>array("Japanese","ja_JP.php","ja","ja"),
27
                "lv_LV"=>array("Latvian","lv_LV.php","lv","lv"),
28
                "lt_LT"=>array("Lithuanian","lt_LT.php","lt","lt"),
29
                "pl_PL"=>array("Polish","pl_PL.php","pl","pl"),
30
                "pt_PT"=>array("Português","pt_PT.php","br","pt"),
31
                "ro_RO"=>array("Romanian","ro_RO.php","ro","en"),
32
                "ru_RU"=>array("Russian","ru_RU.php","ru","ru"),
33
                "zh_CN"=>array("Simplified Chinese","zh_CN.php","en","zh"),
34
                "sv_SE"=>array("Swedish","sv_SE.php","sv","sv"),
35
                "tr_TR"=>array("Turkish","tr_TR.php","tr","en"),
36
                );
37

    
38

    
39
        // TIMES
40
        define("MINUTE_TIMESTAMP",60);
41
        define("HOUR_TIMESTAMP",3600);
42
        define("DAY_TIMESTAMP",86400);
43
        define("WEEK_TIMESTAMP",604800);
44
        define("MONTH_TIMESTAMP",2592000);
45

    
46
        // CACHE CONTROL
47
        define("DEFAULT_CACHE_LIFETIME",WEEK_TIMESTAMP);
48
        // Max cache size in octet : default 20 Mb
49
        define("MAX_CACHE_SIZE",20000000);
50
        define("CACHE_FILELOCKINGCONTROL",true);
51
        define("CACHE_READCONTROL",true);
52
        define("CACHE_WRITECONTROL",true);
53

    
54
        // MAILGATE CONTROL -> IN DB ?
55
        define("MAX_MAILS_RETRIEVED",10);
56

    
57

    
58
        // ITEMS TYPE
59
        define("GENERAL_TYPE",0);//
60
        define("COMPUTER_TYPE",1);//
61
        define("NETWORKING_TYPE",2);//
62
        define("PRINTER_TYPE",3);//
63
        define("MONITOR_TYPE",4);//
64
        define("PERIPHERAL_TYPE",5);//
65
        define("SOFTWARE_TYPE",6);//
66
        define("CONTACT_TYPE",7);//
67
        define("ENTERPRISE_TYPE",8);//
68
        define("INFOCOM_TYPE",9);//
69
        define("CONTRACT_TYPE",10);//
70
        define("CARTRIDGE_TYPE",11);//
71
        define("TYPEDOC_TYPE",12);
72
        define("DOCUMENT_TYPE",13);//
73
        define("KNOWBASE_TYPE",14);//
74
        define("USER_TYPE",15);//
75
        define("TRACKING_TYPE",16);//
76
        define("CONSUMABLE_TYPE",17);//
77
        define("CONSUMABLE_ITEM_TYPE",18);
78
        define("CARTRIDGE_ITEM_TYPE",19);
79
        define("LICENSE_TYPE",20);
80
        define("LINK_TYPE",21);
81
        define("STATE_TYPE",22);
82
        define("PHONE_TYPE",23);//
83
        define("DEVICE_TYPE",24);
84
        define("REMINDER_TYPE",25);
85
        define("STAT_TYPE",26);
86
        define("GROUP_TYPE",27);
87
        define("ENTITY_TYPE",28);
88
        define("RESERVATION_TYPE",29);
89
        define("AUTH_MAIL_TYPE",30);
90
        define("AUTH_LDAP_TYPE",31);
91
        define("OCSNG_TYPE",32);
92
        define("REGISTRY_TYPE",33);
93
        define("PROFILE_TYPE",34);
94
        define("MAILGATE_TYPE",35);
95
        define("RULE_TYPE",36);
96
        define("TRANSFER_TYPE",37);
97
        define("BOOKMARK_TYPE",38);
98
        
99
        // GLPI MODE
100
        define("NORMAL_MODE",0);
101
        define("TRANSLATION_MODE",1);
102
        define("DEBUG_MODE",2);
103
        define("DEMO_MODE",3);
104

    
105
        // DEVICE TYPE
106
        define("MOBOARD_DEVICE",1);
107
        define("PROCESSOR_DEVICE",2);
108
        define("RAM_DEVICE",3);
109
        define("HDD_DEVICE",4);
110
        define("NETWORK_DEVICE",5);
111
        define("DRIVE_DEVICE",6); 
112
        define("CONTROL_DEVICE",7);
113
        define("GFX_DEVICE",8);
114
        define("SND_DEVICE",9);
115
        define("PCI_DEVICE",10);
116
        define("CASE_DEVICE",11);
117
        define("POWER_DEVICE",12);
118

    
119
        // DEVICE INTERNAL ACTION
120
        define("HISTORY_ADD_DEVICE",1);
121
        define("HISTORY_UPDATE_DEVICE",2);
122
        define("HISTORY_DELETE_DEVICE",3);
123
        define("HISTORY_INSTALL_SOFTWARE",4);
124
        define("HISTORY_UNINSTALL_SOFTWARE",5);
125
        define("HISTORY_DISCONNECT_DEVICE",6);
126
        define("HISTORY_CONNECT_DEVICE",7);
127
        define("HISTORY_OCS_IMPORT",8);
128
        define("HISTORY_OCS_DELETE",9);
129
        define("HISTORY_OCS_IDCHANGED",10);
130
        define("HISTORY_OCS_LINK",11);
131
        define("HISTORY_LOG_SIMPLE_MESSAGE",12);
132
        define("HISTORY_DELETE_ITEM",13);
133
        define("HISTORY_RESTORE_ITEM",14);
134
        
135
        // OCSNG TYPES
136
        define("HARDWARE_FL",0);
137
        define("BIOS_FL",1);
138
        define("MEMORIES_FL",2);
139
        define("SLOTS_FL",3);
140
        define("REGISTRY_FL",4);
141
        define("CONTROLLERS_FL",5);
142
        define("MONITORS_FL",6);
143
        define("PORTS_FL",7);
144
        define("STORAGES_FL",8);
145
        define("DRIVES_FL",9);
146
        define("INPUTS_FL",10);
147
        define("MODEMS_FL",11);
148
        define("NETWORKS_FL",12);
149
        define("PRINTERS_FL",13);
150
        define("SOUNDS_FL",14);
151
        define("VIDEOS_FL",15);
152
        define("SOFTWARES_FL",16);
153

    
154
        define("MAX_OCS_CHECKSUM",131071);
155

    
156

    
157

    
158
        // MAILING TYPE
159
        define("USER_MAILING_TYPE",1);
160
        define("PROFILE_MAILING_TYPE",2);
161
        define("GROUP_MAILING_TYPE",3);
162
        define("DB_NOTIFICATION_MAILING_TYPE",3);        
163

    
164
        // MAILING USERS TYPE
165
        define("ADMIN_MAILING",1);
166
        define("ASSIGN_MAILING",2);
167
        define("AUTHOR_MAILING",3);
168
        define("OLD_ASSIGN_MAILING",4);
169
        define("TECH_MAILING",5);
170
        define("USER_MAILING",6);
171
        define("RECIPIENT_MAILING",7);
172
        define("ASSIGN_ENT_MAILING",8);
173
        define("ASSIGN_GROUP_MAILING",9);
174
        define("SUPERVISOR_ASSIGN_GROUP_MAILING",10);
175
        define("ADMIN_ENTITY_MAILING",11);
176
        define("SUPERVISOR_AUTHOR_GROUP_MAILING",12);
177

    
178

    
179
        // EXPORT TYPE
180
        define("GLOBAL_SEARCH",-1);
181
        define("HTML_OUTPUT",0);
182
        define("SYLK_OUTPUT",1);
183
        define("PDF_OUTPUT_LANDSCAPE",2);
184
        define("CSV_OUTPUT",3);
185
        define("PDF_OUTPUT_PORTRAIT",4);
186

    
187
        // HELPDESK LINK HARDWARE DEFINITION : CHECKSUM SYSTEM : BOTH=1*2^0+1*2^1=3
188
        define("HELPDESK_MY_HARDWARE",0);
189
        define("HELPDESK_ALL_HARDWARE",1);
190

    
191
        // ALERTS TYPE
192
        define("ALERT_THRESHOLD",1);
193
        define("ALERT_END",2);
194
        define("ALERT_NOTICE",3);
195

    
196
        // Default number of items displayed in global search
197
        define("GLOBAL_SEARCH_DISPLAY_COUNT",10);
198
        
199
        $LINK_ID_TABLE=array(
200
                        COMPUTER_TYPE=> "glpi_computers",
201
                        NETWORKING_TYPE => "glpi_networking",
202
                        PRINTER_TYPE => "glpi_printers",
203
                        MONITOR_TYPE => "glpi_monitors",
204
                        PERIPHERAL_TYPE => "glpi_peripherals",
205
                        SOFTWARE_TYPE => "glpi_software",
206
                        CONTACT_TYPE => "glpi_contacts",
207
                        ENTERPRISE_TYPE => "glpi_enterprises",
208
                        INFOCOM_TYPE => "glpi_infocoms",
209
                        CONTRACT_TYPE => "glpi_contracts",
210
                        CARTRIDGE_TYPE => "glpi_cartridges_type",
211
                        TYPEDOC_TYPE => "glpi_type_docs",
212
                        DOCUMENT_TYPE => "glpi_docs",
213
                        KNOWBASE_TYPE => "glpi_kbitems",
214
                        USER_TYPE => "glpi_users",
215
                        TRACKING_TYPE => "glpi_tracking",
216
                        CONSUMABLE_TYPE => "glpi_consumables_type",
217
                        CONSUMABLE_ITEM_TYPE => "glpi_consumables",
218
                        CARTRIDGE_ITEM_TYPE => "glpi_cartridges",
219
                        LICENSE_TYPE => "glpi_licenses",
220
                        LINK_TYPE => "glpi_links",
221
                        STATE_TYPE => "",
222
                        PHONE_TYPE => "glpi_phones",
223
                        DEVICE_TYPE => "???",
224
                        REMINDER_TYPE => "glpi_reminder",
225
                        STAT_TYPE => "???",
226
                        GROUP_TYPE => "glpi_groups",
227
                        ENTITY_TYPE => "glpi_entities",
228
                        RESERVATION_TYPE => "glpi_reservation_item",
229
                        OCSNG_TYPE => "glpi_ocs_config",
230
                        REGISTRY_TYPE => "glpi_registry",
231
                        PROFILE_TYPE => "glpi_profiles",
232
                        MAILGATE_TYPE => "glpi_mailgate",
233
                        RULE_TYPE => "glpi_rules_descriptions",
234
                        TRANSFER_TYPE => "glpi_transfers",
235
                        );
236

    
237
        $INFOFORM_PAGES=array( 
238
                        COMPUTER_TYPE=> "front/computer.form.php",
239
                        NETWORKING_TYPE => "front/networking.form.php",
240
                        PRINTER_TYPE => "front/printer.form.php",
241
                        MONITOR_TYPE => "front/monitor.form.php",
242
                        PERIPHERAL_TYPE => "front/peripheral.form.php",
243
                        SOFTWARE_TYPE => "front/software.form.php",
244
                        CONTACT_TYPE => "front/contact.form.php",
245
                        ENTERPRISE_TYPE => "front/enterprise.form.php",
246
                        INFOCOM_TYPE => "front/infocom.form.php",
247
                        CONTRACT_TYPE => "front/contract.form.php",
248
                        CARTRIDGE_TYPE => "front/cartridge.form.php",
249
                        TYPEDOC_TYPE => "front/typedoc.form.php",
250
                        DOCUMENT_TYPE => "front/document.form.php",
251
                        KNOWBASE_TYPE => "front/knowbase.form.php",
252
                        USER_TYPE => "front/user.form.php",
253
                        TRACKING_TYPE => "front/tracking.form.php",
254
                        CONSUMABLE_TYPE => "front/consumable.form.php",
255
                        CONSUMABLE_ITEM_TYPE => "??",
256
                        CARTRIDGE_ITEM_TYPE => "??",
257
                        LICENSE_TYPE => "??",
258
                        LINK_TYPE => "front/link.form.php",
259
                        STATE_TYPE => "??",
260
                        PHONE_TYPE => "front/phone.form.php",
261
                        DEVICE_TYPE => "???",
262
                        REMINDER_TYPE => "front/reminder.form.php",
263
                        STAT_TYPE => "???",
264
                        GROUP_TYPE => "front/group.form.php",
265
                        ENTITY_TYPE => "front/entity.form.php",
266
                        RESERVATION_TYPE => "???",
267
                        OCSNG_TYPE => "front/ocsng.form.php",
268
                        REGISTRY_TYPE => "???",
269
                        PROFILE_TYPE => "front/profile.form.php",
270
                        MAILGATE_TYPE => "front/mailgate.form.php",
271
                        RULE_TYPE => "???",
272
                        TRANSFER_TYPE => "front/transfer.form.php",
273
                        );
274
        $SEARCH_PAGES=array( 
275
                        COMPUTER_TYPE=> "front/computer.php",
276
                        NETWORKING_TYPE => "front/networking.php",
277
                        PRINTER_TYPE => "front/printer.php",
278
                        MONITOR_TYPE => "front/monitor.php",
279
                        SOFTWARE_TYPE => "front/software.php",
280
                        PERIPHERAL_TYPE => "front/peripheral.php",
281
                        CONTACT_TYPE => "front/contact.php",
282
                        ENTERPRISE_TYPE => "front/enterprise.php",
283
                        CONTRACT_TYPE => "front/contract.php",
284
                        DOCUMENT_TYPE => "front/document.php",
285
                );
286

    
287
        define("AUTH_DB_GLPI",1);
288
        define("AUTH_MAIL",2);
289
        define("AUTH_LDAP",3);
290
        define("AUTH_EXTERNAL",4);
291
        define("AUTH_CAS",5);
292
        define("AUTH_X509",6);
293
        define("NOT_YET_AUTHENTIFIED",-1);
294

    
295
        //Generic rules engine
296
        define("PATTERN_IS",0);
297
        define("PATTERN_IS_NOT",1);
298
        define("PATTERN_CONTAIN",2);
299
        define("PATTERN_NOT_CONTAIN",3);
300
        define("PATTERN_BEGIN",4);
301
        define("PATTERN_END",5);        
302
        define("REGEX_MATCH",6);        
303
        define("REGEX_NOT_MATCH",7);        
304
        
305

    
306
        define("AND_MATCHING","AND");
307
        define("OR_MATCHING","OR");        
308
        
309
        define("RULE_NOT_IN_CACHE",-1);        
310
        define("RULE_OCS_AFFECT_COMPUTER",0);
311
        define("RULE_AFFECT_RIGHTS",1);
312
        define("RULE_TRACKING_AUTO_ACTION",2);
313
        define("RULE_SOFTWARE_CATEGORY",3);
314
        define("RULE_DICTIONNARY_SOFTWARE",4);
315
        define("RULE_DICTIONNARY_MANUFACTURER",5);
316
        define("RULE_DICTIONNARY_MODEL_COMPUTER",6);
317
        define("RULE_DICTIONNARY_TYPE_COMPUTER",7);
318
        define("RULE_DICTIONNARY_MODEL_MONITOR",8);
319
        define("RULE_DICTIONNARY_TYPE_MONITOR",9);
320
        define("RULE_DICTIONNARY_MODEL_PRINTER",10);
321
        define("RULE_DICTIONNARY_TYPE_PRINTER",11);
322
        define("RULE_DICTIONNARY_MODEL_PHONE",12);
323
        define("RULE_DICTIONNARY_TYPE_PHONE",13);
324
        define("RULE_DICTIONNARY_MODEL_PERIPHERAL",14);
325
        define("RULE_DICTIONNARY_TYPE_PERIPHERAL",15);
326
        define("RULE_DICTIONNARY_MODEL_NETWORKING",16);
327
        define("RULE_DICTIONNARY_TYPE_NETWORKING",17);
328
        define("RULE_DICTIONNARY_OS",18);
329
        define("RULE_DICTIONNARY_OS_SP",19);
330
        define("RULE_DICTIONNARY_OS_VERSION",20);        
331

    
332
        //Type of process to import datas in GLPI
333
        define("IMPORT_TYPE_OCS",0); //Import from OCS
334
        define("IMPORT_TYPE_DICTIONNARY",1); //Import or modified from dictionnaries
335

    
336
        //Bookmark types
337
        define("BOOKMARK_SEARCH",1); //SEARCH SYSTEM bookmark
338

    
339

    
340
                //DEVICE ARRAY.
341
        $CFG_GLPI["devices_tables"] =array("moboard","processor","ram","hdd","iface","drive","control","gfxcard","sndcard","pci","case","power");
342
        $CFG_GLPI["deleted_tables"]=array("glpi_computers","glpi_networking","glpi_printers","glpi_monitors","glpi_peripherals",
343
                "glpi_software","glpi_cartridges_type","glpi_contracts","glpi_contacts","glpi_enterprises","glpi_docs","glpi_phones",
344
                "glpi_consumables_type","glpi_users","state_types","reservation_types");
345
        
346
        $CFG_GLPI["template_tables"]=array("glpi_computers","glpi_networking","glpi_printers","glpi_monitors","glpi_peripherals","glpi_software","glpi_phones","state_types","reservation_types","glpi_ocs_config");
347
        
348
        $CFG_GLPI["dropdowntree_tables"]=array("glpi_entities","glpi_dropdown_locations","glpi_dropdown_kbcategories","glpi_dropdown_tracking_category");
349
        $CFG_GLPI["state_types"]=array(COMPUTER_TYPE,PRINTER_TYPE,MONITOR_TYPE,PERIPHERAL_TYPE,NETWORKING_TYPE,PHONE_TYPE,SOFTWARE_TYPE);
350
        $CFG_GLPI["infocom_types"]=array(COMPUTER_TYPE,PRINTER_TYPE,MONITOR_TYPE,PERIPHERAL_TYPE,NETWORKING_TYPE,PHONE_TYPE,SOFTWARE_TYPE,CONSUMABLE_TYPE,CARTRIDGE_TYPE,CONSUMABLE_ITEM_TYPE,CARTRIDGE_ITEM_TYPE);
351
        $CFG_GLPI["reservation_types"]=array(COMPUTER_TYPE,PRINTER_TYPE,MONITOR_TYPE,PERIPHERAL_TYPE,NETWORKING_TYPE,PHONE_TYPE,SOFTWARE_TYPE);
352
        $CFG_GLPI["linkuser_types"]=array(COMPUTER_TYPE,PRINTER_TYPE,MONITOR_TYPE,PERIPHERAL_TYPE,NETWORKING_TYPE,PHONE_TYPE,SOFTWARE_TYPE);
353
        $CFG_GLPI["helpdesk_types"]=array(COMPUTER_TYPE,PRINTER_TYPE,MONITOR_TYPE,PERIPHERAL_TYPE,NETWORKING_TYPE,PHONE_TYPE,SOFTWARE_TYPE);
354
         $CFG_GLPI["netport_types"]=array(COMPUTER_TYPE,PRINTER_TYPE,PERIPHERAL_TYPE,NETWORKING_TYPE,PHONE_TYPE);
355

    
356
        $CFG_GLPI["specif_entities_tables"]=array("glpi_cartridges_type","glpi_computers","glpi_consumables_type",
357
                "glpi_contacts","glpi_contracts","glpi_docs",
358
                "glpi_dropdown_locations","glpi_dropdown_netpoint","glpi_enterprises","glpi_groups",
359
                "glpi_mailgate","glpi_monitors","glpi_networking","glpi_peripherals","glpi_phones","glpi_printers","glpi_software",
360
                "glpi_tracking","state_types","reservation_types");
361

    
362
        $CFG_GLPI["union_search_type"]=array(RESERVATION_TYPE=>"reservation_types",STATE_TYPE=>"state_types");
363

    
364
        $CFG_GLPI["recursive_type"]=array(CONTACT_TYPE=>"glpi_contacts", ENTERPRISE_TYPE=>"glpi_enterprises", CONTRACT_TYPE=>"glpi_contracts", 
365
                DOCUMENT_TYPE=>"glpi_docs", KNOWBASE_TYPE=>"glpi_kbitems");
366
?>
Redmine Appliance - Powered by TurnKey Linux