<?php
include_once (ROOT . FOLDER_CORE . '/auth.php'); 
if ($auth == 1) {
    $cli_user = $_SERVER["HTTP_CLIENT_ID"];
    if (isset($_POST["cod_car_auc"])) {
        if (!empty($_POST["cod_car_auc"])) {
            include ('includes/includeSyncPhotoAUC.php');
        }else {
            $data[] = array ( 
                "status" => "NOT OK",
                "message" => "error : cod_car_auc is missing"
            );
        }
        header("Content-type: application/json; charset=utf-8");
        echo json_encode($data);
    }
}elseif ($auth == 0) {
    $data = array();
    $data[] = array ( 
        "code" => "unauthorized_client",
        "message" => "Invalid authorization token"
    );
    header("Content-type: application/json; charset=utf-8");
    echo json_encode($data);
}
?>