* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 3 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License in GPL.txt for more details. */ define('IN_PONEPASTE', 1); require_once('common.php'); const CONFIG_FILE_PATH = '../config/site.php'; updateAdminHistory($conn); function updateConfiguration(string $path, array $new_config) { $fp = fopen($path, 'w'); $new_config_text = var_export($new_config, true); $code = " trim($data['title']), 'description' => trim($data['description']), 'baseurl' => trim($data['baseurl']), 'keywords' => trim($data['keywords']), 'site_name' => trim($data['site_name']), 'email' => trim($data['email']), 'additional_scripts' => trim($data['additional_scripts']) ]; $current_config['site_info'] = $new_site_info; $current_site_info = $new_site_info; updateConfiguration(CONFIG_FILE_PATH, $current_config); $msg = '