Directly manipulate regex.list from PHP to avoid detour over bash. This needs read/write permissions of the PHP user on "/etc/pihole/regex.list" !

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2018-06-23 15:50:19 +02:00
parent 3f7246968e
commit 1935544183
5 changed files with 37 additions and 9 deletions

View File

@@ -44,7 +44,10 @@ function getListContent($listname) {
unset($list[$i]);
}
return $list;
// Re-index list after possible unset() activity
$newlist = array_values($list);
return $newlist;
}