php图形验证码,扭曲+干扰+数字+字母+阴影+随机颜色

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

加密cookie用户名

2021-07-21 06:00:48 由于项目需求,加密loginusername

加密:
在adminfun.php169行增加
$username1 = KeyEncrypt($username);//加密cookie用户名
使用Rsa加密cookie用户名,此处不能$username,不然会

PHP RSA加密解密

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:

$(&#39;#fsyz

PHP写入日志文件,追加写入

2021-07-14 19:21:05 $url = &#39;/usr/share/nginx/log.txt&#39;;
$handle = fopen($url,&#39;a+&#39;);
$num = str_pad(mt_rand(0,999999),6,"0",STR_PAD_BOTH);
fwrite($han

php redis 读写数据库

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

发送短信验证码,实现60秒倒计时

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、删除下面的所有项目,并顺便把驱动程序也删除


限定网页在固定IP范围内访问

2021-07-10 14:30:49 <?php
// 限制IP测试



/**
* HOST访问限制 支持 IP(单IP,多IP,*通配符,IP段) 域名(单域名,多域名,*通配符)
* 根据判断实现IP地址 白名单黑名单
* Author:70(qq781787584)

autohotkey监控特定弹出框,出现时点击某些按钮

2021-07-02 12:01:47 #Persistent ;持续运行
#SingleInstance,Force ;强制运行一个脚本

SetTimer, CloseWarnings, 1000 ;定时器,检测频率



CloseWarnings:
IfWinExist, 服务器证书未生效
{
< 4 5 6 7 8 9 10 11 12 13 >