First attempt at admin settings page with writeable database backend.

Currently broken due to PHP's transparent conversion of "." to "_" in
POST variable names!
This commit is contained in:
2011-08-24 02:40:16 +01:00
parent 807514daa8
commit 3497eb8e1e
10 changed files with 462 additions and 3 deletions

View File

@@ -0,0 +1,15 @@
<?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);
?>