MAJ Authentification + simplification fichier index.php

This commit is contained in:
Michael RICOIS 2009-03-26 11:48:48 +00:00
parent 0f6739603c
commit e397af2175
33 changed files with 112 additions and 246 deletions

View File

@ -219,3 +219,8 @@ table.table-classic tr.last td.titre {
#annoncesDate {margin:0;}
#annoncesImg {margin:0 0 0 40px;}
#annoncesImg img {margin:0;}
.logout h4 {font-size: 14px;}
.logout h5 {font-size: 12px;}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

BIN
www/img/rub_synthese.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

@ -31,96 +31,157 @@ else $sortie=$_REQUEST['sortie'];
switch ($page) {
case 'referer':
require_once 'index_referer.php';
require_once 'index_auth.php';
$O2 = $client->setLog('redirection_'.$_REQUEST['part'], $_REQUEST['siret']);
header('Location: '.$_REQUEST['url']);
die();
break;
case 'main':
require_once 'index_main.php';
break;
case 'recherche':
require_once 'index_recherche.php';
require_once 'index_auth.php';
if ($_REQUEST['vue']=='list') $_SESSION['list_pre']=gzcompress(serialize($_POST['formR']),9);
$title='Recherche';
$page2='recherche.php';
include('./pages/main.php');
break;
case 'moncompte':
require_once 'index_moncompte.php';
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':
require_once 'index_administration.php';
$title='Administration des utilisateurs';
$page2='administration.php';
include('./pages/main.php');
break;
case 'stats':
require_once 'index_stats.php';
$title='Statistiques';
$page2='stats.php';
include('./pages/main.php');
break;
case 'identite':
require_once 'index_identite.php';
$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');
break;
case 'evenements':
require_once 'index_evenements.php';
$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':
require_once 'index_saisie.php';
$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':
require_once 'index_etablissements.php';
$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':
require_once 'index_liens.php';
$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':
require_once 'index_dirigeants.php';
$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':
require_once 'index_infosreg.php';
$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':
require_once 'index_bourse.php';
$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 'liasse':
require_once 'index_liasse.php';
$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':
require_once 'index_competences.php';
$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':
require_once 'index_conventions.php';
$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':
require_once 'index_marques.php';
$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 'pieces':
require_once 'index_pieces.php';
$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':
require_once 'index_kbis.php';
$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 'synthese':
require_once 'index_synthese.php';
$title = 'Eléments financier';
$page2 = 'synthese.php';
require_once './pages/main.php';
break;
case 'bilans':
require_once 'index_bilans.php';
$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 'bilans2':
$title='Bilans - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '.substr($_REQUEST['siret'],6,3);
$page2='bilans2.php';
require_once './pages/main.php';
break;
break;
case 'ratios':
require_once 'index_ratios.php';
$title = 'Eléments financier';
$page2 = 'ratios.php';
require_once './pages/main.php';
break;
case 'indiscore':
require_once 'index_indiscore.php';
$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':
require_once 'index_scorescf.php';
$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 'survliste':
require_once 'index_survliste.php';
$title='Surveillance';
$page2='survliste.php';
include('./pages/main.php');
break;
case 'survlisteann':
require_once 'index_survlisteann.php';
$title='Surveillance';
$page2='survlisteann.php';
include('./pages/main.php');
break;
case 'avis':
include('./pages/avis.php');
@ -138,7 +199,9 @@ switch ($page) {
include('./pages/fichier.php');
break;
case 'greffes':
require_once 'index_greffes.php';
$title='Piè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');
break;
default:
$title='Erreur';

View File

@ -1,11 +0,0 @@
<?php
/*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');
?>

View File

@ -1,7 +0,0 @@
<?php
$title='Informations boursi&egrave;res - Siren '. substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '.
substr($_REQUEST['siret'],6,3);
//echo "<!--_page=bourse-->\n";
$page2='bourse.php';
include('./pages/main.php');
?>

View File

@ -1,7 +0,0 @@
<?php
$title='Comp&eacute;tences Territoriales - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '.
substr($_REQUEST['siret'],6,3);
//echo "<!--_page=competences-->\n";
$page2='competences.php';
include('./pages/main.php');
?>

View File

@ -1,7 +0,0 @@
<?php
$title='Conventions Collectives - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '.
substr($_REQUEST['siret'],6,3);
//echo "<!--_page=competences-->\n";
$page2='conventions.php';
include('./pages/main.php');
?>

View File

@ -1,8 +0,0 @@
<?php
$title='Dirigeants - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '.
substr($_REQUEST['siret'],6,3);
//echo "<!--_page=dirigeants-->\n";
// Identité
$page2='dirigeants.php';
include('./pages/main.php');
?>

View File

@ -1,8 +0,0 @@
<?php
$title='Etablissements - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '.
substr($_REQUEST['siret'],6,3);
//echo "<!--_page=etablissements-->\n";
//
$page2='etablissements.php';
include('./pages/main.php');
?>

View File

@ -1,7 +0,0 @@
<?php
$title='Ev&egrave;nements - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '.
substr($_REQUEST['siret'],6,3);
//echo "<!--_page=identite-->\n";
$page2='evenements.php';
include('./pages/main.php');
?>

View File

@ -1,7 +0,0 @@
<?php
$title='Pi&egrave;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');
?>

View File

@ -1,7 +0,0 @@
<?php
$title='Identit&eacute - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '.substr($_REQUEST['siret'],6,3);
//echo "<!--_page=identite-->\n";
// Identité
$page2='identite.php';
include('./pages/main.php');
?>

View File

@ -1,7 +0,0 @@
<?php
$title='indiScore - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '.
substr($_REQUEST['siret'],6,3);
//echo "<!--_page=indiscore-->\n";
$page2='indiscore.php';
include('./pages/main.php');
?>

View File

@ -1,7 +0,0 @@
<?php
$title='Informations r&eacute;glement&eacute;es - Siren '. substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '.
substr($_REQUEST['siret'],6,3);
//echo "<!--_page=infosreg-->\n";
$page2='infosreg.php';
include('./pages/main.php');
?>

View File

@ -1,6 +0,0 @@
<?php
$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');
?>

View File

@ -1,7 +0,0 @@
<?php
$title='Liasse fiscale - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '.
substr($_REQUEST['siret'],6,3);
//echo "<!--_page=liasse-->\n";
$page2='liasse.php';
include('./pages/main.php');
?>

View File

@ -1,8 +0,0 @@
<?php
$title='Liens - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '.
substr($_REQUEST['siret'],6,3);
//echo "<!--_page=liens-->\n";
// Identité
$page2='liens.php';
include('./pages/main.php');
?>

View File

@ -1,7 +0,0 @@
<?php
$title='Marques d&eacute;pos&eacute;es - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '.
substr($_REQUEST['siret'],6,3);
//echo "<!--_page=competences-->\n";
$page2='marques.php';
include('./pages/main.php');
?>

View File

@ -1,13 +0,0 @@
<?php
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 "<!--_page=moncompte-->\n";
$page2='moncompte.php';
include('./pages/main.php');
?>

View File

@ -1,6 +0,0 @@
<?php
$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');
?>

View File

@ -1,5 +0,0 @@
<?php
$title = 'Eléments financier';
$page2 = 'ratios.php';
require_once './pages/main.php';
?>

View File

@ -1,10 +0,0 @@
<?php
//$strRecherche=serialize($tabRecherche);
//$gzRecherche=urlencode();
if ($_REQUEST['vue']=='list') $_SESSION['list_pre']=gzcompress(serialize($_POST['formR']),9);
$title='Recherche';
//echo "<!--_page=recherche-->\n";
// Pages de recherche ou liste
$page2='recherche.php';
include('./pages/main.php');
?>

View File

@ -1,13 +0,0 @@
<?php
$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();
?>

View File

@ -1,6 +0,0 @@
<?php
$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');
?>

View File

@ -1,7 +0,0 @@
<?php
$title='score Credit Safe &copy; - Siren '.substr($_REQUEST['siret'],0,3).' '.substr($_REQUEST['siret'],3,3).' '.
substr($_REQUEST['siret'],6,3);
//echo "<!--_page=indiscore-->\n";
$page2='scorescf.php';
include('./pages/main.php');
?>

View File

@ -1,11 +0,0 @@
<?php
/*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');
?>

View File

@ -1,7 +0,0 @@
<?php
$title='Surveillance';
//echo "<!--_page=recherche-->\n";
// Pages de recherche ou liste
$page2='survliste.php';
include('./pages/main.php');
?>

View File

@ -1,7 +0,0 @@
<?php
$title='Surveillance';
//echo "<!--_page=recherche-->\n";
// Pages de recherche ou liste
$page2='survlisteann.php';
include('./pages/main.php');
?>

View File

@ -1,5 +0,0 @@
<?php
$title = 'Eléments financier';
$page2 = 'synthese.php';
require_once './pages/main.php';
?>

View File

@ -16,16 +16,16 @@
if (!isset($message)) $message="Vous avez été déconnecté de l'extranet";
?>
<html>
<head>
<title>Extranet Scores & Décisions</title>
<meta HTTP-EQUIV="Refresh" CONTENT="<?=$refresh?>; URL=<?=$url_connexion?>" />
</head>
<body>
<h4><?=$message?></h4>
<h5>Si cette page ne disparait pas au bout de <?=$refresh?> seconde(s), veuillez cliquer <a href="<?=$url_connexion?>">ici</a></h5><br/>
<h5>Sinon cliquer <a href="<?=SITEINST_URL1?>">ici</a> pour atteindre la page d'accueil du site de Scores &amp; D&eacute;cisions</h5>
</body>
<head>
<title>Extranet Scores & Décisions</title>
<meta HTTP-EQUIV="Refresh" CONTENT="<?=$refresh?>; URL=<?=$url_connexion?>" />
</head>
<body>
<h4 class="logout"><?=$message?></h4>
<h5 class="logout">Si cette page ne disparait pas au bout de <?=$refresh?> seconde(s), veuillez cliquer <a href="<?=$url_connexion?>">ici</a></h5><br/>
<h5 class="logout">Sinon cliquer <a href="<?=SITEINST_URL1?>">ici</a> pour atteindre la page d'accueil du site de Scores &amp; D&eacute;cisions</h5>
</body>
</html>
<?
die();
?>
die();
?>

View File

@ -361,12 +361,7 @@ switch ($vueRecherche) {
else $dirVille=trim($dirCpVille);
}
$position=$formR['index'];
/** Utilisation du WS **/
require_once 'index_auth.php';
$position=$formR['index'];
if ($typeRech=='ent' && $siret<>'') {
echo "<!--_typeRech=ent, siren=$siret-->\n";

View File

@ -0,0 +1,4 @@
<?php
?>
<img src="./pages/synthese_graph.php" />