free_sql2("ALTER TABLE `settings` ADD `json` text NULL;"); @mkdir (MYDIR . '/img/logo', 0700); @mkdir (MYDIR . '/img/favicon', 0700); if ($_POST['ok']){ unset($_POST['ok']); $json= json_encode($_POST, JSON_UNESCAPED_UNICODE); $db->free_sql2("UPDATE settings SET json = '$json' WHERE mod = 'global';"); header( 'Location: /settings/' ); } ?>