2010-03-25 13:44:32 +00:00
|
|
|
<?php
|
2009-03-24 08:10:48 +00:00
|
|
|
/**
|
|
|
|
* @file
|
2010-02-10 17:27:03 +00:00
|
|
|
* Cette page sert toutes les requêtes du site
|
2009-03-24 08:10:48 +00:00
|
|
|
*/
|
2010-09-14 10:39:01 +00:00
|
|
|
require_once '../config/prepend.php';
|
2009-07-20 16:17:33 +00:00
|
|
|
require_once 'fwk.php';
|
2011-01-11 09:21:37 +00:00
|
|
|
require_once 'maintenance/maintenance.php';
|
2011-01-21 07:46:11 +00:00
|
|
|
require_once 'index.fct.php';
|
2010-04-12 12:47:54 +00:00
|
|
|
require_once 'index_auth.php';
|
2010-04-14 16:00:45 +00:00
|
|
|
require_once 'user/user.php';
|
2009-02-17 13:14:53 +00:00
|
|
|
|
2010-03-03 08:13:15 +00:00
|
|
|
if (!isset($_REQUEST['page'])) {
|
|
|
|
$page = 'main';
|
|
|
|
} else {
|
|
|
|
$page = $_REQUEST['page'];
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!isset($_REQUEST['sortie'])) {
|
|
|
|
$sortie = '';
|
|
|
|
} else {
|
|
|
|
$sortie = $_REQUEST['sortie'];
|
|
|
|
}
|
2009-02-17 13:14:53 +00:00
|
|
|
|
2010-03-03 08:13:15 +00:00
|
|
|
if ($sortie == 'pdf') {
|
2010-07-15 14:58:31 +00:00
|
|
|
require_once 'print/print.php';
|
2010-03-03 08:13:15 +00:00
|
|
|
print_capture();
|
2009-08-11 16:53:26 +00:00
|
|
|
}
|
|
|
|
|
2010-04-27 07:19:30 +00:00
|
|
|
$siret = page_param('siret');
|
|
|
|
$siren = page_param('siren');
|
|
|
|
$idEntreprise = page_param('idEntreprise');
|
2010-03-03 16:56:17 +00:00
|
|
|
//Chargement du contenu
|
|
|
|
switch ($page)
|
|
|
|
{
|
2011-03-30 14:04:17 +00:00
|
|
|
case 'GiantIdentiteSociete':
|
|
|
|
$title = 'Identite international';
|
|
|
|
$page2 = 'giant/GiantIdentiteSociete.php';
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/indexGiant.php';
|
|
|
|
break;
|
|
|
|
case 'RapportGiant':
|
|
|
|
$title = 'Rapport international';
|
|
|
|
$page2 = 'giant/RapportGiantShow.php';
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/indexGiant.php';
|
|
|
|
break;
|
2010-06-17 15:34:56 +00:00
|
|
|
case 'referer':
|
|
|
|
$O2 = $client->setLog('redirection_'.$_REQUEST['part'],
|
|
|
|
$_REQUEST['siret']);
|
|
|
|
header('Location: '.$_REQUEST['url']);
|
2010-09-14 10:39:01 +00:00
|
|
|
exit; break;
|
2010-07-15 14:58:31 +00:00
|
|
|
case 'telechargement':
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/telechargement.php';
|
2010-09-14 10:39:01 +00:00
|
|
|
exit; break;
|
|
|
|
case 'naf':
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/nafajax.php';
|
|
|
|
exit; break;
|
|
|
|
case 'graydon':
|
|
|
|
require_once 'graydon/index.php';
|
|
|
|
exit; break;
|
2010-06-17 15:34:56 +00:00
|
|
|
case 'international_recherche':
|
|
|
|
$title = 'Recherche International';
|
|
|
|
$page2 = 'international_recherche.php';
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
|
|
|
case 'international_identite':
|
|
|
|
$title = 'Identité - International';
|
|
|
|
$page2 = 'international_identite.php';
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
2011-03-30 14:04:17 +00:00
|
|
|
//giant
|
|
|
|
case 'giant_fiche_societe' :
|
|
|
|
$title = 'Identité Internatioal';
|
|
|
|
$page = _PAGE_DIRECTORY_GIANT_.'giant_fiche_societe.php';
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/'._PAGE_DIRECTORY_GIANT_.'main.php';
|
|
|
|
break;
|
2010-09-03 08:00:14 +00:00
|
|
|
case 'giant_identite':
|
|
|
|
$title = 'Identité - International';
|
|
|
|
$page2 = 'giant_identite.php';
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
2010-06-17 15:34:56 +00:00
|
|
|
case 'international_enquete':
|
|
|
|
$title = 'Enquête - International';
|
|
|
|
$page2 = 'international_enquete.php';
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
2011-03-30 14:04:17 +00:00
|
|
|
//giant
|
2010-09-03 08:00:14 +00:00
|
|
|
case 'giant_enquete':
|
|
|
|
$title = 'Enquête - International';
|
|
|
|
$page2 = 'giant_enquete.php';
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
2010-06-17 15:34:56 +00:00
|
|
|
case 'international_enquetet':
|
|
|
|
$title = 'Demande Enquête Terrain - International';
|
|
|
|
$page2 = 'international_enquetet.php';
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
|
|
|
case 'recherche':
|
|
|
|
$title = 'Recherche';
|
|
|
|
$page2 = 'recherche.php';
|
|
|
|
require_once realpath(dirname(__FILE__)).'/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';
|
|
|
|
if ($_SESSION['tabInfo']['profil']=='Administrateur' ||
|
|
|
|
$_SESSION['tabInfo']['profil']=='SuperAdministrateur' ||
|
|
|
|
hasPerm('monprofil')) {
|
|
|
|
$page2 = 'moncompte.php';
|
|
|
|
} else {
|
|
|
|
$page2 = 'themes/default/error-perms.tpl.php';
|
2010-04-27 11:46:22 +00:00
|
|
|
|
2010-06-17 15:34:56 +00:00
|
|
|
}
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
|
|
|
case 'administration':
|
|
|
|
$title = 'Administration des utilisateurs';
|
|
|
|
if ($_SESSION['tabInfo']['profil']=='SuperAdministrateur' ||
|
|
|
|
$_SESSION['tabInfo']['profil']=='Administrateur'){
|
|
|
|
$page2 = 'administration.php';
|
|
|
|
} else {
|
|
|
|
$page2 = 'themes/default/error-perms.tpl.php';
|
|
|
|
}
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
|
|
|
case 'administration_client':
|
|
|
|
$title = 'Gestion des clients';
|
|
|
|
if ($_SESSION['tabInfo']['profil']=='SuperAdministrateur'){
|
|
|
|
$page2 = 'administration_client.php';
|
|
|
|
} else {
|
|
|
|
$page2 = 'themes/default/error-perms.tpl.php';
|
|
|
|
}
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
|
|
|
case 'greffescmd':
|
2010-07-06 14:15:55 +00:00
|
|
|
//Gestion des requetes en Ajax
|
|
|
|
if ( isset($_REQUEST['q']) ){
|
|
|
|
require_once '../includes/greffe/index.php';
|
|
|
|
exit;
|
|
|
|
}
|
2010-11-26 16:12:57 +00:00
|
|
|
$raisonSociale = etabSession($siret, $idEntreprise);
|
2010-07-06 14:15:55 +00:00
|
|
|
$title = 'Gestion des commandes INFOGREFFE';
|
2010-06-17 15:34:56 +00:00
|
|
|
$page2 = 'greffescmd.php';
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
|
|
|
case 'international_commandes':
|
2010-09-14 10:39:01 +00:00
|
|
|
isset($_REQUEST['ajax'])? $ajax=TRUE : $ajax=FALSE;
|
|
|
|
if($ajax===TRUE)
|
|
|
|
{
|
|
|
|
require_once './pages/international_commandes.php';
|
|
|
|
exit;
|
|
|
|
}
|
2010-06-17 15:34:56 +00:00
|
|
|
$title = 'Commandes - International';
|
|
|
|
$page2 = 'international_commandes.php';
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
2011-03-30 14:04:17 +00:00
|
|
|
//giant
|
2010-09-03 08:00:14 +00:00
|
|
|
case 'giant_commandes':
|
2010-09-14 10:39:01 +00:00
|
|
|
isset($_REQUEST['ajax'])? $ajax=TRUE : $ajax=FALSE;
|
|
|
|
if($ajax===TRUE)
|
|
|
|
{
|
|
|
|
require_once './pages/giant_commandes.php';
|
|
|
|
exit;
|
|
|
|
}
|
2010-09-03 08:00:14 +00:00
|
|
|
$title = 'Commandes - Giant';
|
|
|
|
$page2 = 'giant_commandes.php';
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
|
|
|
case 'giant_rapport':
|
|
|
|
$title = 'International - Rapport';
|
|
|
|
$page2 = 'giant_rapport.php';
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
2011-03-30 14:04:17 +00:00
|
|
|
//end giant.
|
2010-06-17 15:34:56 +00:00
|
|
|
case 'stats':
|
|
|
|
$title = 'Statistiques';
|
|
|
|
$page2 = 'stats.php';
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
2010-04-26 14:45:45 +00:00
|
|
|
case 'identite':
|
2011-03-16 13:28:34 +00:00
|
|
|
|
|
|
|
$title = titreAvecSiren('Identité');
|
2010-03-03 16:56:17 +00:00
|
|
|
$page2 = 'identite.php';
|
2011-03-16 13:28:34 +00:00
|
|
|
|
|
|
|
$pageDiff = false;
|
|
|
|
|
|
|
|
//Fiche AGS - A faire disparaitre
|
|
|
|
if (isset($_REQUEST['profil']) && $_REQUEST['profil'] == 1) {
|
|
|
|
$profilPage = hasProfil($page);
|
|
|
|
if ($profilPage !== false) {
|
|
|
|
$page2 = $profilPage;
|
|
|
|
$pageDiff = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//Fiche Procédure Collective
|
|
|
|
if (isset($_REQUEST['procol']) && $_REQUEST['procol'] == 1) {
|
|
|
|
$title = titreAvecSiren('Fiche procédure collective');
|
|
|
|
if (hasPerm('idprocol')){
|
|
|
|
$page2 = 'identite/procol.php';
|
|
|
|
} else {
|
|
|
|
$page2 = 'themes/default/error-perms.tpl.php';
|
|
|
|
}
|
|
|
|
$pageDiff = true;
|
2010-03-03 08:13:15 +00:00
|
|
|
}
|
2011-03-16 13:28:34 +00:00
|
|
|
require_once 'identite/header.php';
|
2010-03-03 16:56:17 +00:00
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
2011-03-16 13:28:34 +00:00
|
|
|
|
2011-01-25 09:13:42 +00:00
|
|
|
case 'identite_procol':
|
2011-03-16 13:28:34 +00:00
|
|
|
|
2010-04-06 10:31:02 +00:00
|
|
|
require_once 'identite/header.php';
|
|
|
|
$title = titreAvecSiren('Fiche procédure collective');
|
2010-06-14 15:20:17 +00:00
|
|
|
if (hasPerm('idprocol')){
|
|
|
|
$page2 = 'identite_procol.php';
|
|
|
|
} else {
|
|
|
|
$page2 = 'themes/default/error-perms.tpl.php';
|
|
|
|
}
|
2010-04-06 10:31:02 +00:00
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
2011-03-16 13:28:34 +00:00
|
|
|
|
2010-03-03 16:56:17 +00:00
|
|
|
case 'evenements':
|
2010-11-26 16:12:57 +00:00
|
|
|
$raisonSociale = etabSession($siret, $idEntreprise);
|
2010-03-03 16:56:17 +00:00
|
|
|
$title = titreAvecSiren('Evènements');
|
|
|
|
$page2 = 'evenements.php';
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
2010-06-17 15:34:56 +00:00
|
|
|
case 'saisieajax':
|
|
|
|
require_once '../includes/saisie/index.php';
|
2010-07-06 09:24:32 +00:00
|
|
|
exit;
|
|
|
|
break;
|
2010-03-03 16:56:17 +00:00
|
|
|
case 'saisie':
|
2010-03-12 09:41:59 +00:00
|
|
|
$title = titreAvecSiren('Saisie/Edition');
|
2010-04-26 14:45:45 +00:00
|
|
|
if (hasModeEdition()){
|
|
|
|
$page2 = 'saisie.php';
|
|
|
|
} else {
|
|
|
|
$page2 = 'themes/default/error-perms.tpl.php';
|
|
|
|
}
|
2010-03-03 16:56:17 +00:00
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
|
|
|
case 'etablissements':
|
2010-11-26 16:12:57 +00:00
|
|
|
$raisonSociale = etabSession($siret, $idEntreprise);
|
2010-03-12 09:41:59 +00:00
|
|
|
$title = titreAvecSiren('Liste des établissements');
|
2010-03-03 16:56:17 +00:00
|
|
|
$page2 = 'etablissements.php';
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
|
|
|
case 'carte':
|
|
|
|
require_once './pages/carte.php';
|
|
|
|
break;
|
|
|
|
case 'liens':
|
2010-11-26 16:12:57 +00:00
|
|
|
$raisonSociale = etabSession($siret, $idEntreprise);
|
2010-03-03 16:56:17 +00:00
|
|
|
$title = titreAvecSiren('Liens');
|
|
|
|
$page2 = 'liens.php';
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
|
|
|
case 'dirigeants':
|
2010-11-26 16:12:57 +00:00
|
|
|
$raisonSociale = etabSession($siret, $idEntreprise);
|
2010-03-03 16:56:17 +00:00
|
|
|
$title = titreAvecSiren('Dirigeants');
|
|
|
|
$page2 = 'dirigeants.php';
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
|
|
|
case 'annonces':
|
2010-11-29 08:58:50 +00:00
|
|
|
$raisonSociale = etabSession($siret, $idEntreprise);
|
2010-03-03 16:56:17 +00:00
|
|
|
require_once 'index_annonces.php';
|
|
|
|
break;
|
|
|
|
case 'infosreg':
|
2010-11-26 16:12:57 +00:00
|
|
|
$raisonSociale = etabSession($siret, $idEntreprise);
|
2010-03-03 16:56:17 +00:00
|
|
|
$title = titreAvecSiren('Informations réglementées');
|
|
|
|
$page2 = 'infosreg.php';
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
|
|
|
case 'bourse':
|
2010-11-26 16:12:57 +00:00
|
|
|
$raisonSociale = etabSession($siret, $idEntreprise);
|
2010-03-03 16:56:17 +00:00
|
|
|
$title = titreAvecSiren('Informations boursières');
|
|
|
|
$page2 = 'bourse.php';
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
|
|
|
case 'banque':
|
2010-11-26 16:12:57 +00:00
|
|
|
$raisonSociale = etabSession($siret, $idEntreprise);
|
2010-03-03 16:56:17 +00:00
|
|
|
$title = titreAvecSiren('Relation banquaire');
|
|
|
|
$page2 = 'banque.php';
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
|
|
|
case 'liasse':
|
2010-11-26 16:12:57 +00:00
|
|
|
$raisonSociale = etabSession($siret, $idEntreprise);
|
2010-11-16 14:44:45 +00:00
|
|
|
//Gestion des requetes en Ajax
|
2010-11-26 11:26:39 +00:00
|
|
|
isset($_REQUEST['q']) ? $q = $_REQUEST['q'] : $q = '';
|
|
|
|
if (!empty($q)){
|
|
|
|
$params = explode('/', $q);
|
|
|
|
$action = $params[0];
|
|
|
|
$element = $params[1];
|
|
|
|
if ($action=='export'){
|
|
|
|
require_once '../includes/liasse/liasse.php';
|
|
|
|
exit;
|
|
|
|
}
|
2010-11-16 14:44:45 +00:00
|
|
|
}
|
2010-03-03 16:56:17 +00:00
|
|
|
$title = titreAvecSiren('Liasse fiscale');
|
|
|
|
$page2 = 'liasse.php';
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
|
|
|
case 'competences':
|
2010-11-26 16:12:57 +00:00
|
|
|
$raisonSociale = etabSession($siret, $idEntreprise);
|
2010-03-03 16:56:17 +00:00
|
|
|
$title = titreAvecSiren('Compétences Territoriales');
|
|
|
|
$page2 = 'competences.php';
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
|
|
|
case 'conventions':
|
2010-11-26 16:12:57 +00:00
|
|
|
$raisonSociale = etabSession($siret, $idEntreprise);
|
2010-03-03 16:56:17 +00:00
|
|
|
$title = titreAvecSiren('Conventions Collectives');
|
|
|
|
$page2 = 'conventions.php';
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
|
|
|
case 'marques':
|
2010-11-26 16:12:57 +00:00
|
|
|
$raisonSociale = etabSession($siret, $idEntreprise);
|
2010-03-03 16:56:17 +00:00
|
|
|
$title = titreAvecSiren('Marques déposées');
|
2010-04-26 14:45:45 +00:00
|
|
|
if (hasPerm('marques')){
|
|
|
|
$page2 = 'marques.php';
|
|
|
|
} else {
|
|
|
|
$page2 = 'themes/default/error-perms.tpl.php';
|
|
|
|
}
|
2010-03-03 16:56:17 +00:00
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
|
|
|
case 'getmarques':
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/getMarques.php';
|
|
|
|
break;
|
|
|
|
case 'pieces':
|
2010-11-26 16:12:57 +00:00
|
|
|
$raisonSociale = etabSession($siret, $idEntreprise);
|
2010-03-03 16:56:17 +00:00
|
|
|
titreAvecSiren('Commande de pièces officielles');
|
|
|
|
$page2 = 'piecescmd.php';
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
|
|
|
case 'kbis':
|
|
|
|
$title = titreAvecSiren('KBis');
|
|
|
|
$page2 = 'kbis.php';
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
|
|
|
case 'kbis2':
|
2010-09-14 10:39:01 +00:00
|
|
|
isset($_REQUEST['ajax'])? $ajax=TRUE : $ajax=FALSE;
|
|
|
|
if($ajax===TRUE)
|
|
|
|
{
|
|
|
|
require_once 'kbis/kbis_ajax.php';
|
|
|
|
exit;
|
|
|
|
}
|
2010-11-26 16:12:57 +00:00
|
|
|
$raisonSociale = etabSession($siret, $idEntreprise);
|
2010-03-03 16:56:17 +00:00
|
|
|
$title = titreAvecSiren('KBis');
|
2010-04-26 14:45:45 +00:00
|
|
|
if (hasPerm('kbis')){
|
|
|
|
$page2 = 'kbis2.php';
|
|
|
|
} else {
|
|
|
|
$page2 = 'themes/default/error-perms.tpl.php';
|
|
|
|
}
|
2010-03-03 16:56:17 +00:00
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
|
|
|
case 'synthese':
|
2010-09-14 10:39:01 +00:00
|
|
|
//Gestion des requetes en Ajax
|
|
|
|
if (isset($_REQUEST['q']) && $_REQUEST['q']=='dgraph'){
|
|
|
|
require_once '../includes/ratios/synthese_dgraph.php';
|
|
|
|
exit;
|
|
|
|
}
|
2010-11-26 16:12:57 +00:00
|
|
|
$raisonSociale = etabSession($siret, $idEntreprise);
|
2010-03-03 16:56:17 +00:00
|
|
|
$title = 'Eléments financier';
|
|
|
|
$page2 = 'synthese.php';
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
|
|
|
// Code ajouté "synthese_perso"
|
|
|
|
case 'synthese_perso':
|
|
|
|
$title = 'Eléments financier';
|
|
|
|
$page2 = 'synthese_perso.php';
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
|
|
|
case 'bilans':
|
2010-11-26 16:12:57 +00:00
|
|
|
$raisonSociale = etabSession($siret, $idEntreprise);
|
2010-03-03 16:56:17 +00:00
|
|
|
$title = titreAvecSiren('Bilans');
|
|
|
|
$page2 = 'bilans.php';
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
|
|
|
case 'ratios':
|
2010-09-14 10:39:01 +00:00
|
|
|
//Gestion des requetes en Ajax
|
|
|
|
if (isset($_REQUEST['q']) && $_REQUEST['q']=='dgraph'){
|
|
|
|
require_once '../includes/ratios/ratios_dgraph.php';
|
|
|
|
exit;
|
|
|
|
}
|
2010-11-26 16:12:57 +00:00
|
|
|
$raisonSociale = etabSession($siret, $idEntreprise);
|
2010-03-03 16:56:17 +00:00
|
|
|
$title = 'Eléments financier';
|
|
|
|
$page2 = 'ratios.php';
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
2010-07-12 13:48:35 +00:00
|
|
|
case 'flux':
|
2010-11-26 16:12:57 +00:00
|
|
|
$raisonSociale = etabSession($siret, $idEntreprise);
|
2010-07-12 13:48:35 +00:00
|
|
|
$title = 'Flux de Trésorerie';
|
|
|
|
$page2 = 'flux.php';
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
2010-03-03 16:56:17 +00:00
|
|
|
case 'indiscore':
|
2010-11-26 16:12:57 +00:00
|
|
|
$raisonSociale = etabSession($siret, $idEntreprise);
|
2010-03-03 16:56:17 +00:00
|
|
|
$title = titreAvecSiren('indiScore');
|
2010-04-26 14:45:45 +00:00
|
|
|
if (hasPerm('indiscore')){
|
|
|
|
$page2 = 'indiscore.php';
|
|
|
|
} else {
|
|
|
|
$page2 = 'themes/default/error-perms.tpl.php';
|
|
|
|
}
|
2010-03-03 16:56:17 +00:00
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
|
|
|
case 'scorescf':
|
2010-11-26 16:12:57 +00:00
|
|
|
$raisonSociale = etabSession($siret, $idEntreprise);
|
2010-03-03 16:56:17 +00:00
|
|
|
$title = titreAvecSiren('score Credit Safe ©');
|
|
|
|
$page2 = 'scorescf.php';
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
2010-07-01 16:37:19 +00:00
|
|
|
case 'indiscore3':
|
2010-11-26 16:12:57 +00:00
|
|
|
$raisonSociale = etabSession($siret, $idEntreprise);
|
2011-03-29 16:14:48 +00:00
|
|
|
$title = titreAvecSiren('Rapport complet');
|
2010-03-03 16:56:17 +00:00
|
|
|
$page2 = 'rsynthese.php';
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
2010-07-01 16:37:19 +00:00
|
|
|
case 'indiscore2':
|
2010-11-26 16:12:57 +00:00
|
|
|
$raisonSociale = etabSession($siret, $idEntreprise);
|
2010-03-03 16:56:17 +00:00
|
|
|
$title = titreAvecSiren('Rapport de synthèse');
|
|
|
|
$page2 = 'rsynthesemin.php';
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
2010-10-06 13:25:18 +00:00
|
|
|
case 'scorestooltip':
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/scorestooltip.php';
|
|
|
|
exit; break;
|
2010-04-26 14:45:45 +00:00
|
|
|
case 'privileges':
|
2010-11-26 16:12:57 +00:00
|
|
|
$raisonSociale = etabSession($siret, $idEntreprise);
|
2010-04-26 14:45:45 +00:00
|
|
|
$title = titreAvecSiren('Inscription privilèges');
|
|
|
|
if (hasPerm('survpriv')){
|
|
|
|
$page2 = 'privileges.php';
|
|
|
|
} else {
|
|
|
|
$page2 = 'themes/default/error.tpl.php';
|
|
|
|
}
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
2010-03-03 16:56:17 +00:00
|
|
|
case 'enquetec' :
|
2010-11-26 16:12:57 +00:00
|
|
|
$raisonSociale = etabSession($siret, $idEntreprise);
|
2010-03-03 16:56:17 +00:00
|
|
|
$title = titreAvecSiren('Enquête commerciale');
|
|
|
|
$page2 = 'enquetec.php';
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
|
|
|
case 'survliste':
|
|
|
|
$title = 'Surveillance';
|
|
|
|
$page2 = 'survliste.php';
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
|
|
|
case 'survlisteann':
|
|
|
|
$title = 'Surveillance';
|
|
|
|
$page2 = 'survlisteann.php';
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
|
|
|
case 'avis':
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/avis.php';
|
|
|
|
break;
|
|
|
|
case 'actes':
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/actes.php';
|
|
|
|
break;
|
|
|
|
case 'attente':
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/attente.php';
|
|
|
|
break;
|
|
|
|
case 'original':
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/original.php';
|
|
|
|
break;
|
|
|
|
case 'fichier':
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/fichier.php';
|
|
|
|
break;
|
|
|
|
case 'greffes':
|
2010-07-08 14:07:20 +00:00
|
|
|
//Gestion des requetes en Ajax
|
|
|
|
if ( isset($_REQUEST['q']) ){
|
|
|
|
require_once '../includes/infogreffe/index.php';
|
|
|
|
exit;
|
|
|
|
}
|
2010-11-26 16:12:57 +00:00
|
|
|
$raisonSociale = etabSession($siret, $idEntreprise);
|
2010-03-03 16:56:17 +00:00
|
|
|
$title = titreAvecSiren('Pièces Officielles');
|
|
|
|
$page2 = 'greffes2.php';
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
2010-09-14 10:39:01 +00:00
|
|
|
case 'greffescmdfactice':
|
2010-11-26 16:12:57 +00:00
|
|
|
$raisonSociale = etabSession($siret, $idEntreprise);
|
2010-09-14 10:39:01 +00:00
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/greffescmdfactice.php';
|
|
|
|
exit;
|
|
|
|
break;
|
2010-03-03 16:56:17 +00:00
|
|
|
case 'surveillance':
|
2010-07-06 09:24:32 +00:00
|
|
|
//Gestion des requetes en Ajax
|
|
|
|
if ( isset($_REQUEST['q']) ){
|
2010-11-26 16:12:57 +00:00
|
|
|
|
2010-07-06 09:24:32 +00:00
|
|
|
require_once '../includes/surveillance/index.php';
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
//Affichage des surveillances
|
2010-03-03 16:56:17 +00:00
|
|
|
$title = 'Liste des établissements sous suveillances';
|
2010-04-26 14:45:45 +00:00
|
|
|
if (hasPerm('survliste')){
|
|
|
|
$page2 = 'options_surv.php';
|
|
|
|
} else {
|
|
|
|
$page2 = 'themes/default/error-perms.tpl.php';
|
|
|
|
}
|
2010-03-03 16:56:17 +00:00
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
|
|
|
case 'portefeuille':
|
|
|
|
$title = 'Portefeuille';
|
2010-04-26 14:45:45 +00:00
|
|
|
if (hasPerm('portefeuille')){
|
|
|
|
$page2 = 'portefeuille.php';
|
|
|
|
} else {
|
|
|
|
$page2 = 'themes/default/error-perms.tpl.php';
|
|
|
|
}
|
2010-03-03 16:56:17 +00:00
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
|
|
|
case 'bdf':
|
|
|
|
//Type de module
|
2010-03-03 08:13:15 +00:00
|
|
|
$module = isset($_REQUEST['module']) ? $_REQUEST['module'] : '';
|
|
|
|
$siret = isset($_REQUEST['siret']) ? $_REQUEST['siret'] : '';
|
|
|
|
$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'] : '';
|
2010-03-02 15:50:11 +00:00
|
|
|
|
2010-10-13 12:44:43 +00:00
|
|
|
if ($siret != '' && $req != '' && substr($siret, 0, 9) != $req) {
|
2010-03-03 08:13:15 +00:00
|
|
|
$siret = '';
|
|
|
|
} else if (substr($siret, 0, 9) == $req || empty($req)) {
|
|
|
|
$req = substr($siret, 0, 9);
|
|
|
|
}
|
2010-01-28 16:45:29 +00:00
|
|
|
|
2010-10-13 12:44:43 +00:00
|
|
|
if (is_array($module)){
|
|
|
|
$_SESSION['BDF']['module'] = $module;
|
|
|
|
}
|
|
|
|
FB::log($_SESSION, 'SESSION');
|
2010-03-03 16:56:17 +00:00
|
|
|
require_once 'bdf/bdf.php';
|
2010-03-02 15:50:11 +00:00
|
|
|
|
2010-03-03 16:56:17 +00:00
|
|
|
//Titre
|
|
|
|
$title = 'Banque De France - '.strtoupper($service);
|
|
|
|
if ($siret == '') {
|
2010-03-03 08:13:15 +00:00
|
|
|
$title .= ' - '.$req;
|
|
|
|
} else {
|
|
|
|
$title .= titreAvecSiren('');
|
|
|
|
}
|
|
|
|
$page2 = 'bdf.php';
|
2010-03-03 16:56:17 +00:00
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
2011-01-28 09:20:15 +00:00
|
|
|
case 'bilanclient':
|
|
|
|
require_once 'liasse/bilanclient.php';
|
|
|
|
exit; break;
|
2011-02-21 17:09:22 +00:00
|
|
|
case 'export':
|
|
|
|
require_once 'export/index.php';
|
|
|
|
exit; break;
|
2010-03-03 16:56:17 +00:00
|
|
|
case 'main':
|
|
|
|
require_once realpath(dirname(__FILE__)).'/pages/main.php';
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
$title = 'Erreur';
|
|
|
|
afficheErreur("Erreur 10400 : La page demandée est inexistante !");
|
|
|
|
break;
|
2009-03-25 09:34:04 +00:00
|
|
|
}
|
2010-03-02 15:50:11 +00:00
|
|
|
|
|
|
|
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));
|
2009-08-11 16:53:26 +00:00
|
|
|
|
2010-03-03 08:13:15 +00:00
|
|
|
if ($sortie == 'pdf') {
|
|
|
|
if (isset($siret)) {
|
|
|
|
$page .= '-'.$siret;
|
|
|
|
}
|
|
|
|
if (isset($idEntreprise)) {
|
|
|
|
$page .= '-'.$idEntreprise;
|
|
|
|
}
|
|
|
|
print_page($page);
|
2009-08-11 16:53:26 +00:00
|
|
|
}
|
2010-09-14 10:39:01 +00:00
|
|
|
|
|
|
|
require_once '../config/append.php';
|
|
|
|
|
2010-03-03 16:56:17 +00:00
|
|
|
?>
|