[Rspamd] Load additional settings defined in web ui

master
André 2018-06-23 23:48:06 +02:00
parent aa6a136c1f
commit 8bb24a9866
1 changed files with 166 additions and 151 deletions

View File

@ -329,5 +329,20 @@ while ($row = array_shift($rows)) {
} }
<?php <?php
} }
// Start additional content
$stmt = $pdo->query("SELECT `id`, `content` FROM `settingsmap` WHERE `active` = '1'");
$rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
while ($row = array_shift($rows)) {
$username_sane = preg_replace("/[^a-zA-Z0-9]+/", "", $row['id']);
?>
additional_settings_<?=intval($row['id']);?> {
<?php
$content = preg_split('/\r\n|\r|\n/', $row['content']);
foreach ($content as $line) {
echo ' ' . $line . PHP_EOL;
}
}
?> ?>
} }