2021-07-25 13:58:09
<?php
function getAuthImage($text) {
$im_x = 35*strlen($text);
$im_y = 40;
$im = imagecreatetruecolor($im_x,$im_y);
$text_c = ImageColorAllocate
2021-07-21 06:00:48
由于项目需求,加密loginusername
加密:
在adminfun.php169行增加
$username1 = KeyEncrypt($username);//加密cookie用户名
使用Rsa加密cookie用户名,此处不能$username,不然会
2021-07-20 19:49:40
https://www.cnblogs.com/CraryPrimitiveMan/p/6242167.html
2021-07-19 19:35:11
html:
<div class="col-xs-5 col-sm-4">
<input type="button" class="form-control inpt4" id="fsyzm" value="发送验证码">
</div>
js:
$('#fsyz
2021-07-14 19:21:05
$url = '/usr/share/nginx/log.txt';
$handle = fopen($url,'a+');
$num = str_pad(mt_rand(0,999999),6,"0",STR_PAD_BOTH);
fwrite($han
2021-07-14 16:14:02
yum install redis php-redis
或者用rpm直接安装rpm -ivh *
service redis start
chkconficd /g redis on
function SetRedis($key,$value,$time)
{
$redis = new Redis
2021-07-14 15:06:36
html:
<input type="button" class="form-control inpt4" id="fsyzm" value="发送验证码" onclick = "settime(this)">
js:
var countdown=60;
function settime(obj) {
2021-07-14 14:28:38
按快捷键无效,打开右下角的windows移动中心调节亮度,也无效,查询网上说监视器的问题,
1、打开设备管理器
2、找到监视器
3、删除下面的所有项目,并顺便把驱动程序也删除
然
2021-07-10 14:30:49
<?php
// 限制IP测试
/**
* HOST访问限制 支持 IP(单IP,多IP,*通配符,IP段) 域名(单域名,多域名,*通配符)
* 根据判断实现IP地址 白名单黑名单
* Author:70(qq781787584)
2021-07-02 12:01:47
#Persistent ;持续运行
#SingleInstance,Force ;强制运行一个脚本
SetTimer, CloseWarnings, 1000 ;定时器,检测频率
CloseWarnings:
IfWinExist, 服务器证书未生效
{