ryxeo-glpi-git / front / transfer.action.php @ b67d8923
Historique | Voir | Annoter | Télécharger (4,43 ko)
1 |
<?php
|
---|---|
2 |
/*
|
3 |
* @version $Id: transfer.action.php 7763 2009-01-06 18:44:50Z moyo $
|
4 |
-------------------------------------------------------------------------
|
5 |
GLPI - Gestionnaire Libre de Parc Informatique
|
6 |
Copyright (C) 2003-2009 by the INDEPNET Development Team.
|
7 |
|
8 |
http://indepnet.net/ http://glpi-project.org
|
9 |
-------------------------------------------------------------------------
|
10 |
|
11 |
LICENSE
|
12 |
|
13 |
This file is part of GLPI.
|
14 |
|
15 |
GLPI is free software; you can redistribute it and/or modify
|
16 |
it under the terms of the GNU General Public License as published by
|
17 |
the Free Software Foundation; either version 2 of the License, or
|
18 |
(at your option) any later version.
|
19 |
|
20 |
GLPI is distributed in the hope that it will be useful,
|
21 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
22 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
23 |
GNU General Public License for more details.
|
24 |
|
25 |
You should have received a copy of the GNU General Public License
|
26 |
along with GLPI; if not, write to the Free Software
|
27 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
28 |
--------------------------------------------------------------------------
|
29 |
*/
|
30 |
|
31 |
// ----------------------------------------------------------------------
|
32 |
// Original Author of file: Julien Dombre
|
33 |
// Purpose of file:
|
34 |
// ----------------------------------------------------------------------
|
35 |
|
36 |
$NEEDED_ITEMS=array("transfer","user","tracking","reservation","document","computer","device","printer","networking","peripheral","monitor","software","infocom","phone","link","ocsng","consumable","cartridge","contract","enterprise","contact","group","profile","search","mailgate","typedoc","setup","rulesengine","rule.softwarecategories"); |
37 |
|
38 |
define('GLPI_ROOT', '..'); |
39 |
include (GLPI_ROOT . "/inc/includes.php"); |
40 |
|
41 |
$transfer=new Transfer(); |
42 |
|
43 |
|
44 |
commonHeader($LANG["transfer"][1],$_SERVER['PHP_SELF'],"admin","transfer"); |
45 |
checkRight("transfer","r"); |
46 |
|
47 |
|
48 |
|
49 |
if (isset($_POST['transfer'])){ |
50 |
if (isset($_SESSION['glpitransfer_list'])){ |
51 |
$transfer->moveItems($_SESSION['glpitransfer_list'],$_POST['to_entity'],$_POST); |
52 |
unset($_SESSION['glpitransfer_list']); |
53 |
echo "<strong>".$LANG["common"][23]."</strong><br>"; |
54 |
echo "<a href=\"central.php\"><b>".$LANG["buttons"][13]."</b></a>"; |
55 |
commonFooter(); |
56 |
exit();
|
57 |
} |
58 |
} else if (isset($_GET['clear'])){ |
59 |
unset($_SESSION['glpitransfer_list']); |
60 |
echo "<strong>".$LANG["common"][23]."</strong><br>"; |
61 |
echo "<a href=\"central.php\"><b>".$LANG["buttons"][13]."</b></a>"; |
62 |
commonFooter(); |
63 |
exit();
|
64 |
} |
65 |
|
66 |
unset($_SESSION['glpimassiveactionselected']); |
67 |
|
68 |
$transfer->showTransferList();
|
69 |
|
70 |
commonFooter(); |
71 |
/*
|
72 |
// Network links : 0 : delete 1 : keep disconnect 2 : keep connect
|
73 |
$options['keep_networklinks']=0;
|
74 |
|
75 |
// Tickets : 0 : delete 1 : keep and clean ref 2 : keep and move
|
76 |
$options['keep_tickets']=2;
|
77 |
|
78 |
// Reservations : 0 : delete 1 : keep
|
79 |
$options['keep_reservations']=1;
|
80 |
|
81 |
// Devices : 0 : delete 1 : keep
|
82 |
$options['keep_devices']=1;
|
83 |
|
84 |
// History : 0 : delete 1 : keep
|
85 |
$options['keep_history']=1;
|
86 |
|
87 |
// Infocoms : 0 : delete 1 : keep
|
88 |
$options['keep_infocoms']=1;
|
89 |
|
90 |
// enterprises : 0 : delete 1 : keep
|
91 |
$options['keep_enterprises']=1;
|
92 |
$options['clean_enterprises']=1;
|
93 |
|
94 |
// Contacts for enterprises : 0 : delete 1 : keep
|
95 |
$options['keep_contacts']=1;
|
96 |
$options['clean_contacts']=1;
|
97 |
|
98 |
// Softwares : 0 : delete 1 : keep
|
99 |
$options['keep_softwares']=1;
|
100 |
$options['clean_softwares']=1;
|
101 |
|
102 |
// Contracts : 0 : delete 1 : keep
|
103 |
$options['keep_contracts']=1;
|
104 |
$options['clean_contracts']=1;
|
105 |
|
106 |
// Documents : 0 : delete 1 : keep
|
107 |
$options['keep_documents']=1;
|
108 |
$options['clean_documents']=1;
|
109 |
|
110 |
// Monitor Direct Connect : keep_dc -> tranfer / clean_dc : delete if unused : 1 = delete, 2 = purge
|
111 |
$options['keep_dc_monitor']=1;
|
112 |
$options['clean_dc_monitor']=1;
|
113 |
|
114 |
// Phone Direct Connect : keep_dc -> tranfer / clean_dc : delete if unused : 1 = delete, 2 = purge
|
115 |
$options['keep_dc_phone']=1;
|
116 |
$options['clean_dc_phone']=1;
|
117 |
|
118 |
// Peripheral Direct Connect : keep_dc -> tranfer / clean_dc : delete if unused : 1 = delete, 2 = purge
|
119 |
$options['keep_dc_peripheral']=1;
|
120 |
$options['clean_dc_peripheral']=1;
|
121 |
|
122 |
// Printer Direct Connect : keep_dc -> tranfer / clean_dc : delete if unused : 1 = delete, 2 = purge
|
123 |
$options['keep_dc_printer']=1;
|
124 |
$options['clean_dc_printer']=1;
|
125 |
|
126 |
$options['keep_cartridges_type']=1;
|
127 |
$options['clean_cartridges_type']=1;
|
128 |
$options['keep_cartridges']=1;
|
129 |
|
130 |
//$options['keep_consumables_type']=1; // Not needed
|
131 |
$options['keep_consumables']=1;
|
132 |
|
133 |
//$entity_id=4;
|
134 |
//$items[COMPUTER_TYPE]=array(403);
|
135 |
//$transfer->moveItems($items,$entity_id,$options);
|
136 |
*/
|
137 |
?>
|