[ 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
/
Support
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 Block.php
21,168 B
SET
[ EDIT ]
|
[ DEL ]
📄 BlockFinder.php
3,302 B
SET
[ EDIT ]
|
[ DEL ]
📄 DynamicData.php
1,987 B
SET
[ EDIT ]
|
[ DEL ]
📄 HasOneRelationship.php
1,809 B
SET
[ EDIT ]
|
[ DEL ]
📄 Integration.php
499 B
SET
[ EDIT ]
|
[ DEL ]
📄 Utility.php
8,634 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: DynamicData.php
<?php namespace PrestoPlayer\Support; class DynamicData { /** * Get values to replace. * * @return array */ public static function getValues() { $current_user = wp_get_current_user(); return apply_filters( 'presto-player/dynamic-data', array( '{user.user_login}' => $current_user->user_login ?? '', '{user.user_nicename}' => $current_user->user_nicename ?? '', '{user.user_email}' => $current_user->user_email ?? '', '{user.user_url}' => $current_user->user_url ?? '', '{user.user_registered}' => $current_user->user_registered ?? '', '{user.display_name}' => $current_user->display_name ?? '', '{site.url}' => get_home_url(), '{site.name}' => get_bloginfo(), '{ip_address}' => self::getIP(), ) ); } /** * Replace dynamic data with actual data. * * @param array $items Array of items with ['text']. * @return array */ public static function replaceItems( $items, $key ) { foreach ( $items as $k => $item ) { $items[ $k ][ $key ] = self::replaceText( $item[ $key ] ); } return $items; } /** * Replace value in string with dynamic data. * * @param string $text String with dynamic data. * @return string */ public static function replaceText( $text ) { return wp_kses_post( strtr( $text, self::getValues() ) ); } /** * Get the person's IP. * * @return string */ public static function getIP() { foreach ( array( 'HTTP_CF_CONNECTING_IP', 'HTTP_CLIENT_IP', 'HTTP_X_FORWARDED_FOR', 'HTTP_X_FORWARDED', 'HTTP_X_CLUSTER_CLIENT_IP', 'HTTP_FORWARDED_FOR', 'HTTP_FORWARDED', 'REMOTE_ADDR' ) as $key ) { if ( array_key_exists( $key, $_SERVER ) === true ) { foreach ( explode( ',', $_SERVER[ $key ] ) as $ip ) { $ip = trim( $ip ); // just to be safe if ( filter_var( $ip, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE ) !== false ) { return $ip; } } } } } }