uawdijnntqw1x1x1
IP : 3.140.188.57
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
/
.
/
Support
/
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; } } } } } }
/home/srv221441/kso-don.ru/wp-content/plugins/presto-player/././inc/./Support/DynamicData.php