select( 'utilisateurs', 'id, email', "login='$user' AND password='$pwd' AND idClient=1 AND actif=1 AND deleted=0"); $_SESSION['userId']=$tabTmp[0][0]; $_SESSION['userMail']=$tabTmp[0][1]; if ( $_SESSION['userId'] ) {//&& $_SESSION['auth']) { $authorized = true; } } else { //if (isset($_GET["login"]) && (! $authorized)) { header('WWW-Authenticate: Basic Realm="Login please"'); header('HTTP/1.0 401 Unauthorized'); $_SESSION['auth'] = true; print('Login now or forever hold your clicks...'); exit; } if (!$authorized) { ?>

you have logged!

Requêtes Mensuelles Extranet/WS

select('sdv1.`logs`', "date(dateHeure) AS jour, page, COUNT(*) AS nb, YEAR(dateHeure) AS annee, MONTH(dateHeure) AS mois", "dateHeure>='$Y-$m-01' AND siren<>552144503 GROUP BY annee, mois, page ORDER BY annee, mois, page", false, MYSQL_ASSOC); $tabAff=array(); foreach ($tabConsos as $tabConso) { $mois=''.sprintf('%02s',$tabConso['mois']).'/'.$tabConso['annee']; $page=trim(''.$tabConso['page']); if ($page<>'') { $tabPages[]=$page; @$tabAff[$mois][$page]=$tabConso['nb']; } } $tabPages=array_unique($tabPages); ?> '') { ?> $tabConso) { ?>'.number_format($total,0,'.',chr(160)).''; } ?>
Mois/Année