403Webshell
Server IP : 38.190.208.107  /  Your IP : 216.73.217.46
Web Server : nginx/1.28.1
System : Linux ht2026040333114 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.37-1 (2023-07-03) x86_64
User : root ( 0)
PHP Version : 8.2.28
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv,eval,assert,passthru,system,exec,shell_exec,popen,proc_open
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /www/wwwroot/wp.3/wp-content/plugins/wp-statistics/views/components/headers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/wp.3/wp-content/plugins/wp-statistics/views/components/headers/author-analytics.php
<?php

if (!defined('ABSPATH')) exit; // Exit if accessed directly

use WP_STATISTICS\Menus;
use WP_Statistics\Utils\Request;

$authorId = Request::get('author_id');
$userData = get_userdata($authorId);

$hasUserData = !empty($userData);

$roles    = $hasUserData ? $userData->roles : [];
$userRole = !empty($roles) ? ucfirst($roles[0]) : esc_html__('No role', 'wp-statistics');

$registeredDate = $hasUserData ? $userData->user_registered : '';
$formattedDate  = $registeredDate ? date_i18n('F j, Y g:i A', strtotime($registeredDate)) : esc_html__('Unknown Date', 'wp-statistics');

$displayName = $hasUserData ? $userData->display_name : esc_html__('Unknown User', 'wp-statistics');
$email       = $hasUserData ? $userData->user_email : '';
?>
<div class="wps-author-analytics--header">
    <div class="wps-author-analytics--header__img">
        <img src="<?php echo esc_url(get_avatar_url($authorId)); ?>" alt="<?php echo esc_html($displayName); ?>">
    </div>
    <div class="wps-author-analytics--header__desc">
        <div class="wps-author-analytics--header__title">
            <h2 class="wps_title" title="<?php echo esc_html($displayName); ?>"><?php echo esc_html($displayName); ?></h2>
            <span><?php echo esc_html($userRole); ?></span>
        </div>
        <div class="wps-author-analytics--header__info">
            <span class="wps-author-analytics--header__joined"><?php echo esc_html__('Joined on', 'wp-statistics') ?> <?php echo esc_html($formattedDate); ?></span>
            <a href="<?php echo esc_url(get_edit_user_link($authorId)); ?>"><?php echo esc_html__('Visit Profile', 'wp-statistics') ?></a>
            <a href="<?php echo Menus::admin_url('pages', ['tab' => 'top', 'author_id' => $authorId, 'pt' => 'post']); ?>"><?php echo esc_html__('View Author Posts', 'wp-statistics') ?></a>
            <a href="mailto:<?php echo esc_attr($email); ?>"><?php echo esc_html__('Email to Author', 'wp-statistics') ?></a>
        </div>
    </div>
</div>

Youez - 2016 - github.com/yon3zu
LinuXploit