extranet/www/index.php

250 lines
8.8 KiB
PHP
Raw Normal View History

<?
2009-03-24 08:10:48 +00:00
/**
* @file
* Cette page sert toutes les requ<EFBFBD>tes du site
*
*/
2009-03-05 08:31:21 +00:00
2009-07-20 16:17:33 +00:00
require_once 'index.fct.php';
require_once 'fwk.php';
require_once 'default/_includes/mysql.php';
2009-07-20 16:17:33 +00:00
if (ENV!='PRD') {
2009-03-25 09:34:04 +00:00
// 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'];
2009-03-25 09:34:04 +00:00
if (!isset($_REQUEST['sortie'])) $sortie='';
else $sortie=$_REQUEST['sortie'];
2009-04-02 09:54:01 +00:00
require_once 'index_auth.php';
if($sortie=='pdf'){
require_once 'print/print.php';
print_capture();
}
//Chargement du contenu
2009-03-25 09:34:04 +00:00
switch ($page) {
case 'referer':
2009-07-08 13:27:32 +00:00
$O2 = $client->setLog('redirection_'.$_REQUEST['part'], $_REQUEST['siret']);
header('Location: '.$_REQUEST['url']);
die();
2009-03-25 09:34:04 +00:00
break;
case 'main':
require_once('./pages/main.php');
2009-03-25 09:34:04 +00:00
break;
2009-04-07 17:44:17 +00:00
case 'international_recherche':
$title='Recherche International';
2009-04-07 17:44:17 +00:00
$page2='international_recherche.php';
require_once './pages/main.php';
break;
2009-05-04 17:00:41 +00:00
case 'international_identitec':
$title = 'Identit<69> International approfondie';
$page2='international_identitec.php';
require_once './pages/main.php';
2009-07-08 13:27:32 +00:00
break;
2009-05-04 17:00:41 +00:00
case 'international_identite':
$title='Identit<69> - International';
$page2='international_identite.php';
require_once './pages/main.php';
break;
case 'international_enquete':
$title='Enqu<71>te - International';
$page2='international_enquete.php';
require_once './pages/main.php';
break;
case 'international_enquetet':
$title='Demande Enqu<71>te Terrain - International';
$page2='international_enquetet.php';
require_once './pages/main.php';
2009-07-08 13:27:32 +00:00
break;
2009-03-25 09:34:04 +00:00
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');
2009-03-25 09:34:04 +00:00
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']);
2009-07-08 13:27:32 +00:00
if (isset($tabOptions['formatMail'])) $_SESSION['tabInfo']['formatMail'] =$tabOptions['formatMail'];
$title='Profil utilisateur';
$page2='moncompte.php';
include('./pages/main.php');
2009-03-25 09:34:04 +00:00
break;
case 'administration':
$title='Administration des utilisateurs';
$page2='administration.php';
include('./pages/main.php');
2009-03-25 09:34:04 +00:00
break;
case 'stats':
$title='Statistiques';
$page2='stats.php';
include('./pages/main.php');
2009-03-25 09:34:04 +00:00
break;
case 'identite':
2009-08-31 10:28:02 +00:00
$title='Identit&eacute; - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '.substr($_REQUEST['siret'],6,3);
$page2='identite.php';
include('./pages/main.php');
2009-03-25 09:34:04 +00:00
break;
case 'evenements':
$title='Ev&egrave;nements - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '.substr($_REQUEST['siret'],6,3);
$page2='evenements.php';
include('./pages/main.php');
2009-03-25 09:34:04 +00:00
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');
2009-03-25 09:34:04 +00:00
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');
2009-03-25 09:34:04 +00:00
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');
2009-03-25 09:34:04 +00:00
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');
2009-03-25 09:34:04 +00:00
break;
case 'annonces':
require_once 'index_annonces.php';
2009-03-25 09:34:04 +00:00
break;
case 'infosreg':
$title='Informations r&eacute;glement&eacute;es - Siren '. substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '.substr($_REQUEST['siret'],6,3);
$page2='infosreg.php';
include('./pages/main.php');
2009-03-25 09:34:04 +00:00
break;
case 'bourse':
$title='Informations boursi&egrave;res - Siren '. substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '.substr($_REQUEST['siret'],6,3);
$page2='bourse.php';
include('./pages/main.php');
2009-03-25 09:34:04 +00:00
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');
2009-03-25 09:34:04 +00:00
break;
case 'competences':
$title='Comp&eacute;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');
2009-03-25 09:34:04 +00:00
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');
2009-03-25 09:34:04 +00:00
break;
case 'marques':
$title='Marques d&eacute;pos&eacute;es - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '.substr($_REQUEST['siret'],6,3);
$page2='marques.php';
include('./pages/main.php');
2009-03-25 09:34:04 +00:00
break;
case 'getmarques':
require_once('./pages/getMarques.php');
break;
2009-03-25 09:34:04 +00:00
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');
2009-03-25 09:34:04 +00:00
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');
2009-03-25 09:34:04 +00:00
break;
2009-07-08 13:27:32 +00:00
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;
2009-03-25 09:34:04 +00:00
case 'synthese':
$title = 'El<45>ments financier';
$page2 = 'synthese.php';
require_once './pages/main.php';
2009-03-25 09:34:04 +00:00
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');
2009-03-25 09:34:04 +00:00
break;
case 'ratios':
$title = 'El<45>ments financier';
$page2 = 'ratios.php';
2009-07-08 13:27:32 +00:00
require_once './pages/main.php';
2009-03-25 09:34:04 +00:00
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');
2009-03-25 09:34:04 +00:00
break;
case 'scorescf':
$title='score Credit Safe &copy; - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '.substr($_REQUEST['siret'],6,3);
$page2='scorescf.php';
include('./pages/main.php');
2009-03-25 09:34:04 +00:00
break;
2009-07-08 13:27:32 +00:00
case 'enquetec' :
2009-04-28 16:00:42 +00:00
$title='Enqu<71>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;
2009-03-25 09:34:04 +00:00
case 'survliste':
$title='Surveillance';
$page2='survliste.php';
include('./pages/main.php');
2009-03-25 09:34:04 +00:00
break;
case 'survlisteann':
$title='Surveillance';
$page2='survlisteann.php';
include('./pages/main.php');
2009-03-25 09:34:04 +00:00
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&egrave;ces Officielles - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '.substr($_REQUEST['siret'],6,3);
$page2='greffes.php';
include('./pages/main.php');
2009-03-25 09:34:04 +00:00
break;
2009-05-22 07:03:57 +00:00
case 'surveillance':
$title='Liste des <20>tablissements sous suveillances';
$page2='options_surv.php';
include('./pages/main.php');
break;
2009-03-25 09:34:04 +00:00
default:
$title='Erreur';
afficheErreur("Erreur 10400 : La page demand<6E>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));
if($sortie=='pdf'){
print_page($page);
}
?>