40 lines
1.2 KiB
PHP
40 lines
1.2 KiB
PHP
<?php
|
|
isset($_REQUEST['q']) ? $q = $_REQUEST['q'] : $q = '';
|
|
$params = explode('/', $q);
|
|
|
|
$login = strtolower($_SESSION['tabInfo']['login']);
|
|
$siren = substr($_REQUEST['siret'],0,9);
|
|
$cj = $_SESSION['tabInfo']['entrep']['fj'];
|
|
$dep = substr(''.$_SESSION['tabInfo']['entrep']['codeCommune'],0,2);
|
|
isset($_REQUEST['rs'])? $raisonSociale = $_REQUEST['rs'] : '';
|
|
(isset($_REQUEST['vue']) && !empty($_REQUEST['vue'])) ? $vue=$_REQUEST['vue'] : $vue='';
|
|
isset($_REQUEST['ref'])? $ref=$_REQUEST['ref'] : $ref = '';
|
|
$vecteur = isset($params[0]) ? strtoupper($params[0]) : 'XL' ;
|
|
|
|
require_once 'default/_includes/mysql.php';
|
|
require_once 'common/dates.php';
|
|
require_once 'common/curl.php';
|
|
require_once 'theme/theme.php';
|
|
require_once 'user/user.php';
|
|
require_once 'infogreffe/infogreffews.php';
|
|
|
|
$idCommande = 0;
|
|
|
|
switch ( $vecteur ) {
|
|
|
|
case 'FICHIER':
|
|
require_once realpath(dirname(__FILE__)).'/infogreffe_fichier.php';
|
|
break;
|
|
|
|
case 'COURRIER':
|
|
require_once realpath(dirname(__FILE__)).'/infogreffe_courrier.php';
|
|
break;
|
|
|
|
case 'C':
|
|
require_once realpath(dirname(__FILE__)).'/infogreffe_c.php';
|
|
break;
|
|
|
|
case 'T':
|
|
require_once realpath(dirname(__FILE__)).'/infogreffe_t.php';
|
|
break;
|
|
} |