24 lines
651 B
PHP
24 lines
651 B
PHP
<?php
|
|
/**
|
|
* NOTICE OF LICENSE
|
|
*
|
|
* This file is licenced under the Software License Agreement.
|
|
* With the purchase or the installation of the software in your application
|
|
* you accept the licence agreement.
|
|
*
|
|
* You must not modify, adapt or create derivative works of this source code
|
|
*
|
|
* @author PrestaHelp.com
|
|
* @copyright 2019 PrestaHelp
|
|
* @license LICENSE.txt
|
|
*/
|
|
|
|
header("Access-Control-Allow-Origin: *");
|
|
|
|
require_once __DIR__.'/../../../config/config.inc.php';
|
|
require_once __DIR__.'/../inpostship.php';
|
|
$inpost = new inpostship();
|
|
$trackNumber = $_REQUEST['track'];
|
|
echo json_encode($inpost->tracking($trackNumber));
|
|
exit();
|