Projet

Général

Profil

Révision 331724d8

Voir les différences:

config/config_db.php
1 1
<?php 
2
 class DB extends DBmysql { 
3
 var $dbhost	= 'localhost'; 
4
 var $dbuser 	= 'glpiu'; 
5
 var $dbpassword= 'F2D6nxPRA6HC'; 
6
 var $dbdefault	= 'glpi'; 
7
 } 
8
 ?>
2
class DB extends DBmysql { 
3
  var $dbhost	  = '192.168.100.1'; 
4
  var $dbuser 	  = 'glpiu'; 
5
  var $dbpassword = 'F2D6nxPRA6HC'; 
6
  var $dbdefault  = 'glpi'; 
7
} 
8
?>
plugins/anet_epacks/front/plugin_anet_epacks.view_array_recap.php
13 13
  define('GLPI_ROOT', '../../..');
14 14
 }
15 15
include_once (GLPI_ROOT . "/inc/includes.php");
16
include_once (GLPI_CONFIG_DIR . "/config_db_slave.php");
17

  
18
//On essaye d'utiliser le proxy/cache mysql
19
$DBSlave = new DBSlave;
16 20

  
17 21
//Fabrique la requete en fonction des besoins de liste des serveurs sous maintenance ou non
18 22
//$maintenance = 1 -> ceux qui sons sous maintenance (sur)
......
66 70

  
67 71
function local_make_array($q,$maintenance) {
68 72
  global $DB;
73
  global $DB;
69 74
  global $glpiid;
70 75

  
71 76
  $result = $DB->query($q) or die($DB->error());
......
259 264
$glpiid = $_SESSION['glpiID'];
260 265

  
261 266
global $DB;
267

  
262 268
$query = "SELECT glpi_profiles.name AS name,glpi_users_profiles.FK_entities as FK_entities FROM glpi_profiles,glpi_users_profiles,glpi_users WHERE glpi_users_profiles.FK_users='" . $glpiid . "' AND glpi_users_profiles.FK_profiles=glpi_profiles.ID AND glpi_users.FK_entities=glpi_users_profiles.FK_entities GROUP BY FK_entities";
263 269

  
264 270
//print $query;

Formats disponibles : Unified diff

Redmine Appliance - Powered by TurnKey Linux