You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

26 lines
454 B

<?php
include './functions.php';
header('Access-Control-Allow-Origin:*');
$redis = new redis();
$redis->connect('redis',6379);
$mask = $_REQUEST['mask'];
$del = $_REQUEST['del'];
$t = $_REQUEST['t'];
if(!isset($mask)) die();
if(!isset($del)) die();
if(!isset($t)) die();
if($t < time() - 10000) die();
$addr = getAddress($mask, $redis);
$redis->hDel('session/dialog/'.$addr, $del);
echo json_encode($redis->hGetAll('session/dialog/'.$addr));