1评论

2收藏

授权代码

avatar 老周 | 2195 人阅读 | 1 人评论 | 2017-05-12

  1. bool 授权账号()

  2. {

  3.    ushort    分割符;

  4.    string    账号数组[1000];;

  5.    int       授权账号个数;

  6.    string    当前账号名称;

  7.    int       i;

  8. //----------------------------

  9.    if (授权账号列表=="")

  10.    {

  11.       return(true);

  12.    }

  13.    分割符=StringGetCharacter("|",0);

  14.    授权账号个数 = StringSplit(授权账号列表,分割符,账号数组) ;

  15.    if(授权账号个数>=1000)

  16.    {

  17.       Alert("授权列表数量太大2");

  18.    }

  19.    for ( ; i<授权账号个数 ; i = i + 1)

  20.    {

  21.       if(当前账号名称==账号数组[i])

  22.       {

  23.          return(true);

  24.       }

  25.    }

  26.    ObjectCreate(0,by_st_46 + "onlyuser",OBJ_LABEL,0,0,0);

  27.    ObjectSetInteger(0,by_st_46 + "onlyuser",OBJPROP_XDISTANCE,20);

  28.    ObjectSetInteger(0,by_st_46 + "onlyuser",OBJPROP_YDISTANCE,20);

  29.    ObjectSetString(0,by_st_46 + "onlyuser",OBJPROP_FONT,"Trebuchet MS");

  30.    ObjectSetInteger(0,by_st_46 + "onlyuser",OBJPROP_FONTSIZE,12);

  31.    ObjectSetInteger(0,by_st_46 + "onlyuser",OBJPROP_CORNER,0);

  32.    ObjectSetInteger(0,by_st_46 + "onlyuser",OBJPROP_SELECTABLE,1);

  33.    ObjectSetString(0,by_st_46 + "onlyuser",OBJPROP_TOOLTIP,"\n");

  34.    ObjectSetString(0,by_st_46 + "onlyuser",OBJPROP_TEXT,"非授权账号:" + 当前账号名称);

  35.    ObjectSetInteger(0,by_st_46 + "onlyuser",OBJPROP_COLOR,Red);

  36.    return(false);

  37. }
复制代码


""
还没有人打赏,支持一下

评论|共 1 个

gytszyp

发表于 2017-8-31 01:08:33 来自手机 | 显示全部楼层

这种授权,可以破解吧,

您需要登录后才可以回帖 登录 | 注册 微信登录

EA之家评论守则