网站综合信息 linxq.com
    • 标题:
    • LXQ | 又一个 WordPress 站点 
    • 关键字:
    •  
    • 描述:
    •  
    • 域名信息
    • 域名年龄:13年2个月22天  注册日期:2011年07月21日  到期时间:2015年07月21日
      注册商:GODADDY.COM, LLC 
    • 备案信息
    • 备案号: 
    网站收录SEO数据
    • 搜索引擎
    • 收录量
    • 反向链接
    • 其他
    • 百度
    • 0  
    • 280  
    • 快照:无首页快照  
    • Google
    • 0  
    • 0  
    • pr:0  
    • 雅虎
    • 0  
    •  
    •  
    • 搜搜
    • 1  
    •  
    •  
    • 搜狗
    • 0  
    •  
    • 评级:1/10  
    • 360搜索
    • 0  
    •  
    •  
    域名流量Alexa排名
    •  
    • 一周平均
    • 一个月平均
    • 三个月平均
    • Alexa全球排名
    • -  
    • 平均日IP
    • 日总PV
    • 人均PV(PV/IP比例)
    • 反向链接
    • dmoz目录收录
    • -  
    • 流量走势图
    域名注册Whois信息

    linxq.com

    域名年龄: 13年2个月22天
    注册时间: 2011-07-21
    到期时间: 2015-07-21
    注 册 商: GODADDY.COM, LLC

    获取时间: 2015年02月04日 22:37:32
    Domain Name: LINXQ.COM
    Registrar: GODADDY.COM, LLC
    Sponsoring Registrar IANA ID: 146
    Whois Server: whois.godaddy.com
    Referral URL: http://registrar.godaddy.com
    Name Server: NS21.DOMAINCONTROL.COM
    Name Server: NS22.DOMAINCONTROL.COM
    Status: clientDeleteProhibited http://www.icann.org/epp#clientDeleteProhibited
    Status: clientRenewProhibited http://www.icann.org/epp#clientRenewProhibited
    Status: clientTransferProhibited http://www.icann.org/epp#clientTransferProhibited
    Status: clientUpdateProhibited http://www.icann.org/epp#clientUpdateProhibited
    Updated Date: 2014-06-04
    Creation Date: 2011-07-21
    Expiration Date: 2015-07-21

    >>> Last update of whois database: Wed, 2015-Feb-04 14:40:32 GMT <<<

    For more information on Whois status codes, please visit
    https://www.icann.org/resources/pages/epp-status-codes-2014-06-16-en.
    Domain Name: LINXQ.COM
    Registrar URL: http://www.godaddy.com
    Registrant Name: Lin Xiangqi
    Registrant Organization:
    Name Server: NS21.DOMAINCONTROL.COM
    Name Server: NS22.DOMAINCONTROL.COM
    DNSSEC: unsigned

    For complete domain details go to:
    http://who.godaddy.com/whoischeck.aspx?domain=LINXQ.COM
    其他后缀域名
    • 顶级域名
    • 相关信息
    网站首页快照(纯文字版)
    抓取时间:2013年10月17日 11:18:22
    网址:http://linxq.com/
    标题:LXQ | 又一个 WordPress 站点
    关键字:
    描述:
    主体:
    LXQ
    又一个 WordPress 站点
    搜索
    主菜单
    跳至主内容区域
    跳至副内容区域
    首页示例页面
    Struts2实现的6位数字的验证码程序
    发表于 2011 年 8 月 20 日  由  quake
    回复
    RandomNumUtil.java 生成验证码的类文件
    import java.awt.Color;
    import java.awt.Font;
    import java.awt.Graphics;
    import java.awt.image.BufferedImage;
    import java.io.ByteArrayInputStream;
    import java.io.ByteArrayOutputStream;
    import java.util.Random;
    import javax.imageio.ImageIO;
    import javax.imageio.stream.ImageOutputStream;
    public class RandomNumUtil {
    private ByteArrayInputStream image;//图像
    private String str;//验证码 
    private RandomNumUtil(){
    init();//初始化属性
    }
    /*
    * 取得RandomNumUtil实例
    */
    public static RandomNumUtil Instance(){
    return new RandomNumUtil();
    }
    /*
    * 取得验证码图片
    */
    public ByteArrayInputStream getImage(){
    return this.image;
    }
    /*
    * 取得图片的验证码
    */
    public String getString(){
    return this.str;
    } 
    private void init() {
    // 在内存中创建图象
    int width=85, height=20;
    BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
    // 获取图形上下文
    Graphics g = image.getGraphics();
    // 生成随机类
    Random random = new Random();
    // 设定背景色
    g.setColor(getRandColor(200,250));
    g.fillRect(0, 0, width, height);
    // 设定字体
    g.setFont(new Font("Times New Roman",Font.PLAIN,18));
    // 随机产生155条干扰线,使图象中的认证码不易被其它程序探测到
    g.setColor(getRandColor(160,200));
    for (int i=0;i<155;i++)
    {
    int x = random.nextInt(width);
    int y = random.nextInt(height);
    int xl = random.nextInt(12);
    int yl = random.nextInt(12);
    g.drawLine(x,y,x+xl,y+yl);
    }
    // 取随机产生的认证码(6位数字)
    String sRand="";
    for (int i=0;i<6;i++){
    String rand=String.valueOf(random.nextInt(10));
    sRand+=rand;
    // 将认证码显示到图象中
    g.setColor(new Color(20+random.nextInt(110),20+random.nextInt(110),20+random.nextInt(110)));
    // 调用函数出来的颜色相同,可能是因为种子太接近,所以只能直接生成
    g.drawString(rand,13*i+6,16);
    }
    //赋值验证码
    this.str=sRand; 
    //图象生效
    g.dispose();
    ByteArrayInputStream input=null;
    ByteArrayOutputStream output = new ByteArrayOutputStream();
    try{
    ImageOutputStream imageOut = ImageIO.createImageOutputStream(output);
    ImageIO.write(image, "JPEG", imageOut);
    imageOut.close();
    input = new ByteArrayInputStream(output.toByteArray());
    }catch(Exception e){
    System.out.println("验证码图片产生出现错误:"+e.toString());
    } 
    this.image=input;/* 赋值图像 */
    }
    /*
    * 给定范围获得随机颜色
    */
    private Color getRandColor(int fc,int bc){
    Random random = new Random();
    if(fc>255) fc=255;
    if(bc>255) bc=255;
    int r=fc+random.nextInt(bc-fc);
    int g=fc+random.nextInt(bc-fc);
    int b=fc+random.nextInt(bc-fc);
    return new Color(r,g,b);
    }
    }
    RandomAction.java  生成验证码的action程序
    import java.io.ByteArrayInputStream;
    import com.mxl.util.RandomNumUtil;
    import com.opensymphony.xwork2.ActionContext;
    import com.opensymphony.xwork2.ActionSupport;
    public class RandomAction extends ActionSupport{
    private ByteArrayInputStream inputStream;
    public String execute() throws Exception{
    RandomNumUtil rdnu=RandomNumUtil.Instance();
    this.setInputStream(rdnu.getImage());//取得带有随机字符串的图片
    ActionContext.getContext().getSession().put("random", rdnu.getString());//取得随机字符串放入HttpSession
    return SUCCESS;
    }
    public void setInputStream(ByteArrayInputStream inputStream) {
    t

    © 2010 - 2020 网站综合信息查询 同IP网站查询 相关类似网站查询 网站备案查询网站地图 最新查询 最近更新 优秀网站 热门网站 全部网站 同IP查询 备案查询

    2024-10-07 12:42, Process in 0.0091 second.