[Rspamd] Load additional settings defined in web ui
parent
aa6a136c1f
commit
8bb24a9866
|
@ -329,5 +329,20 @@ while ($row = array_shift($rows)) {
|
|||
}
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
?>
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue