🔓 Ultimate Webshell - Penetration Testing Tool

📖 File Reader

<?php
namespace app\api\controller;
use app\api\model\ModRegion;
use app\BaseController;
use app\common\Common_adapay;
use app\common\Common_note;
use app\api\common\Common_config;
use think\facade\Db;
use think\facade\View;

class Other extends BaseController
{
    /**
     * 短信发送
     */
    public function note_send(Common_note $common_note)
    {
        $phone = input("param.phone");//手机号
        if (empty($phone)){
            return $this->error_json("请输入手机号");
        }
        $result = $common_note->note_send($phone);
        if ($result["Code"] == 'OK'){
            $info = [
                'phone'=>$phone,
                'code'=>$result["str"],
                'add_time'=>time(),
            ];
            db::name("note_send")->insertGetId($info);
            return $this->succeed_json("发送成功,请注意查收~");
        }else{
            return $this->error_json($result["Message"]);
        }
    }

    /*版本更新*/
    public function edition()
    {
        $config = Common_config::config("'app_edition','app_url'");
        $data = [
            'banben'=>$config["app_edition"],
            'url'=>$config["app_url"],
        ];
        return $this->succeed_json("ok",$data);
    }

    /*平台配置信息*/
    public function config()
    {
        $config = Common_config::config("'name','logo'");
        $data = [
            'config'=>$config,
        ];
        return $this->succeed_json("ok",$data);
    }

    /*其它分类*/
    public function other_act()
    {
        $type = input("param.type");
        $where = 1;
        if (!empty($type)){
           $where .= " and type = $type";
        }
        $list = db::name("other_act")->where($where)->order("id desc")->select()->toArray();
        $data = [
            'list'=>$list,
        ];
        return $this->succeed_json("ok",$data);
    }
}