Modify adlists subpage of the settings page to sources the lists from the gravity database.

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2019-04-28 20:42:50 +02:00
parent 406a946b24
commit ced7174c37
4 changed files with 32 additions and 42 deletions

View File

@@ -13,18 +13,8 @@ $listtype = $_GET['list'];
require_once("func.php");
// Get possible non-standard location of FTL's database
$FTLsettings = parse_ini_file("/etc/pihole/pihole-FTL.conf");
if(isset($FTLsettings["GRAVITYDB"]))
{
$GRAVITYDB = $FTLsettings["GRAVITYDB"];
}
else
{
$GRAVITYDB = "/etc/pihole/gravity.db";
}
require("database.php");
$GRAVITYDB = getGravityDBFilename();
$db = SQLite3_connect($GRAVITYDB);
function getTableContent($listname) {