HEX
Server: Apache
System: Linux hc1-wd209-6459bb5d78-7wsj2 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64
User: w5726 (15726)
PHP: 7.3.33
Disabled: apache_child_terminate,apache_setenv,define_syslog_variables,diskfreespace,disk_free_space,disk_total_space,dl,exec,leak,link,openlog,passthru,pfsockopen,popen,posix_getgrnam,posix_getpgid,posix_getpwuid,posix_getpwnam,posix_getrlimit,posix_initgroups,posix_kill,posix_mkfifo,posix_mknod,posix_setpgid,posix_setsid,posix_setuid,posix_uname,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,putenv,readlink,register_tick_function,shell_exec,show_source,symlink,syslog,system
Upload Files
File: /data/web/virtuals/5726/virtual/www/wp-content/plugins/styles/classes/styles-admin-ajax.php
<?php

class Styles_Admin_Ajax {

	/**
	 * @var Styles_Plugin
	 */
	var $plugin;

	/**
	 * Admin notices
	 */
	var $notices = array();

	public function __construct( $plugin ) {
		$this->plugin = $plugin;

		// Dismiss notices
		add_action( 'wp_ajax_styles-dismiss-notice', array( $this, 'dismiss_notice' ) );
		add_action( 'wp_ajax_styles-clear-notice-dismissals', array( $this, 'clear_notice_dismissals' ) );
	}

	public function dismiss_notice() {
		$options = get_option( 'storm-styles' );
		$key = sanitize_key( $_GET['key'] );

		if ( ! isset( $options['notices_dismissed'] ) ) {
			$options['notices_dismissed'] = array();
		}

		if ( ! in_array( $key, $options['notices_dismissed'] ) ) {
			$options['notices_dismissed'][] = $key;
		}

		echo (int) update_option( 'storm-styles', $options );

		exit;
	}

	public function clear_notice_dismissals() {
		$options = get_option( 'storm-styles' );

		$options['notices_dismissed'] = array();
		
		echo (int) update_option( 'storm-styles', $options );

		exit;
	}

}