Initial commit
This commit is contained in:
commit
78a4e70036
24 changed files with 1067 additions and 0 deletions
21
res/php/savelist.php
Normal file
21
res/php/savelist.php
Normal file
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
# COPYRIGHT (c) 2016 Marcel Kapfer (mmk2410)
|
||||
# MIT License
|
||||
|
||||
$content = $_GET["data"];
|
||||
|
||||
$filename = "../../lists/" . $content["list"];
|
||||
|
||||
$file = "";
|
||||
|
||||
foreach ($content["addresses"] as $address) {
|
||||
$file = $file . $address . "\n";
|
||||
}
|
||||
|
||||
$handle = fopen($filename, "w");
|
||||
|
||||
if (fwrite($handle, $file)) {
|
||||
echo "0";
|
||||
} else {
|
||||
echo "1";
|
||||
}
|
Reference in a new issue