From 201ef7f6398dd22221f3d59cb4b660b933775a26 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Wed, 3 Feb 2010 12:48:02 +0000 Subject: [PATCH] --- inc/config.inc.php | 2 +- inc/extranet/Controlleur/class.extranet.core.php | 2 +- index.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/inc/config.inc.php b/inc/config.inc.php index 65fe2ee43..beb71061e 100644 --- a/inc/config.inc.php +++ b/inc/config.inc.php @@ -24,7 +24,7 @@ if (in_array($_SERVER['HTTP_HOST'], array_merge($localrel, $localabs))) { } } else { // Définition des variables dans l'environnement de production - define('DB_HOST', '127.0.0.1'); + define('DB_HOST', 'localhost'); define('DB_NAME', 'extranet'); define('DB_USER', 'ws'); define('DB_PASSWORD', '*arica*2'); diff --git a/inc/extranet/Controlleur/class.extranet.core.php b/inc/extranet/Controlleur/class.extranet.core.php index f74949e96..aeaa862da 100644 --- a/inc/extranet/Controlleur/class.extranet.core.php +++ b/inc/extranet/Controlleur/class.extranet.core.php @@ -426,7 +426,7 @@ class extranetCore extends cubeCore { $this->createView('order_timereport', 'SELECT utilisateur_id,projet AS projet_id,MAX(date) AS derniere_activite FROM timereport,taches,projets WHERE taches.tache_id=timereport.tache_id AND taches.projet=projets.projet_id AND projets.status=0 GROUP BY utilisateur_id,taches.projet ORDER BY utilisateur_id ASC,MAX(date) DESC'); $this->createView('ca', 'SELECT SUM(total_ht) AS ca, YEAR(FROM_UNIXTIME(date_creation)) annee FROM factures WHERE status IN(1,2) GROUP BY annee'); $this->createView('ftpaccess', 'SELECT email AS userid,password AS passwd,utilisateur_id AS uid,' - . '\'1000\' AS gid,CONCAT(\'/usb/ftpextranet/\',utilisateur_id) AS homedir, \'/bin/false\' AS shell ' + . '\'1000\' AS gid,CONCAT(\''.FTPROOT.'\',utilisateur_id) AS homedir, \'/bin/false\' AS shell ' . 'FROM utilisateurs WHERE grade=0 ' . 'UNION ' . 'SELECT email AS userid,ws_password AS passwd,utilisateur_id AS uid,' diff --git a/index.php b/index.php index 077defc81..ff351a73a 100644 --- a/index.php +++ b/index.php @@ -10,8 +10,8 @@ $js[] = (JS_PATH . '/extranet.js'); $jsvar['IMG'] = IMG; $jsvar['SITE_PATH'] = SITE_PATH; $css[] = CSS_PATH . '/style.css'; -//$css['IE'] = CSS_PATH . '/ie.css'; - +// $css['IE'] = CSS_PATH . '/ie.css'; echo cubePage::page($buffer, $js, $jsvar, $css, array(), 6); +fb($core->debug()); ?> \ No newline at end of file -- 2.39.5