\n" . json_encode($write, JSON_PRETTY_PRINT)); @fclose($fp); @chmod($config_file, 0600); } function backuply_update_restore_key(){ $config_file = BACKUPLY_BACKUP_DIR . 'backuply_config.php'; if(!file_exists($config_file) || 0 == filesize($config_file)) { backuply_set_config(); return; } $fp = @fopen($config_file, 'r'); @fseek($fp, 16); $content = @fread($fp, filesize($config_file)); @fclose($fp); $config = json_decode($content, true); $restore_key = backuply_csrf_get_token(); $config['RESTORE_KEY'] = $restore_key; // Updating the config file @file_put_contents($config_file, "