893f4da173
Modification de certains chemins Ajout du framework dans l'extranet
32 lines
1.1 KiB
PHP
32 lines
1.1 KiB
PHP
<?php
|
|
if (!$_SESSION['connected'])
|
|
echo ('Vous devez être connecté afin de pouvoir utiliser cette fonctionnalité');
|
|
else
|
|
{
|
|
$siret=$_REQUEST['siret'];
|
|
$source=$_REQUEST['source'];
|
|
$annee=$_REQUEST['annee'];
|
|
$type=$_REQUEST['type'];
|
|
$numero=$_REQUEST['numero'];
|
|
|
|
$page=$_REQUEST['page'];
|
|
$nom='';
|
|
|
|
$cle=md5($annee.'qiougf567'.$siret.$type.$source.$numero.date('Ymd').$page);
|
|
/*
|
|
$url='http://tville.scores-decisions.com:8080/histo/index.php?page=10&numero=2&type=A&annee=2001';
|
|
$page=getUrl($url, '', '', '', false, 'tville.scores-decisions.com:8080');
|
|
$body=$page['body'];
|
|
|
|
header("Pragma: public");
|
|
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
|
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
|
|
header("Cache-Control: must-revalidate");
|
|
header("Content-type: image/jpeg");
|
|
header("Content-Length: ".strlen($body));
|
|
header('Content-disposition: inline; filename="bodacc.jpg"');// attachement or inline
|
|
header("Accept-Ranges: ".strlen($body));
|
|
echo $body;*/
|
|
header("Location: http://tville.scores-decisions.com:8080/histo/index.php?ref=$source,$siret,$annee,$type,$numero,$page,$nom&cle=$cle");
|
|
}
|
|
?>
|