2010 05/19 20:36
Category : カレン・システム
ini_boot = function(){
var s = unescape(document.cookie) + ";";
Vis.sid = s.match(/SID=([a-z0-9\-]+)/) ? RegExp.$1 : null;
Vis.home = s.match(/HOME=(1)/) ? RegExp.$1 : null;
Vis.login = Vis.sid != null ? true : false;
Vis.oid = s.match(/OID=([\w\-]+)/) ? RegExp.$1 : null;
Vis.from = s.match(/FROM=([^;]+)/) ? RegExp.$1 : null;
if(Vis.login && (Vis.oid == null || !Fx.loc.match(/\?/))){
var o = new XMLHttpRequest();
o.open("get", "/cgi-bin/bbs_form.cgi?oid=yadokari", false); o.send(null);
var str = o.responseText.replace(/\r?\n/g, "");
Vis.from = str.match(/name="from" value="([^"]+)/) ? RegExp.$1 : null;
Vis.oid = str.match(/name="address" .+?eclat.cc\/home\/([\w\-]+)\//) ? RegExp.$1 : null;
}
if(Vis.from != null) cVis("from");
if(Vis.oid != null) cVis("oid");
Vis.def = Vis.oid || "yadokari";
};
ini_boot();
var s = unescape(document.cookie) + ";";
Vis.sid = s.match(/SID=([a-z0-9\-]+)/) ? RegExp.$1 : null;
Vis.home = s.match(/HOME=(1)/) ? RegExp.$1 : null;
Vis.login = Vis.sid != null ? true : false;
Vis.oid = s.match(/OID=([\w\-]+)/) ? RegExp.$1 : null;
Vis.from = s.match(/FROM=([^;]+)/) ? RegExp.$1 : null;
if(Vis.login && (Vis.oid == null || !Fx.loc.match(/\?/))){
var o = new XMLHttpRequest();
o.open("get", "/cgi-bin/bbs_form.cgi?oid=yadokari", false); o.send(null);
var str = o.responseText.replace(/\r?\n/g, "");
Vis.from = str.match(/name="from" value="([^"]+)/) ? RegExp.$1 : null;
Vis.oid = str.match(/name="address" .+?eclat.cc\/home\/([\w\-]+)\//) ? RegExp.$1 : null;
}
if(Vis.from != null) cVis("from");
if(Vis.oid != null) cVis("oid");
Vis.def = Vis.oid || "yadokari";
};
ini_boot();