Files
handbrake-cluster-webui/webui/source/pages/ajax/update-settings.php
Ben Roberts 3497eb8e1e First attempt at admin settings page with writeable database backend.
Currently broken due to PHP's transparent conversion of "." to "_" in
POST variable names!
2011-08-24 02:40:16 +01:00

15 lines
307 B
PHP

<?php
$main = RippingCluster_Main::instance();
$config = $main->config();
// Iterate over the settings and store each one back to the backend
foreach($_POST as $key => $value) {
if ($config->exists($key)) {
$config->set($key, $value);
}
}
$this->smarty->assign('messages', $messages);
?>