HEX
Server: LiteSpeed
System: Linux server315.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: globfdxw (6114)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/globfdxw/www/wp-content/plugins/acfml/classes/Tools/LocalSettings.php
<?php

namespace ACFML\Tools;

class LocalSettings {

	/**
	 * @var string name
	 */
	const SCAN_LOCAL_FILES = 'acfml_tools_local_settings_scan_files';

	/**
	 * @return bool
	 */
	public static function isScanModeEnabled() {
		return (bool) get_option( self::SCAN_LOCAL_FILES, defined( 'ACFML_SCAN_LOCAL_FIELDS' ) && constant( 'ACFML_SCAN_LOCAL_FIELDS' ) );
	}

	/**
	 * @param bool $enabled
	 *
	 * @return void
	 */
	public static function enableScanMode( $enabled ) {
		update_option( self::SCAN_LOCAL_FILES, (bool) $enabled );
	}
}