12345678910111213 |
- <?php
- if ($_SERVER['REQUEST_METHOD'] != 'POST') {
- http_response_code(301);
- header('Location: ./');
- die;
- }
- require_once __DIR__ . '/../include/user_settings.php';
- load_settings($_POST);
- foreach ($settings as $k => $v) {
- setcookie($k, $v, time() + 60 * 60 * 24 * 365, '/');
- }
- header('Location: ' . $_POST['from']);
|