HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wpprotonperinggit/wp-content/plugins/rafflepress/app/settings.php
<?php
/**
 * Save Settings
 */
function rafflepress_lite_save_settings() {
	if ( check_ajax_referer( 'rafflepress_lite_save_settings' ) ) {
		$_POST = stripslashes_deep( $_POST );

		if ( ! empty( $_POST['settings'] ) ) {
			$settings = $_POST['settings'];
			array_walk( $settings, 'sanitize_text_field' );

			if ( ! empty( $settings['slug'] ) && $settings['slug'] != 'rafflepress' ) {
				rafflepress_lite_add_custom_slug( $settings['slug'] );
			}

			// Edit Notification
			if ( isset( $settings['disable_rafflepress_notifications'] ) && 'true' === $settings['disable_rafflepress_notifications'] ) {
				$settings['disable_rafflepress_notifications'] = true;
			} else {
				$settings['disable_rafflepress_notifications'] = false;
			}

			update_option( 'rafflepress_settings', wp_json_encode( $settings ) );

			$response = array(
				'status' => 'true',
				'msg'    => __( 'Settings Updated', 'rafflepress' ),
			);
		} else {
			$response = array(
				'status' => 'false',
				'msg'    => __( 'Error Updating Settings', 'rafflepress' ),
			);
		}

		// Send Response
		wp_send_json( $response );
		exit;
	}
}

/**
 * Dismiss Settings Lite CTA
 */
function rafflepress_lite_dismiss_settings_lite_cta() {
	if ( check_ajax_referer( 'rafflepress_lite_dismiss_settings_lite_cta' ) ) {
		$_POST = stripslashes_deep( $_POST );

		if ( ! empty( $_POST['dismiss'] ) ) {
			update_option( 'rafflepress_dismiss_settings_lite_cta', true );

			$response = array(
				'status' => 'true',

			);
		}

		// Send Response
		wp_send_json( $response );
		exit;
	}
}