TailleFichierTemporaire( ) )); */ //header('Location: http://extranet"'.$NomFichier.'"'); } function getLogo($siteWeb, $siren) { include_once(FWK_PATH.'/common/curl.php'); if (substr($siteWeb,-1)<>'/') $siteWeb.='/'; $arrUrl=parse_url($siteWeb); $page=getUrl($siteWeb, '', '', '', false, $arrUrl['host'], '', 3); $body=$page['body']; if (preg_match('//Ui', $body, $matches)) { foreach ($matches[1] as $url) { if (substr($url,0,1)=='/' || substr($url,0,1)=='./' || substr($url,0,7)<>'http://') $url=$siteWeb.$url; //echo "Chercher dans : $url.
"; $logo2=getLogo($url, $siren); if ($logo2<>'') return $logo2; } }*/ return ''; } function redimage($img_src,$dst_w,$dst_h) { // Lit les dimensions de l'image $size = GetImageSize($img_src); $src_w = $size[0]; $src_h = $size[1]; // Teste les dimensions tenant dans la zone $test_h = round(($dst_w / $src_w) * $src_h); $test_w = round(($dst_h / $src_h) * $src_w); // Si Height final non précisé (0) if(!$dst_h) $dst_h = $test_h; // Sinon si Width final non précisé (0) elseif(!$dst_w) $dst_w = $test_w; // Sinon teste quel redimensionnement tient dans la zone elseif($test_h>$dst_h) $dst_w = $test_w; else $dst_h = $test_h; // Affiche les dimensions optimales return "width=".$dst_w." height=".$dst_h; } include realpath(dirname(__FILE__) . '/../framework/fwk.php'); define ('INCLUDE_PATH', realpath(dirname(__FILE__) . '/../includes/')); include( realpath(dirname(__FILE__) . '/../batch/mysql.php')); /* function getPassword($login) { switch ($login) { case 'jmartory': return 'jma456'; break; case 'bpanaccione': return 'ben789'; break; case 'ylenaour': return 'bzh4231*'; break; case 'mheitz': return 'marc123'; break; case 'vitelli': return 'buchert'; break; case 'michelraby': return 'lersi'; break; default: return false; break; } }*/ session_start(); $cle_cookie='sdjglsdkhmsoL68'; $timeout=900; $refresh=5; if (ENV<>'PRD') { // Pas de mise en cache WSDL pour SOAP ini_set('soap.wsdl_cache_enabled', 0); } if (!isset($_REQUEST['page'])) $page='main'; else $page=$_REQUEST['page']; if (!isset($_REQUEST['sortie'])) $sortie=''; else $sortie=$_REQUEST['sortie']; if ($_SESSION['connected']==true) { // On vérifié la validité de la session $tabInfo=$_SESSION['tabInfo']; if ($tabInfo['date_last_action']+$timeout'main' && $_REQUEST['action']<>'logon') { $message="Vous avez été déconnecté de l'extranet suite à un délai d'inactivité trop long (2)"; include('./pages/logout.php'); } // Sinon ok, on peut continuer switch ($page) { case 'referer': $client2 = new SoapClient(null, array( 'trace' => 1, 'soap_version' => SOAP_1_1, 'location' => WEBSERVICE_URL, 'uri' => WEBSERVICE_URI, 'login' => $_SESSION['tabInfo']['login'], 'password' => $_SESSION['tabInfo']['password'])); $O2 = $client2->setLog('redirection_'.$_REQUEST['part'], $_REQUEST['siret']); header('Location: '.$_REQUEST['url']); die(); break; case 'main': //echo "\n"; if ($_REQUEST['action']=='logon') { //echo "\n"; if (trim($_REQUEST['login'])=='') { $message="Erreur 10300 : Identifiant de connexion et/ou mot de passe incorrect !"; include('./pages/logout.php'); die(); } if ($_REQUEST['checkIp']=='only') { if ($_SERVER['REMOTE_ADDR']=='217.109.14.164' || $_SERVER['REMOTE_ADDR']=='217.109.14.180' || // REUNICA $_SERVER['REMOTE_ADDR']=='80.13.67.184' || $_SERVER['REMOTE_ADDR']=='80.13.97.240' || $_SERVER['REMOTE_ADDR']=='80.13.67.192' || $_SERVER['REMOTE_ADDR']=='80.13.97.251' || // REUNICA Arpège - Plage 1 de 217.109.14.160 à 217.109.14.191 preg_match('/217\.109\.14\.16./', $_SERVER['REMOTE_ADDR']) || preg_match('/217\.109\.14\.17./', $_SERVER['REMOTE_ADDR']) || preg_match('/217\.109\.14\.18./', $_SERVER['REMOTE_ADDR']) || $_SERVER['REMOTE_ADDR']=='217.109.14.190' || $_SERVER['REMOTE_ADDR']=='217.109.14.191' || // REUNICA Arpège - Plage 2 de 90.80.8.32 à 90.80.8.63 preg_match('/90\.80\.8\.3./', $_SERVER['REMOTE_ADDR']) || preg_match('/90\.80\.8\.4./', $_SERVER['REMOTE_ADDR']) || preg_match('/90\.80\.8\.5./', $_SERVER['REMOTE_ADDR']) || $_SERVER['REMOTE_ADDR']=='90.80.8.60' || $_SERVER['REMOTE_ADDR']=='90.80.8.61' || $_SERVER['REMOTE_ADDR']=='90.80.8.62' || $_SERVER['REMOTE_ADDR']=='90.80.8.63' || // REUNICA Arpège - Plage 3 de 83.206.181.192 à 83.206.181.223 preg_match('/83\.206\.181\.19./', $_SERVER['REMOTE_ADDR']) || preg_match('/83\.206\.181\.20./', $_SERVER['REMOTE_ADDR']) || preg_match('/83\.206\.181\.21./', $_SERVER['REMOTE_ADDR']) || $_SERVER['REMOTE_ADDR']=='83.206.181.220' || $_SERVER['REMOTE_ADDR']=='83.206.181.221' || $_SERVER['REMOTE_ADDR']=='83.206.181.222' || $_SERVER['REMOTE_ADDR']=='83.206.181.223' || // REUNICA Backup $_SERVER['REMOTE_ADDR']=='88.178.249.67' || $_SERVER['REMOTE_ADDR']=='88.185.121.243' ) // S&D 88.185.121.243 { if ($_REQUEST['login']=='testreunica') $_REQUEST['hach']='fboulu'; elseif ($_REQUEST['login']=='reunicacsf') $_REQUEST['hach']='fboulu'; } else { mail( 'ylenaour@scores-decisions.com',"IP ".$_SERVER['REMOTE_ADDR']." non déclarée pour ".$_REQUEST['login'] , 'REQUEST='.EOL.print_r($_REQUEST,true).'EOL'. 'SERVER='.EOL.print_r($_SERVER,true).'EOL'. 'SESSION='.EOL.print_r($_SESSION,true).'EOL'. 'ENV='.EOL.print_r($_ENV,true).'EOL'); afficheErreur('Erreur 10816 : Connexion impossible !'); } } else { // Demande de connexion //if (!preg_match('/(\d)/', $_REQUEST['x'])) afficheErreur('Erreur 10001 : Connexion impossible !'); //if ($_REQUEST['x']<0 || $_REQUEST['x']>24) afficheErreur('Erreur 10002 : Connexion impossible !'); //if (!preg_match('/(\d)/', $_REQUEST['y'])) afficheErreur('Erreur 10003 : Connexion impossible !'); //if ($_REQUEST['y']<0 || $_REQUEST['y']>24) afficheErreur('Erreur 10004 : Connexion impossible !'); if ($_REQUEST['pass']<>'') afficheErreur('Erreur 10005 : Connexion impossible !'); if ($_REQUEST['lang']<>'fr') afficheErreur('Erreur 10006 : Connexion impossible !'); $secureLocal=md5(date('Ymd').$_SERVER['REMOTE_ADDR'].$_SERVER['HTTP_USER_AGENT']); $secureDist =$_REQUEST['secure']; //if ($secureLocal<>$secureDist) afficheErreur("Erreur 10100 : Connexion impossible $secureLocal / $secureDist !"); $cookieSecure=$secureLocal.'/'.md5($cle_cookie); $tab=unserialize(@file_get_contents('/tmp/sd_'.$secureLocal.'.tmp')); //if ($tab['client_ip']<>$_SERVER['REMOTE_ADDR']) afficheErreur('Erreur 10101 : Connexion impossible !'); $tabIpInterdites=array( '81.252.88.*', '195.200.187.163', '213.11.81.41', '83.206.171.252', '81.255.32.139', '212.155.191.1*', '217.70.1*.17', '212.37.196.156', '80.245.60.121', '213.246.57.101', //'88.178.249.67', ); foreach ($tabIpInterdites as $ip) { if (preg_match('/^'.str_replace('*','.*',str_replace('.','\.',$ip)).'$/', $_SERVER['REMOTE_ADDR']) ) afficheErreur('Erreur 10105 : Connexion impossible !'); } //if ($tab['client_ua']<>$_SERVER['HTTP_USER_AGENT']) afficheErreur('Erreur 10102 : Connexion impossible !'); //if ($tab['client_cookie_client']<>$cookieSecure) afficheErreur('Erreur 10103 : Connexion impossible !'); } /** Utilisation du WS **/ $client = new SoapClient(null, array( 'trace' => 1, 'soap_version' => SOAP_1_1, 'location' => WEBSERVICE_URL, 'uri' => WEBSERVICE_URI, 'login' => $_REQUEST['login'], 'password' => $_REQUEST['hach'])); try { $O = $client->getInfosLogin($_REQUEST['login'], $_SERVER['REMOTE_ADDR']); $user=$O['result']; if ($user['connected']==true) { $tabInfo['login']=$_REQUEST['login']; $tabInfo['password']=$_REQUEST['hach']; $tabInfo['email']=$user['email']; $tabInfo['ip']=$_SERVER['REMOTE_ADDR']; $tabInfo['host']=gethostbyaddr($tabInfo['ip']); $tabInfo['resolution']=$_REQUEST['resolution']; $tabInfo['nbcolors']=$_REQUEST['nbcolors']; $tabInfo['user_agent']=$tab['client_ua']; $tabInfo['referer1']=$tab['client_referer']; $tabInfo['referer2']=$_SERVER['HTTP_REFERER']; $tabInfo['referer_login']=$_SERVER['HTTP_REFERER']; $tabInfo['date_page_www']=$tab['client_connexion']; $tabInfo['date_login']=time(); $tabInfo['date_last_action']=time(); $tabInfo['nbReponses']=$user['nbReponses']; $tabInfo['cookie_client']=md5('login'.$cookieSecure); $tabInfo['mode_edition']=0; $tabInfo['profil']=$user['profil']; $tabInfo['pref']=$user['pref']; $tabInfo['droits']=$user['droits']; $tabInfo['nom']=$user['nom']; $tabInfo['prenom']=$user['prenom']; $tabInfo['id']=$user['id']; $tabInfo['idClient']=$user['idClient']; $tabInfo['reference']=$user['reference']; $_SESSION['connected']=true; $_SESSION['tabInfo']=$tabInfo; include('./pages/main.php'); logAction($tabInfo['login'], $page, $_REQUEST['siret'], $tabInfo['ip'], $tabInfo['host'], $tabInfo['resolution'], $tabInfo['nbcolors'], $tabInfo['user_agent'],$tabInfo['referer1'], gmdate('Y/m/d H:i:s',$tabInfo['date_login']+3600), gmdate('Y/m/d H:i:s',$tabInfo['date_last_action']+3600), implode(', ',$_REQUEST)); } elseif ($O['error']['errnum']<>0) { $message='Erreur '. $O['error']['errnum'] .' : '. $O['error']['errmsg']; include('./pages/logout.php'); logAction($tabInfo['login'], $page, $_REQUEST['siret'], $tabInfo['ip'], $tabInfo['host'], $tabInfo['resolution'], $tabInfo['nbcolors'], $tabInfo['user_agent'],$tabInfo['referer1'], gmdate('Y/m/d H:i:s',$tabInfo['date_login']+3600), gmdate('Y/m/d H:i:s',$tabInfo['date_last_action']+3600), implode(', ',$_REQUEST)); print_r($tabInfoUser); die(); } else { $message="Erreur 10302 : Identifiant de connexion et/ou mot de passe incorrect !"; include('./pages/logout.php'); logAction($tabInfo['login'], $page, $_REQUEST['siret'], $tabInfo['ip'], $tabInfo['host'], $tabInfo['resolution'], $tabInfo['nbcolors'], $tabInfo['user_agent'],$tabInfo['referer1'], gmdate('Y/m/d H:i:s',$tabInfo['date_login']+3600), gmdate('Y/m/d H:i:s',$tabInfo['date_last_action']+3600), implode(', ',$_REQUEST)); print_r($tabInfoUser); die(); } die(); } catch (SoapFault $fault) { $message="Erreur 10301 : Identifiant de connexion et/ou mot de passe incorrect !"; //.$_REQUEST['login'].'/'.$_REQUEST['hach']; include('./pages/logout.php'); die(); } /*if (getPassword($_REQUEST['login'])) { $hash=md5($_REQUEST['login'].'|'.getPassword($_REQUEST['login'])); /* if ( ( $_REQUEST['login']=='ylenaour' || $_REQUEST['login']=='jmartory' || $_REQUEST['login']=='bpanaccione' || $_REQUEST['login']=='mheitz' ) && * if ($_REQUEST['hach']==$hash) { //echo '
';print_r($tabInfo);echo '
'; $_SESSION['connected']=true; $_SESSION['tabInfo']=$tabInfo; include('./pages/main.php'); die(); } else { $message="Erreur 10301 : Identifiant de connexion et/ou mot de passe incorrect !"; include('./pages/logout.php'); die(); } }*/ } elseif ($_REQUEST['action']=='logout') { // Demande de LOGOUT //echo "\n"; include('./pages/logout.php'); die(); } else { // Main sans action particulière //echo "\n"; include('./pages/main.php'); die(); } break; case 'recherche': //$strRecherche=serialize($tabRecherche); //$gzRecherche=urlencode(); if ($_REQUEST['vue']=='list') $_SESSION['list_pre']=gzcompress(serialize($_POST['formR']),9); $title='Recherche'; //echo "\n"; // Pages de recherche ou liste $page2='recherche.php'; include('./pages/main.php'); break; case 'moncompte': if (isset($_REQUEST['frmOptions'])) $tabOptions=$_REQUEST['frmOptions']; if (isset($tabOptions['rech_nbrep'])) $_SESSION['tabInfo']['nbReponses'] =$tabOptions['rech_nbrep']; if (isset($tabOptions['mode_edition'])) $_SESSION['tabInfo']['mode_edition']=1; if (isset($tabOptions['pref'])) $_SESSION['tabInfo']['pref'] =implode(' ', $tabOptions['pref']); if (isset($tabOptions['droits'])) $_SESSION['tabInfo']['droits'] =implode(' ', $tabOptions['droits']); if (isset($tabOptions['formatMail'])) $_SESSION['tabInfo']['formatMail'] =$tabOptions['formatMail']; $title='Profil utilisateur'; //echo "\n"; $page2='moncompte.php'; include('./pages/main.php'); break; case 'administration': /*if (isset($_REQUEST['frmOptions'])) $tabOptions=$_REQUEST['frmOptions']; if (isset($tabOptions['rech_nbrep'])) $_SESSION['tabInfo']['nbReponses'] =$tabOptions['rech_nbrep']; if (isset($tabOptions['mode_edition'])) $_SESSION['tabInfo']['mode_edition']=1; if (isset($tabOptions['pref'])) $_SESSION['tabInfo']['pref'] =implode(' ', $tabOptions['pref']); if (isset($tabOptions['droits'])) $_SESSION['tabInfo']['droits'] =implode(' ', $tabOptions['droits']); */ $title='Administration des utilisateurs'; $page2='administration.php'; include('./pages/main.php'); break; case 'stats': /*if (isset($_REQUEST['frmOptions'])) $tabOptions=$_REQUEST['frmOptions']; if (isset($tabOptions['rech_nbrep'])) $_SESSION['tabInfo']['nbReponses'] =$tabOptions['rech_nbrep']; if (isset($tabOptions['mode_edition'])) $_SESSION['tabInfo']['mode_edition']=1; if (isset($tabOptions['pref'])) $_SESSION['tabInfo']['pref'] =implode(' ', $tabOptions['pref']); if (isset($tabOptions['droits'])) $_SESSION['tabInfo']['droits'] =implode(' ', $tabOptions['droits']); */ $title='Statistiques'; $page2='stats.php'; include('./pages/main.php'); break; case 'identite': $title='Identité - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '. substr($_REQUEST['siret'],6,3); //echo "\n"; // Identité $page2='identite.php'; include('./pages/main.php'); break; case 'evenements': $title='Evènements - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '. substr($_REQUEST['siret'],6,3); //echo "\n"; // Identité $page2='evenements.php'; include('./pages/main.php'); break; case 'saisie': $title='Saisie/Edition - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '. substr($_REQUEST['siret'],6,3); $page2='saisie.php'; include('./pages/main.php'); break; case 'etablissements': $title='Etablissements - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '. substr($_REQUEST['siret'],6,3); //echo "\n"; // $page2='etablissements.php'; include('./pages/main.php'); break; case 'carte': include('./pages/carte.php'); break; /*$title='Géolocalisation - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '. substr($_REQUEST['siret'],6,3); //echo "\n"; // $page2='carte.php'; require('./pages/main.php'); break;*/ case 'liens': $title='Liens - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '. substr($_REQUEST['siret'],6,3); //echo "\n"; // Identité $page2='liens.php'; include('./pages/main.php'); break; case 'dirigeants': $title='Dirigeants - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '. substr($_REQUEST['siret'],6,3); //echo "\n"; // Identité $page2='dirigeants.php'; include('./pages/main.php'); break; case 'annonces': if ($_REQUEST['action']=='logon') { //echo "\n"; if (trim($_REQUEST['login'])=='') { $message="Erreur 10300 : Identifiant de connexion et/ou mot de passe incorrect !"; include('./pages/logout.php'); die(); } if ($_REQUEST['checkIp']=='only') { if ($_SERVER['REMOTE_ADDR']=='80.12.106.161' || // mederic $_SERVER['REMOTE_ADDR']=='80.12.106.129' || // mederic $_SERVER['REMOTE_ADDR']=='83.206.102.217' || // S&D Rambouillet $_SERVER['REMOTE_ADDR']=='88.185.121.243' // S&D Saulnier ) { if ($_REQUEST['login']=='mederic') $_REQUEST['hach']='braye'; elseif ($_REQUEST['login']=='crr') $_REQUEST['hach']='test1'; } else afficheErreur('Erreur 10816 : Connexion impossible !'); } elseif ($_REQUEST['checkIp']=='none') { if ($_REQUEST['login']<>'dgfip') afficheErreur('Erreur 10816 : Connexion impossible !'); } /** Utilisation du WS **/ $client = new SoapClient(null, array( 'trace' => 1, 'soap_version' => SOAP_1_1, 'location' => WEBSERVICE_URL, 'uri' => WEBSERVICE_URI, 'login' => $_REQUEST['login'], 'password' => $_REQUEST['hach'])); try { $O = $client->getInfosLogin($_REQUEST['login']); $user=$O['result']; if ($user['connected']==true) { $tabInfo['login']=$_REQUEST['login']; $tabInfo['password']=$_REQUEST['hach']; $tabInfo['email']=$user['email']; $tabInfo['ip']=$_SERVER['REMOTE_ADDR']; $tabInfo['host']=gethostbyaddr($tabInfo['ip']); $tabInfo['resolution']=$_REQUEST['resolution']; $tabInfo['nbcolors']=$_REQUEST['nbcolors']; $tabInfo['user_agent']=$tab['client_ua']; $tabInfo['referer1']=$tab['client_referer']; $tabInfo['referer2']=$_SERVER['HTTP_REFERER']; $tabInfo['date_page_www']=$tab['client_connexion']; $tabInfo['date_login']=time(); $tabInfo['date_last_action']=time(); $tabInfo['nbReponses']=$user['nbReponses']; $tabInfo['cookie_client']=md5('login'.$cookieSecure); $tabInfo['mode_edition']=0; $tabInfo['profil']=$user['profil']; $tabInfo['pref']=$user['pref']; $tabInfo['droits']=$user['droits']; $tabInfo['nom']=$user['nom']; $tabInfo['prenom']=$user['prenom']; $tabInfo['id']=$user['id']; $tabInfo['idClient']=$user['idClient']; $tabInfo['reference']=$user['reference']; $_SESSION['connected']=true; $_SESSION['tabInfo']=$tabInfo; logAction($tabInfo['login'], $page, $_REQUEST['siret'], $tabInfo['ip'], $tabInfo['host'], $tabInfo['resolution'], $tabInfo['nbcolors'], $tabInfo['user_agent'],$tabInfo['referer1'], gmdate('Y/m/d H:i:s',$tabInfo['date_login']+3600), gmdate('Y/m/d H:i:s',$tabInfo['date_last_action']+3600), implode(', ',$_REQUEST)); } else { $message="Erreur 10302 : Identifiant de connexion et/ou mot de passe incorrect !"; include('./pages/logout.php'); logAction($tabInfo['login'], $page, $_REQUEST['siret'], $tabInfo['ip'], $tabInfo['host'], $tabInfo['resolution'], $tabInfo['nbcolors'], $tabInfo['user_agent'],$tabInfo['referer1'], gmdate('Y/m/d H:i:s',$tabInfo['date_login']+3600), gmdate('Y/m/d H:i:s',$tabInfo['date_last_action']+3600), implode(', ',$_REQUEST)); } } catch (SoapFault $fault) { $message="Erreur 10301 : Identifiant de connexion et/ou mot de passe incorrect !"; include('./pages/logout.php'); die(); } } if (isset($_REQUEST['idan']) && $_REQUEST['idan']*1<>0 && $_REQUEST['vue']=='balo' && isset($_GET['mode']) && $_GET['mode']=='pdf' ) { $tmp=explode('.', $_REQUEST['idan']); $rcs=substr($_REQUEST['siret'],0,9); if (is_numeric($tmp[0])) $num=$tmp[0]; if (is_numeric($tmp[1])) $par=$tmp[1]; $conid = mysql_pconnect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS); if (!($conid === false)) { if (mysql_select_db(MYSQL_DB, $conid) === false) die('Base de données indisponible'); } $tabTmp=mysql_select('balo', 'Url_Annonce_Pdf, YEAR(Date_Parution) as Annee', "Societe_Rcs='$rcs' AND Num_Affaire='$num' AND Num_Parution='$par'"); $ann=$tabTmp[0]; $file = PATH_DATA.'/jo/balo/'.$ann['Annee'].'/'.basename($ann['Url_Annonce_Pdf']); if (file_exists($file)) { header("Pragma: public"); header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: must-revalidate"); header("Content-type: application/pdf"); header("Content-Length: ".filesize($file)); header("Content-disposition: inline; filename=$file"); header("Accept-Ranges: ".filesize($file)); readfile($file); } else afficheErreur('Erreur 11000 : Document inexistant !'); die(); } $title='Annonces légales - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '. substr($_REQUEST['siret'],6,3); //echo "\n"; $page2='annonces.php'; include('./pages/main.php'); break; case 'infosreg': $title='Informations réglementées - Siren '. substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '. substr($_REQUEST['siret'],6,3); //echo "\n"; $page2='infosreg.php'; include('./pages/main.php'); break; case 'bourse': $title='Informations boursières - Siren '. substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '. substr($_REQUEST['siret'],6,3); //echo "\n"; $page2='bourse.php'; include('./pages/main.php'); break; case 'liasse': $title='Liasse fiscale - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '. substr($_REQUEST['siret'],6,3); //echo "\n"; $page2='liasse.php'; include('./pages/main.php'); break; case 'competences': $title='Compétences Territoriales - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '. substr($_REQUEST['siret'],6,3); //echo "\n"; $page2='competences.php'; include('./pages/main.php'); break; case 'conventions': $title='Conventions Collectives - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '. substr($_REQUEST['siret'],6,3); //echo "\n"; $page2='conventions.php'; include('./pages/main.php'); break; case 'marques': $title='Marques déposées - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '. substr($_REQUEST['siret'],6,3); //echo "\n"; $page2='marques.php'; include('./pages/main.php'); break; case 'pieces': $title='Commande de pi&egarv;ces officielles - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '. substr($_REQUEST['siret'],6,3); $page2='pieces.php'; include('./pages/main.php'); break; case 'kbis': $title='KBis - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '. substr($_REQUEST['siret'],6,3); $page2='kbis.php'; include('./pages/main.php'); break; case 'bilans': $title='Bilans - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '. substr($_REQUEST['siret'],6,3); //echo "\n"; $page2='bilans.php'; include('./pages/main.php'); break; case 'indiscore': $title='indiScore - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '. substr($_REQUEST['siret'],6,3); //echo "\n"; $page2='indiscore.php'; include('./pages/main.php'); break; case 'scorescf': $title='score Credit Safe © - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '. substr($_REQUEST['siret'],6,3); //echo "\n"; $page2='scorescf.php'; include('./pages/main.php'); break; case 'survliste': $title='Surveillance'; //echo "\n"; // Pages de recherche ou liste $page2='survliste.php'; include('./pages/main.php'); break; case 'survlisteann': $title='Surveillance'; //echo "\n"; // Pages de recherche ou liste $page2='survlisteann.php'; include('./pages/main.php'); break; case 'avis': include('./pages/avis.php'); break; case 'actes': include('./pages/actes.php'); break; case 'attente': include('./pages/attente.php'); break; case 'original': include('./pages/original.php'); break; case 'fichier': include('./pages/fichier.php'); break; case 'greffes': $title='Pièces Officielles - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '. substr($_REQUEST['siret'],6,3); //include('./pages/.php'); $page2='greffes.php'; include('./pages/main.php'); break; default: $title='Erreur'; //echo "\n"; // Page inexistante afficheErreur("Erreur 10400 : La page demandée est inexistante !"); break; } logAction($tabInfo['login'], $page, $_REQUEST['siret'], $tabInfo['ip'], $tabInfo['host'], $tabInfo['resolution'], $tabInfo['nbcolors'], $tabInfo['user_agent'],$tabInfo['referer1'], gmdate('Y/m/d H:i:s',$tabInfo['date_login']+3600), gmdate('Y/m/d H:i:s',$tabInfo['date_last_action']+3600), implode(', ',$_REQUEST)); /* $message='Erreur 10200 : Connexion impossible !'; echo ""; include('./pages/logout.php'); die();*/ if ($sortie=='pdf') { ob_end_flush(); readfile($fichierPdf); } ?>