Uname:Linux server.rehabsharif.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64

Base Dir : /home/nobi37te/public_html

User : nobi37te


403WebShell
403Webshell
Server IP : 104.21.25.182  /  Your IP : 216.73.216.60
Web Server : Apache
System : Linux server.rehabsharif.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64
User : nobi37te ( 1003)
PHP Version : 8.2.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/nobi37te/public_html/wp-content/plugins/presto-player/inc/Models/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/nobi37te/public_html/wp-content/plugins/presto-player/inc/Models/Setting.php
<?php

namespace PrestoPlayer\Models;

class Setting {

	const PREFIX = 'presto_player';

	public static function getGroupName( $group ) {
		return self::PREFIX . "_{$group}";
	}

	/**
	 * Get the option group
	 *
	 * @param string $group
	 * @return mixed
	 */
	public static function getGroup( $group ) {
		return \get_option( self::getGroupName( $group ) );
	}

	/**
	 * Get an individual option from the group
	 *
	 * @param string $group Group name.
	 * @param string $name Field name.
	 * @param string $default Default value if nothing is found.
	 *
	 * @return mixed
	 */
	public static function get( $group, $name = '', $default = null ) {
		$option = self::getGroup( $group );

		if ( ! $name ) {
			return $option;
		}
		return isset( $option[ $name ] ) ? $option[ $name ] : $default;
	}

	/**
	 * Set an individual option
	 *
	 * @param string $group Group name
	 * @param string $name Field name
	 * @param mixed  $value Field value
	 *
	 * @return boolean Whether the option updated
	 */
	public static function set( $group, $name, $value ) {
		// get stored group
		$stored          = (array) self::getGroup( $group );
		$stored          = array_filter(
			$stored,
			function ( $key ) {
				return is_string( $key );
			},
			ARRAY_FILTER_USE_KEY
		);
		$stored[ $name ] = $value;
		return \update_option( self::getGroupName( $group ), $stored );
	}

	public static function update( $group, $name, $value ) {
		// get stored group
		$stored          = (array) self::getGroup( $group );
		$stored          = array_filter(
			$stored,
			function ( $key ) {
				return is_string( $key );
			},
			ARRAY_FILTER_USE_KEY
		);
		$stored[ $name ] = $value;
		return \update_option( self::getGroupName( $group ), $stored );
	}

	/**
	 * Delete an option
	 *
	 * @param string $group
	 * @param string $name
	 * @return boolean
	 */
	public static function delete( $group, $name ) {
		$stored = (array) self::getGroup( $group );
		unset( $stored[ $name ] );
		return \update_option( self::getGroupName( $group ), $stored );
	}

	public static function deleteAll( $group ) {
		delete_option( self::getGroupName( $group ) );
	}

	public static function getDefaultColor() {
		return apply_filters( 'presto_player_default_color', '#00b3ff' );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit