Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[插件] 中文验证码 2006/12/12

[复制链接]
heel123 发表于 2006-12-28 02:55:55 | 显示全部楼层
我的成功了,谢谢楼主
回复

使用道具 举报

88212560 发表于 2006-12-28 04:12:42 | 显示全部楼层
可以提供图片下载吗?
回复

使用道具 举报

leswz 发表于 2006-12-28 10:11:16 | 显示全部楼层
好贴 顶下  以后再安  今天安的够多的了
回复

使用道具 举报

wangsclub 发表于 2006-12-28 13:37:52 | 显示全部楼层

请求帮助!

utf-8要改哪些内容?怎么改?不好意思 ,我装的是 utf-8的。谢谢!
回复

使用道具 举报

5246563 发表于 2006-12-28 14:36:38 | 显示全部楼层
为什么我的不行咧.郁闷
回复

使用道具 举报

_白城听海_ 发表于 2006-12-28 23:25:47 | 显示全部楼层
不错的东东。。
回复

使用道具 举报

泡哥 发表于 2007-1-3 00:33:55 | 显示全部楼层
很不错的插件
回复

使用道具 举报

tlgzsting 发表于 2007-1-4 17:45:01 | 显示全部楼层
三、打开global.func.php
查找


[Copy to clipboard]CODE:
function random($length, $numeric = 0) {
        mt_srand((double)microtime() * 1000000);
        if($numeric) {
                $hash = sprintf('%0'.$length.'d', mt_rand(0, pow(10, $length) - 1));
        } else {
                $hash = '';
                $chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz';
                $max = strlen($chars) - 1;
                for($i = 0; $i < $length; $i++) {
                        $hash .= $chars[mt_rand(0, $max)];
                }
        }
        return $hash;
}

替换为:


[Copy to clipboard]CODE:
function c2ch($num){
  $ch_h = chr(substr($num,0,2)+160);
  $ch_l = chr(substr($num,2,2)+160);
  return $ch_h.$ch_l;
}

function num_rand(){
        mt_srand((double)microtime() * 1000000);
        $d= mt_rand(16,36);
        $n= mt_rand(1,19);
        return c2ch($d*100+$n);
}

function random($length, $numeric = 0) {
        mt_srand((double)microtime() * 1000000);
        if($numeric) {
                                for($i=0;$i<$length;$i++)
                                        {
                                                $hash[1][$i]=num_rand();
                                                $hash[2] .= $hash[1][$i];
                                        }
        } else {
                $hash = '';
                $chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz';
                $max = strlen($chars) - 1;
                for($i = 0; $i < $length; $i++) {
                        $hash .= $chars[mt_rand(0, $max)];
                }
        }
        return $hash;
}

这一步不行呢?
我搜索
function random($length, $numeric = 0) {
        mt_srand((double)microtime() * 1000000);
        if($numeric) {
                $hash = sprintf('%0'.$length.'d', mt_rand(0, pow(10, $length) - 1));
        } else {
                $hash = '';
                $chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz';
                $max = strlen($chars) - 1;
                for($i = 0; $i < $length; $i++) {
                        $hash .= $chars[mt_rand(0, $max)];
                }
        }
        return $hash;
}
这些.一点都搜不出来呢?
回复

使用道具 举报

17happy 发表于 2007-1-4 19:18:33 | 显示全部楼层
支持你,楼主你超强
回复

使用道具 举报

tlgzsting 发表于 2007-1-4 22:23:21 | 显示全部楼层
function random($length, $numeric = 0) {
        mt_srand((double)microtime() * 1000000);
        if($numeric) {
                $hash = sprintf('%0'.$length.'d', mt_rand(0, pow(10, $length) - 1));
        } else {
                $hash = '';
                $chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz';
                $max = strlen($chars) - 1;
                for($i = 0; $i < $length; $i++) {
                        $hash .= $chars[mt_rand(0, $max)];
                }
        }
        return $hash;
}
我的global.func.php里面没有上面这些字眼呢
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-4-25 18:22 , Processed in 0.107314 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表