HEX
Server: Apache
System: Linux cpanelx.inxs.ro 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: crowdandsafety (1041)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //proc/self/cwd/wp-content/plugins/shortpixel-image-optimiser/class/external/spai.php
<?php
namespace ShortPixel;

if ( ! defined( 'ABSPATH' ) ) {
 exit; // Exit if accessed directly.
}

use ShortPixel\ShortPixelLogger\ShortPixelLogger as Log;

class Spai
{
		public function __construct()
		{
			 add_action('plugins_loaded', array($this, 'addHooks'));

		}

		public function addHooks()
		{
			  if (\wpSPIO()->env()->plugin_active('spai'))
				{
					 // Prevent SPAI doing its stuff to our JSON returns.
					 $hook_upon = array('shortpixel_image_processing', 'shortpixel_ajaxRequest');
					 if (wp_doing_ajax() &&
					 			// phpcs:ignore WordPress.Security.NonceVerification.Recommended  -- This is not a form
					 		 isset($_REQUEST['action']) &&
							 // phpcs:ignore WordPress.Security.NonceVerification.Recommended  -- This is not a form
							 in_array($_REQUEST['action'], $hook_upon)			 )
					 {
						 	$this->preventCache();
					 }
				}
		}

		public function preventCache()
		{
			  if (! defined('DONOTCDN'))
				{
					 define('DONOTCDN', true);
				}
		}
}

$s = new Spai();