uawdijnntqw1x1x1
IP : 3.133.109.20
Hostname : c17w.hoster.ru
Kernel : Linux c17w.hoster.ru 3.10.0 #1 SMP Tue Jan 25 12:49:12 MSK 2022 x86_64
Disable Function : dl,shell_exec,exec,system,passthru,popen,proc_open,proc_nice,proc_get_status,proc_close,proc_terminate,posix_mkfifo,chown,chgrp,show_source,opcache_reset,opcache_get_configuration,opcache_get_status
OS : Linux
PATH:
/
home
/
srv221441
/
kso-don.ru
/
wp-content
/
plugins
/
presto-player
/
.
/
.
/
inc
/
.
/
Seeds
/
..
/
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' ); } }
/home/srv221441/kso-don.ru/wp-content/plugins/presto-player/././inc/./Seeds/../Models/./Setting.php