Initial commit
This commit is contained in:
commit
78a4e70036
24 changed files with 1067 additions and 0 deletions
13
res/php/getaddresses.php
Executable file
13
res/php/getaddresses.php
Executable 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);
|
Reference in a new issue