新天上碑吧 关注:589贴子:3,229
  • 3回复贴,共1

关于QQ相册无法使用(我QZONE日志)

只看楼主收藏回复

原因很简单.QZONE增加了登陆验证机制~~`当然.XML地址还是没有改.只是多了一个对于QZONE是否已经登陆.且登陆号码是否和XML的UIN相符.呵呵.终于封了这个XML的漏洞了.

下面公布源码:
第一版:
stop();
//初始化元件
Stage.scaleMode = "noScale";
Stage.showMenu = false;
System.useCodepage = true;
//使用设备代码-默认utf-8
//XML调用函数
System.security.allowDomain("*.qq.com", "qq.com", "fpdownload.macromedia.com");
System.security.allowInsecureDomain("*.qq.com", "qq.com");
function XmlLoader(XmlName, xmlurl, XmlNameFlag) {
    var XmlName:XML = new XML();
    //建立xml对象
    XmlName.load(xmlurl);
    XmlName.ignoreWhite = true;
    XmlName.onLoad = function(ok) {
        //建立XML读取过程
        if (ok) {
            //trace("XML加载完成");
            _root.photonum_txt = "数据连接完毕,请点击右侧相册菜单";
            if (XmlName.firstChild.childNodes[0].childNodes[0].attributes.albumnum == 0) {
                _root.photonum_txt = "很抱歉,该用户没有QQ相册";
            } else {
                //数组存放图片信息 
                _root.QQnumber.text = XmlName.firstChild.childNodes[0].childNodes[0].attributes.ownername+"的相册";
            }
            var myXmlinfo:Array = new Array();
            var photoname:Array = new Array();
            var clicktimes:Number = 0;
            var xmllength = XmlName.firstChild.childNodes.length;
            var tempArray:Array = new Array();
            //初始化所有内容
            //trace("初始化任务完成");
            //MCLOADING的监听过程
            for (var temp:Number = 1; temp<xmllength; temp++) {
                photoname.push(XmlName.firstChild.childNodes[temp].attributes.name);
                _root["photoname"+temp]["photoname"+temp] = XmlName.firstChild.childNodes[temp].attributes.name;
                _root["photoname"+temp].clicktimes = temp;
                _root["photoname"+temp]._visible = true;
                //trace("照片名称"+photoname);
                //存放XML图片信息资料
                //myXmlinfo.push(XmlName.firstChild.childNodes[temp].attributes.desc);
                //trace(_root["mcbg"+temp]);
                //初始化图片所在点
                _root["photoname"+temp].onPress = function() {
                    var totalnum:Number = XmlName.firstChild.childNodes[this.clicktimes].childNodes.length;
                    _root.photonum_txt = "您所查看的相册,共有"+totalnum+"张照片";
                    //trace(this.clicktimes);
                    tempArray[0] = this.clicktimes;
                    for (var j:Number = 1; j<300; j++) {
                        _root["numforphoto_mc"+j].removeMovieClip();
                    }
                    //零时变量TXC
                    var TXC:Number = 0;
                    for (var j:Number = 0; j<totalnum; j++) {
                        _root.numforphoto_mc0.duplicateMovieClip("numforphoto_mc"+j, j);
                        _root["numforphoto_mc"+j].TXC = j;
                        _root["numforphoto_mc"+j].numforphoto = j+1;
                        _root["numforphoto_mc"+j]._x = _root["numforphoto_mc"+(j-1)]._x+18;



1楼2006-08-11 16:29回复
                            if (j>=20) {
                                _root["numforphoto_mc"+j]._x = _root["numforphoto_mc"+(j-20)]._x;
                                _root["numforphoto_mc"+j]._y = _root["numforphoto_mc"+(j-20)]._y+18;
                            }
                            _root["numforphoto_mc"+j].onPress = function() {
                                _root.loadtxt = "loading";
                                _root.pic_mc._x = 6;
                                _root.pic_mc._y = 52;
                                var piclisturl:String = XmlName.firstChild.childNodes[tempArray[0]].childNodes[this.TXC].attributes.url;
                                _root.photonum_txt = XmlName.firstChild.childNodes[tempArray[0]].childNodes[this.TXC].attributes.name;
                                trace(photonum_txt);
                                //trace(piclisturl);
                                _root.pic_mc.loadMovie(piclisturl);
                                var picalpha = 0;
                                _root.onEnterFrame = function() {
                                    if (_root.pic_mc._width>0) {
                                        _root.pic_mc._alpha = picalpha;
                                        picalpha += 10;
                                        if (picalpha>=100) {
                                            delete onEnterFrame;
                                        }
                                        _root.loadtxt = "";
                                        _root.pic_mc.onPress = function() {
                                            _root.pic_mc.startDrag();
                                        };
                                        _root.pic_mc.onRelease = function() {
                                            _root.pic_mc.stopDrag();
                                            _root.pic_mc._x = 6;
                                            _root.pic_mc._y = 52;
                                        };
                                    }
                                };
                            };
                        }
                    };
                }
                _root.scale_mc.runball_mc.onPress = function() {
                    _root.scale_mc.runball_mc.startDrag(true, 0, 0, 81, 0, 0);
                    _root.onEnterFrame = function() {
                        _root.pic_mc._xscale = _root.pic_mc._yscale=_root.scale_mc.runball_mc._x/81*100;
                    };
                };
                _root.scale_mc.runball_mc.onRelease = function() {
                    _root.scale_mc.runball_mc.stopDrag();
                    delete onEnterFrame;
                };
            } else {
                _root.photonum_txt = "数据连接失败,请再次尝试或报告BUG给QQ:83448807";
            }
        };
    }
    //按钮调用函数
    //x 16 y 73
    function btnLoader(btnname, xmlname) {
        //按钮命令
        btnname.onPress = function() {
            for (var temp:Number = 0; temp<50; temp++) {
                _root["photoname"+temp]["photoname"+temp] = "";
                _root["photoname"+temp]._visible = false;
            }
            _root.photonum_txt = "正在调用数据文件";
            trace(btnname+"被点击");
    


    2楼2006-08-11 16:29
    回复
      2025-06-15 00:44:52
      广告
              var url:String = "http://qz-photo.qq.com/cgi-bin/qzone/cgi_album_xml?uin="+_root.QQnumber.text;
              //trace(url);
              if (_root.QQnumber.text*1 == _root.QQnumber.text) {
                  XmlLoader(xmlname, url, flag);
              } else {
                  _root.photonum_txt = "请不要输入非法的符号";
              }
          };
      }
      function randomNumFun() {
          var myRandomNum:Number = random(99999999);
          _root.randomNum = myRandomNum;
      }
      interTimes = setInterval(this, "randomNumFun", 100);
      var interTimestm:Number = 0;
      order_btn.onPress = function() {
          if (interTimestm%2 == 0) {
              clearInterval(interTimes);
              _root.QQnumber.text=_root.randomNum
              _root.order_btn.txt_txt.text = "start";
              interTimestm++
          } else {
              _root.order_btn.txt_txt.text = "stop";
              interTimes = setInterval(_root, "randomNumFun", 100);
              interTimestm++
          }
      };
      btnLoader(frock_btn, frockXml);


      第二版
      stop();
      //初始化元件
      //Stage.scaleMode = "noScale";
      //Stage.showMenu = false;
      System.useCodepage = true;
      //使用设备代码-默认utf-8
      //XML调用函数
      function XmlLoader(XmlName, xmlurl) {
          var XmlName:XML = new XML();
          //建立xml对象
          XmlName.load(xmlurl);
          XmlName.ignoreWhite = true;
          XmlName.onLoad = function(ok) {
              //建立XML读取过程
              if (ok) {
                  //trace("XML加载完成");
                  _root.photonum_txt = "数据连接完毕,请点击右侧相册菜单";
                  if (XmlName.firstChild.childNodes[0].childNodes[0].attributes.albumnum == 0) {
                      _root.photonum_txt = "很抱歉,该用户没有QQ相册";
                  } else {
                      //数组存放图片信息 
                      _root.QQnumber.text = XmlName.firstChild.childNodes[0].childNodes[0].attributes.ownername+"的相册";
                  }
                  var myXmlinfo:Array = new Array();
                  var photoname:Array = new Array();
                  var clicktimes:Number = 0;
                  var xmllength = XmlName.firstChild.childNodes.length;
                  var tempArray:Array = new Array();
                  var preArray:Array = new Array();
                  //初始化所有内容
                  //trace("初始化任务完成");
                  //MCLOADING的监听过程
                  for (var temp = 1; temp<xmllength; temp++) {
                      photoname.push(XmlName.firstChild.childNodes[temp].attributes.name);
                      _root["photoname"+temp]["photoname"+temp] = XmlName.firstChild.childNodes[temp].attributes.name;
                      _root["photoname"+temp].clicktimes = temp;
                      _root["photoname"+temp]._visible = true;
                      //trace("照片名称"+photoname);
                      //存放XML图片信息资料
                      //myXmlinfo.push(XmlName.firstChild.childNodes[temp].attributes.desc);
                      //trace(_root["mcbg"+temp]);
                      //初始化图片所在点
                      _root["photoname"+temp].onPress = function() {
                          var totalnum:Number = XmlName.firstChild.childNodes[this.clicktimes].childNodes.length;
                          _root.photonum_txt = "您所查看的相册,共有"+totalnum+"张照片";
      


      3楼2006-08-11 16:29
      回复
                            //trace(this.clicktimes);
                            tempArray[0] = this.clicktimes;
                            for (var j = 1; j<300; j++) {
                                _root["numforphoto_mc"+j].removeMovieClip();
                            }
                            //零时变量TXC
                            var TXC:Number = 0;
                            for (var j = 0; j<totalnum; j++) {
                                _root.numforphoto_mc0.duplicateMovieClip("numforphoto_mc"+j, j);
                                _root["numforphoto_mc"+j].TXC = j;
                                _root["numforphoto_mc"+j].numforphoto = j+1;
                                _root["numforphoto_mc"+j]._x = _root["numforphoto_mc"+(j-1)]._x+18;
                                if (j>=20) {
                                    _root["numforphoto_mc"+j]._x = _root["numforphoto_mc"+(j-20)]._x;
                                    _root["numforphoto_mc"+j]._y = _root["numforphoto_mc"+(j-20)]._y+18;
                                }
                                _root["numforphoto_mc"+j].onPress = function() {
                                    _root.loadtxt = "";
                                    var piclisturl:String = XmlName.firstChild.childNodes[tempArray[0]].childNodes[this.TXC].attributes.url;
                                    _root.photonum_txt = XmlName.firstChild.childNodes[tempArray[0]].childNodes[this.TXC].attributes.name;
                                    var picinfo:String = XmlName.firstChild.childNodes[tempArray[0]].childNodes[this.TXC].attributes.desc;
                                    _root.imagesurl.text="地址:"+piclisturl
                                    System.security.allowDomain("*");
                                    _root.createClassObject(mx.containers.ScrollPane, "my_sp", 10000);
                                    my_sp.move(_root._x+8, _root._y+48);
                                    my_sp.setSize(560, 380);
                                    my_sp.scrollDrag = true;
                                    my_sp.contentPath = piclisturl;
                                    _root.scale_mc.runball_mc.onPress = function() {
                                        _root.scale_mc.runball_mc.startDrag(true, 0, 0, 81, 0, 0);
                                        _root.onEnterFrame = function() {
                                            my_sp.move(_root._x+8, _root._y+48);
                                            my_sp.setSize(560, 380);
                                            my_sp.scrollDrag = true;
                                            my_sp.content._xscale = my_sp.content._yscale=_root.scale_mc.runball_mc._x/81*100;
                                        };
                                    };
                                    _root.scale_mc.runball_mc.onRelease = function() {
                                        _root.scale_mc.runball_mc.stopDrag();
                                        delete onEnterFrame;
                                    };
                                    //trace(my_sp.contentPath);
                                    //trace(photonum_txt);
                                    //trace(piclisturl);
                                };
                            }
                        };
                    }
                } else {
                    _root.photonum_txt = "数据连接失败,请再次尝试或报告BUG给QQ:83448807";
                }
            };
        }
        //按钮调用函数
        //x 16 y 73
        function btnLoader(btnname, xmlname) {
            //按钮命令
            btnname.onPress = function() {
                for (var temp = 0; temp<50; temp++) {
                    _root["photoname"+temp]["photoname"+temp] = "";
                    _root["photoname"+temp]._visible = false;
                }
                _root.photonum_txt = "正在调用数据文件";
                trace(btnname+"被点击");
                var url:String = "http://qz-photo.qq.com/cgi-bin/qzone/cgi_album_xml?uin="+_root.QQnumber.text;
                //trace(url);
                if (_root.QQnumber.text*1 == _root.QQnumber.text) {
                    XmlLoader(xmlname, url);
                } else {
                    _root.photonum_txt = "请不要输入非法的符号";
                }
            };
        }
        function randomNumFun() {
            var myRandomNum:Number = random(69989999)+10000;
            _root.random_mc.randomNum = myRandomNum;
        }
        interTimes = setInterval(this, "randomNumFun", 100);
        var interTimestm:Number = 0;
        _root.random_mc.order_btn.onPress = function() {
            if (interTimestm%2 == 0) {
                clearInterval(interTimes);
                _root.QQnumber.text = _root.random_mc.randomNum;
                _root.random_mc.order_btn.txt_txt.text = "start";
                interTimestm++;
            } else {
                _root.random_mc.order_btn.txt_txt.text = "stop";
                interTimes = setInterval(_root, "randomNumFun", 100);
                interTimestm++;
            }
        };
        btnLoader(frock_btn, frockXml);
        close_btn.onRelease = function() {
            fscommand("quit", true);
        };

        第三版暂时不公开.因为涉及到加密相册目前仍然存在的BUG


        4楼2006-08-11 16:29
        回复