<?php  if (!defined('DASHBOARD_ROOT')) { http_response_code(403); exit; } $settings=Database::fetchAll("SELECT setting_key,setting_value FROM settings ORDER BY setting_key"); echo "<div class=\"globals-editor\"><h3>Global Settings</h3><form id=\"globals-form\">"; foreach($settings as $s){echo UI::field($s["setting_key"],UI::e($s["setting_key"]),"text",$s["setting_value"]);} echo CSRF::field()."<button type=\"submit\" class=\"btn btn-primary\">Save</button></form></div>"; 