ESH/get_encode_data.php
2024-10-23 18:28:06 +05:30

24 lines
441 B
PHP

<?php
include('includes/config/config.php');
include('log_entry.php');
include('includes/functions.php');
$data = array();
$id = $_REQUEST['id'];
$action = $_REQUEST['action'];
$encode_data = base64_encode($id);
$decode_data = base64_decode($encode_data);
if ($action == 'e') {
$data['id'] = $encode_data;
} else if ($action == 'd') {
$data['id'] = $decode_data;
}
error_log("decode id".$data['id']);
echo json_encode($data);