*/ use at\mkweb\upnp\Config; use at\mkweb\upnp\frontend\AuthManager; require_once 'src/at/mkweb/upnp/init.php'; if (AuthManager::authEnabled()) { AuthManager::authenticate(); } $config = Config::getAll(); $errors = array(); if (isset($_POST['save'])) { $new = $_POST['config']; $errors = Config::validate($new); print_r($errors); print_r($_POST); if (count($errors) == 0) { Config::change($new); $_SESSION['flash'] = _('Sucessfully saved.'); header('Location: ?page=config'); exit; } } ?> <html> <head> <title>pUPnP Device Tester</title> <link rel="stylesheet" type="text/css" href="res/css/bootstrap.min.css" /> <link rel="stylesheet" type="text/css" href="resources.php?css=style.css" /> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js" type="text/javascript"></script> <script type="text/javascript" src="res/js/bootstrap.min.js"></script>