From ab97efeb5f45271523346e604dcb233931f00e7c Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Thu, 10 Feb 2011 17:30:16 +0000 Subject: [PATCH] --- inc/ws/Controlleur/class.ws.droits.php | 8 +++++--- index.php | 8 ++++---- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/inc/ws/Controlleur/class.ws.droits.php b/inc/ws/Controlleur/class.ws.droits.php index 3cdd7fed8..5d48ba623 100644 --- a/inc/ws/Controlleur/class.ws.droits.php +++ b/inc/ws/Controlleur/class.ws.droits.php @@ -19,7 +19,7 @@ class wsDroits { $nav[__('Clients')] = 'clients'; } if ($core->user->ws_grade >= 5) { - $nav[__('Devis')]='demandes'; + $nav[__('Devis')] = 'demandes'; $nav[__('Traductions')] = 'traductions'; } if ($core->user->ws_grade < 5) { @@ -75,9 +75,11 @@ class wsDroits { $dao = new wsDAOSignature($core->con); - $signatures = $dao->selectAll(); + if (!isset($GLOBALS['allSignatures'])) { + $GLOBALS['allSignatures'] = $dao->selectAll(); + } $res = array(); - foreach($signatures as $signature) { + foreach($GLOBALS['allSignatures'] as $signature) { if (!$admin && !in_array($signature->signature_id, $mySignatures)) { continue; } diff --git a/index.php b/index.php index 8c4e1552c..1276f64c7 100644 --- a/index.php +++ b/index.php @@ -2,21 +2,21 @@ require_once(dirname(__FILE__) . '/inc/prepend.php'); ob_start(); -$meta=array(); +$meta = array(); $js[] = JS_PATH . '/common.js'; $js[] = JS_PATH . '/' . MODE . '.js'; $jsvar['IMG'] = IMG; $jsvar['SITE_PATH'] = SITE_PATH; $css[] = CSS_PATH . '/style.css'; -$standard='XHTML 1.0 Strict'; +$standard = 'XHTML 1.0 Strict'; echo $core->url->getDocument(); $buffer = ob_get_contents(); ob_clean(); - // $css['IE'] = CSS_PATH . '/ie.css'; -echo cubePage::page($buffer, $js, $jsvar, $css, array(), 9,false,$meta,array(),$standard); +echo cubePage::page($buffer, $js, $jsvar, $css, array(), 9, false, $meta, array(), $standard); fb($core->debug()); +fb($GLOBALS['all_queries'], 'SQL Queries', FirePHP::TABLE); ?> \ No newline at end of file -- 2.39.5