24 lines
441 B
PHP
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);
|