setLog('redirection_'.$_REQUEST['part'], $_REQUEST['siret']); header('Location: '.$_REQUEST['url']); die(); break; case 'main': require_once('./pages/main.php'); break; case 'international_recherche': $title='Recherche International'; $page2='international_recherche.php'; require_once './pages/main.php'; break; case 'international_identitec': $title = 'Identité International approfondie'; $page2='international_identitec.php'; require_once './pages/main.php'; break; case 'international_identite': $title='Identité - International'; $page2='international_identite.php'; require_once './pages/main.php'; break; case 'international_enquete': $title='Enquête - International'; $page2='international_enquete.php'; require_once './pages/main.php'; break; case 'international_enquetet': $title='Demande Enquête Terrain - International'; $page2='international_enquetet.php'; require_once './pages/main.php'; break; case 'recherche': if ($_REQUEST['vue']=='list' && $_POST['formR']['type']=='ent') $_SESSION['list_pre']=gzcompress(serialize($_POST['formR']),9); $title='Recherche'; $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'; $page2='moncompte.php'; include('./pages/main.php'); break; case 'administration': $title='Administration des utilisateurs'; $page2='administration.php'; include('./pages/main.php'); break; case 'administration_client': $title='Gestion des clients'; $page2='administration_client.php'; include('./pages/main.php'); break; case 'greffescmd': $title = 'Gestion des commandes INFOGREFFE'; $page2 = 'greffescmd.php'; include './pages/main.php'; break; case 'greffescmd_courrier': $title = 'Gestion des commandes Greffes par courrier'; $page2 = 'greffescmd_courrier.php'; include './pages/main.php'; break; case 'stats': $title='Statistiques'; $page2='stats.php'; include('./pages/main.php'); break; case 'identite': require_once 'identite/header.php'; $title = 'Identité - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '.substr($_REQUEST['siret'],6,3); $page2 = 'identite.php'; $profilPage = hasProfil($page); if($profilPage!==false && $_REQUEST['profil']==1 ) $page2 = $profilPage; 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); $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); $page2='etablissements.php'; include('./pages/main.php'); break; case 'carte': require_once './pages/carte.php'; break; case 'liens': $title='Liens - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '.substr($_REQUEST['siret'],6,3); $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); $page2='dirigeants.php'; include('./pages/main.php'); break; case 'annonces': require_once 'index_annonces.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); $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); $page2='bourse.php'; include('./pages/main.php'); break; case 'banque': $title='Relation banquaire - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '.substr($_REQUEST['siret'],6,3); $page2='banque.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); $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); $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); $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); $page2='marques.php'; include('./pages/main.php'); break; case 'getmarques': require_once('./pages/getMarques.php'); break; case 'pieces': $title='Commande de pièces officielles - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '.substr($_REQUEST['siret'],6,3); $page2='piecescmd.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 'kbis2': $title='KBis - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '.substr($_REQUEST['siret'],6,3); $page2='kbis2.php'; include('./pages/main.php'); break; case 'synthese': $title = 'Eléments financier'; $page2 = 'synthese.php'; require_once './pages/main.php'; break; // Code ajouté "synthese_perso" case 'synthese_perso': $title = 'Eléments financier'; $page2 = 'synthese_perso.php'; require_once './pages/main.php'; break; case 'bilans': $title='Bilans - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '.substr($_REQUEST['siret'],6,3); $page2='bilans.php'; include('./pages/main.php'); break; case 'ratios': $title = 'Eléments financier'; $page2 = 'ratios.php'; require_once './pages/main.php'; break; case 'indiscore': $title='indiScore - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '.substr($_REQUEST['siret'],6,3); $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); $page2='scorescf.php'; include('./pages/main.php'); break; case 'rsynthese': $title='Rapport de synthèse - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '.substr($_REQUEST['siret'],6,3); $page2='rsynthese.php'; include('./pages/main.php'); break; case 'rsynthesemin': $title='Rapport de synthèse - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '.substr($_REQUEST['siret'],6,3); $page2='rsynthesemin.php'; include('./pages/main.php'); break; case 'enquetec' : $title='Enquête commerciale - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '.substr($_REQUEST['siret'],6,3); $page2='enquetec.php'; include('./pages/main.php'); break; case 'survliste': $title='Surveillance'; $page2='survliste.php'; include('./pages/main.php'); break; case 'survlisteann': $title='Surveillance'; $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); $page2='greffes2.php'; include('./pages/main.php'); break; case 'surveillance': $title='Liste des établissements sous suveillances'; $page2='options_surv.php'; include('./pages/main.php'); break; case 'bdf': //Type de module $module = isset($_REQUEST['module']) ? $_REQUEST['module'] : ''; $siret = isset($_REQUEST['siret']) ? $_REQUEST['siret'] : ''; $service = isset($_REQUEST['service']) ? $_REQUEST['service'] : 'fiben'; $req = isset($_REQUEST['req']) ? $_REQUEST['req'] : ''; $denom = isset($_REQUEST['denom'])? $_REQUEST['denom'] : ''; $type = isset($_REQUEST['type'])? $_REQUEST['type'] : ''; $code = isset($_REQUEST['code'])? $_REQUEST['code'] : ''; $rechet = isset($_REQUEST['rechet'])? $_REQUEST['rechet'] : ''; $ape = isset($_REQUEST['ape'])? $_REQUEST['ape'] : ''; if($siret!='' && $req!='' && $siret!=$req) { $siret = ''; } elseif(substr($siret,0,9)==$req || empty($req)) { $req = substr($siret,0,9); } require_once 'bdf/bdf.php'; //Titre $title = 'Banque De France - '; $title.= strtoupper($service); if($siret==''){ $title.= ' - '.$req; }else{ $title.= ' - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '.substr($_REQUEST['siret'],6,3); } $page2='bdf.php'; include('./pages/main.php'); break; default: $title='Erreur'; afficheErreur("Erreur 10400 : La page demandée est inexistante !"); break; } function implode_r($glue, $pieces){ $ret = ''; foreach ($pieces as $piece) { if (is_array($piece)) { $ret .= implode_r($glue, $piece); } else { $ret .= $glue . $piece; } } return $ret; } logAction($tabInfo['login'], $page, isset($_REQUEST['siret']) ? $_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_r(', ', $_REQUEST)); if($sortie=='pdf'){ if(isset($siret)) $page.='-'.$siret; if(isset($idEntreprise)) $page.='-'.$idEntreprise; print_page($page); } ?>