From: Vincent Vanwaelscappel Date: Wed, 10 Mar 2021 10:29:10 +0000 (+0100) Subject: wip #4336 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=8abca66422a3a559b3066763b1d73fc1c1f98ab9;p=sandvik-apps.git wip #4336 @0.5 --- diff --git a/ScreeningMediaSelection/_doc/data.xlsx b/ScreeningMediaSelection/_doc/data.xlsx index e5fd1e3..8e1dcb5 100644 Binary files a/ScreeningMediaSelection/_doc/data.xlsx and b/ScreeningMediaSelection/_doc/data.xlsx differ diff --git a/ScreeningMediaSelection/_doc/translations.xlsx b/ScreeningMediaSelection/_doc/translations.xlsx index 2820265..962eb9e 100644 Binary files a/ScreeningMediaSelection/_doc/translations.xlsx and b/ScreeningMediaSelection/_doc/translations.xlsx differ diff --git a/ScreeningMediaSelection/tools/common.php b/ScreeningMediaSelection/tools/common.php index 8875205..78bf41f 100644 --- a/ScreeningMediaSelection/tools/common.php +++ b/ScreeningMediaSelection/tools/common.php @@ -1,5 +1,5 @@ $v){ + $content .= "--".$boundary."\r\n". + "Content-Disposition: form-data; name=\"$k\"\r\n\r\n". + "$v\r\n"; + } $content .= '--' . $boundary . "--\r\n"; $context = stream_context_create(array( 'http' => array( diff --git a/ScreeningMediaSelection/tools/refreshdata.php b/ScreeningMediaSelection/tools/refreshdata.php index f78e95e..e4a4d48 100644 --- a/ScreeningMediaSelection/tools/refreshdata.php +++ b/ScreeningMediaSelection/tools/refreshdata.php @@ -4,6 +4,6 @@ require_once 'common.php'; $root = __DIR__ . '/../'; $js = $root . 'js/data.js'; $xlsx = $root . '/_doc/data.xlsx'; -$data = postFiles('https://extranet.cubedesigners.com/tools/convertXlsxToJson', $xlsx, 'file'); -file_put_contents($js, 'DATA=' . $data . ';'); +$data = postFiles('https://extranet.cubedesigners.com/tools/convertXlsxToJson', $xlsx, 'file', ['dataorg' => 'excelToArray', 'format' => 'js']); +file_put_contents($js, $data); header('Location: ../'); \ No newline at end of file