Changeset 249
- Timestamp:
- 05/23/07 17:50:13 (2 years ago)
- Files:
-
- trunk/webmin/lrs-inventory/agent/_relpos.php (modified) (1 diff)
- trunk/webmin/lrs-inventory/agent/importGLPI.php (modified) (3 diffs)
- trunk/webmin/lrs-inventory/config (modified) (1 diff)
- trunk/webmin/lrs-inventory/config.info (modified) (1 diff)
- trunk/webmin/lrs-inventory/config.info.fr (modified) (1 diff)
- trunk/webmin/lrs-inventory/lbs-inventory.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/webmin/lrs-inventory/agent/_relpos.php
r247 r249 1 1 <? 2 $phproot = "/var/www/glpi";2 $phproot = $config["glpi_dir"]; 3 3 ?> trunk/webmin/lrs-inventory/agent/importGLPI.php
r247 r249 21 21 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 22 22 23 # LRS paths init 24 include_once(dirname(__FILE__).'/../../lbs_common/lbs_common.php'); 25 $config = lib_read_file("/etc/webmin/lrs-inventory/config"); 26 23 27 # GLPI init 24 28 $NEEDED_ITEMS=array("computer", "device", "link", "monitor", "enterprise", "printer", "peripheral"); … … 31 35 # LRS Inventory init 32 36 error_reporting(E_ALL); 33 include_once( '/usr/share/webmin/lrs-inventory/classes/DataSource.php');37 include_once(dirname(__FILE__).'/../classes/DataSource.php'); 34 38 $datasource = & DataSource::getDefaultDataSource(); 35 $mach = "TEST__LDM";36 37 39 38 40 /** … … 570 572 } 571 573 572 import($argv[1]); 573 574 if (isset($argv[1]) && $config["glpi_sync"]) 575 import($argv[1]); 576 else 577 print "Error: no host given on command line or GLPI sync disabled.\n"; 574 578 ?> trunk/webmin/lrs-inventory/config
r208 r249 5 5 genfromocs=0 6 6 keep=20 7 glpi_sync=0 8 glpi_dir=/var/www/glpi trunk/webmin/lrs-inventory/config.info
r208 r249 5 5 genfromocs=Show general information using:,1,1-OCS Inventory,0-PXE Boot Inventory 6 6 keep=Number of inventories to keep in the database (by host),0 7 glpi_sync=Enable the GLPI synchronization,1,1-Yes,0-No 8 glpi_dir=GLPI installation directory,0 trunk/webmin/lrs-inventory/config.info.fr
r208 r249 5 5 genfromocs=Afficher les informations générales en utilisant:,1,1-L'inventaire OCS,0-L'inventaire au boot PXE 6 6 keep=Nombre d'inventaires conservés dans la BDD (par machine),0 7 glpi_sync=Activer la synchro avec GLPI,1,1-Oui,0-Non 8 glpi_dir=Répertoire d'installation GLPI,0 trunk/webmin/lrs-inventory/lbs-inventory.php
r133 r249 20 20 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 21 21 22 include_once( 'classes/DataSource.php');23 include_once( '../lbs_common/lbs_common.php');24 include_once( 'path.cgi');22 include_once(dirname(__FILE__).'/classes/DataSource.php'); 23 include_once(dirname(__FILE__).'/../lbs_common/lbs_common.php'); 24 include_once(dirname(__FILE__).'/path.cgi'); 25 25 26 26 ?>
