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.
20 lines
284 B
20 lines
284 B
4 years ago
|
<?php
|
||
|
include './functions.php';
|
||
|
|
||
|
header('Access-Control-Allow-Origin:*');
|
||
|
|
||
|
$redis = new redis();
|
||
|
$redis->connect('redis',6379);
|
||
|
|
||
|
|
||
|
$mask = $_REQUEST['mask'];
|
||
|
if(!isset($mask)) die();
|
||
|
|
||
|
|
||
|
|
||
|
$addr = getAddress($mask, $redis);
|
||
|
|
||
|
|
||
|
echo json_encode($redis->hGetAll('session/dialog/'.$addr));
|
||
|
|