bebeboutik/modules/logistics/getassets.php

52 lines
2.8 KiB
PHP
Raw Normal View History

2016-01-04 12:49:26 +01:00
<?php
$assets = array(
'AR.bmp' => array('5c2b4f91fd1c10c35aca086a5632d16e', 'AR'),
'AVECSIGNATURE.bmp' => array('f1e5d23f71724e17518a1f1e2dbec4a8', 'AVECSIGNATURE'),
'AccessF.bmp' => array('0b11eea3c11a4cd9613712cfe1d7c75e', 'ACCESSF'),
'BUREAUDEPOSTE.bmp' => array('96962197767ae8338b4213844cd17009', 'BUREAUDEPOSTE'),
'CAMERA.bmp' => array('2b9d8dbdd84adfd2f042f000e547c341', 'CAMERA'),
'CITYSSIMO.bmp' => array('902ce8190e992675e06848c048249d09', 'CITYSSIMO'),
'COLISSIMOI.bmp' => array('7ed85efbcce6dcece16108b934e44fb1', 'COLISSIMOI'),
'COMMERCANT.bmp' => array('6d507c40c2a43e29feaabe1516f8f02a', 'COMMERCANT'),
'CRBTMINI.bmp' => array('49a7613f72d38725cc75eef768096b0a', 'CRBTMINI'),
'ColDirectOM.bmp' => array('066474255e9f91e522e9e506bd437eba', 'COLDOM'),
'ColInter.bmp' => array('09292b30e0b405a548f9a4e05d78b99a', 'COLINTER'),
'Coldrct.bmp' => array('6dadda5182449ddacf90feb075c84290', 'COLDRCT'),
'ColissimoAccessI.bmp' => array('4b5caaacca68023cfc667ea8f404a6c0', 'COLISSIMOACCI'),
'Crbtsuiv.bmp' => array('4720cd07ce7e81a7e49204606e59d740', 'CRBTSUIV'),
'DOMICILE.bmp' => array('fd84f511916b8e46d6fcce5eb3ab1158', 'DOMICILE'),
'EXASANTE.bmp' => array('e837d5f2107a44b3bbe3d8d338c358cd', 'EXASANTE'),
'ExpertF.bmp' => array('b786fa2338b76443722df1a7e417bf3a', 'EXPERTF'),
'ExpertInterBic3.bmp' => array('0f0f19cf32da460ad448eb30ba373f0c', 'EXPERTAS'),
'FTD.bmp' => array('dc5798bfb74a8c63e938a60956122815', 'FTD'),
'GROSNM.bmp' => array('8e4095301b44569b93fe98cbc6817322', 'GROSNM'),
'ICICOLIS.bmp' => array('11eb7a4810108cf8a21dd16bb1c65923', 'ICICOLIS'),
'NM.bmp' => array('db7bdd7781ff62f41a514df993cd5990', 'NM'),
'Poste.bmp' => array('9ed60338779dce33dab991c2b2b472d7', 'LAPOSTE'),
'RDV.bmp' => array('020d571085129461ce16547a4ae4a5f0', 'RENDEZVOUS'),
'SANSMENTION.bmp' => array('55f8e0310650bada075c3a85716ea140', 'SANSMENTION'),
'SANSSIGNATURE.bmp' => array('8e927b1dc054bd605862d8b4f37ca861', 'SANSSIGNATURE'),
'SOBelgiqueBic3.bmp' => array('984cb5a82d0b9d0320d630950a932311', 'SOBEL'),
'Suivi.bmp' => array('20a26fbbe0e338eca36444c4f526a1d7', 'SUIVI'),
'PosteI.bmp' => array('648a7e65e4a4b88c8388905719f6e300', 'LAPOSTEI'),
//'kpgems.bmp' => array('7e42fda132be9e353a125a1707012a75', 'COLIKPG'),
//'suividom.bmp' => array('6fa979a6f0996b1a52fa63a751e98d0c', 'SUIVIDOM'),
);
if(isset($_GET['secret']) && $_GET['secret'] == 'YjRcQBX75daSyKVn') {
if(isset($_GET['file']) && isset($assets[$_GET['file']])) {
header('Content-Type: image/bmp');
header('Expires: 0');
header('Cache-Control: must-revalidate');
header('Pragma: public');
header('Content-Length: '.filesize(dirname(__FILE__).'/assets/'.$_GET['file']));
ob_clean();
flush();
readfile(dirname(__FILE__).'/assets/'.$_GET['file']);
exit;
} else {
echo json_encode($assets);
exit;
}
}