summaryrefslogtreecommitdiffstats
path: root/apis/getconfig.inc.php
blob: a3d2bd913ab848445770e388c569a41eeacd5338 (plain) (blame)
1
2
3
4
5
6
7
8
9
<?php

$res = Database::simpleQuery('SELECT setting.setting, setting.defaultvalue, setting.permissions, setting.description, tbl.value
	FROM setting
	LEFT JOIN setting_global AS tbl USING (setting)
	ORDER BY setting ASC'); // TODO: Add setting groups and sort order
while ($row = $res->fetch(PDO::FETCH_ASSOC)) {
	echo $row['setting'] . "='" . str_replace("'", "'\"'\"'", $row['value']) . "'\n";
}