[ SYSTEM ]: Linux wordpress 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
presto-player
/
inc
/
Models
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 AudioPreset.php
4,104 B
SET
[ EDIT ]
|
[ DEL ]
📄 Block.php
582 B
SET
[ EDIT ]
|
[ DEL ]
📄 CurrentUser.php
561 B
SET
[ EDIT ]
|
[ DEL ]
📄 EmailCollection.php
1,677 B
SET
[ EDIT ]
|
[ DEL ]
📄 Model.php
19,674 B
SET
[ EDIT ]
|
[ DEL ]
📄 ModelInterface.php
2,107 B
SET
[ EDIT ]
|
[ DEL ]
📄 Player.php
1,726 B
SET
[ EDIT ]
|
[ DEL ]
📄 Post.php
3,042 B
SET
[ EDIT ]
|
[ DEL ]
📄 Preset.php
4,900 B
SET
[ EDIT ]
|
[ DEL ]
📄 ReusableVideo.php
7,923 B
SET
[ EDIT ]
|
[ DEL ]
📄 Setting.php
2,252 B
SET
[ EDIT ]
|
[ DEL ]
📄 Video.php
5,325 B
SET
[ EDIT ]
|
[ DEL ]
📄 Webhook.php
1,749 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: 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' ); } }