Initial commit

This commit is contained in:
mmk2410 2016-04-06 17:30:05 +02:00
commit 78a4e70036
24 changed files with 1067 additions and 0 deletions

13
res/php/getaddresses.php Executable file
View file

@ -0,0 +1,13 @@
<?php
# COPYRIGHT (c) 2016 Marcel Kapfer (mmk2410)
# MIT License
$file = "../../lists/" . $_GET["list"];
$addresses = file($file);
$res = array();
$i = 0;
foreach ($addresses as $address) {
$res[] = substr($address, 0, strlen($address) - 1);
$i++;
}
echo json_encode($res);