403Webshell
Server IP : 112.84.131.71  /  Your IP : 43.159.78.200
Web Server : nginx/1.28.0
System : Linux 1763701629066 6.8.0-53-generic #55-Ubuntu SMP PREEMPT_DYNAMIC Fri Jan 17 15:37:52 UTC 2025 x86_64
User : www ( 1001)
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
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /www/wwwroot/www.lengcat.cn/wp-content/themes/onenav/iopay/admin/page/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/www.lengcat.cn/wp-content/themes/onenav/iopay/admin/page/index.php
<?php
/*
 * @Author: iowen
 * @Author URI: https://www.iowen.cn/
 * @Date: 2023-03-12 14:21:17
 * @LastEditors: iowen
 * @LastEditTime: 2023-03-31 23:23:04
 * @FilePath: \onenav\iopay\admin\page\index.php
 * @Description: 
 */
if ( ! defined( 'ABSPATH' ) ) { exit; }

$user = wp_get_current_user();
if (!is_user_logged_in()) {
    exit;
}  

$post_title      = '商城数据'; 

$this_month_time = current_time('Y-m');
$today           = io_get_order_stats_by_time('today');
$yester          = io_get_order_stats_by_time('yester');
$this_month      = io_get_order_stats_by_time('this_month');
$last_month      = io_get_order_stats_by_time('last_month');
$all             = io_get_order_stats_by_time('all');
$this_year       = io_get_order_stats_by_time('this_year');

$data = array(
    array(
        'top'    => '今日订单',
        'val'    => $today['count'],
        'bottom' => '昨日订单:' . $yester['count'],
    ),
    array(
        'top'    => '今日收款',
        'val'    => ($today['sum'] > 1000) ? (int)$today['sum'] : $today['sum'],
        'bottom' => '昨日收款:' . $yester['sum'],
    ),
    array(
        'top'    => '本月订单',
        'val'    => $this_month['count'],
        'bottom' => '上月订单:' . $last_month['count'],
    ),
    array(
        'top'    => '本月收款',
        'val'    => ($this_month['sum'] > 10000) ? (int) $this_month['sum']: $this_month['sum'],
        'bottom' => '上月收款:' . $last_month['sum'],
    ),
    array(
        'top'    => '总有效订单',
        'val'    => $all['count'],
        'bottom' => '今年订单:' . $this_year['count'],
    ),
    array(
        'top'    => '总有效收款',
        'val'    => ($all['sum'] > 10000) ? (int) $all['sum'] : $all['sum'],
        'bottom' => '今年收款:' . $this_year['sum'],
    ),
);

$card = '';
foreach ($data as $v) {
    $card .= '<div class="row-3">
            <div class="pay-body">
                <span class="count-top">' . $v['top'] . '</span>
                <div class="count">' . $v['val'] . '</div>
                <span class="count-bottom">' . $v['bottom'] . '</span>
            </div>
        </div>';
}

?>
<div class="wrap">
    <h1 class="wp-heading-inline"><?php echo esc_html( $post_title  ); ?></h1>
    <p>商城设置:<a href="<?php echo io_get_admin_iocf_url('商城设置') ?>">立即前往</a></p>
    <hr class="wp-header-end">
    <div class="pay-container">
        <?php echo $card ?> 
    </div>
    <div class="clear"></div>
</div>

Youez - 2016 - github.com/yon3zu
LinuXploit