Untitled

 avatar
user_5801278
php
a year ago
962 B
1
Indexable
Never
<?
/*
 * Copyright (C) 2017-2023 Applypark. All rights reserved
 * It is considered confidential and proprietary. 
 * This document may not be reproduced or transmitted in any form,
 * in whole or in part, without the express written permission of
 *
 * applypark czech s.r.o.
 * Website: https://applypark.cz
 *
 * @author   Jakub Hon (jakub.hon@applypark.cz) applypark.cz
 *
 * copyright 2023 -  applypark.cz
 * applypark czech s.r.o.
 *
 * Lidicka 881/37, Ostrava Vítkovice, 703 00, Czech republic
 * VAT ID: CZ09731237
 */


 // zde by byl váš mechanismus pro získání OAuth Shoptetu 
 $_SESSION['shortAcessToken'] = $accessToken;
 $_SESSION['eshopId']         = $eshopId;
 $_SESSION['lang']            = $lang;
 
 //Načteme si do proměnné hodnotu sessionID
 $session_id                  = session_id();
 
 //Tu vložíme do GET parametru, který si vymyslíme, třeba "sid"
 header("Location: /./shoptet/$urlPath?sid=$session_id");