elcat user search

[diary:182963]
[beforeExec]
/*
[DATA]bs007 brack bopha black bihou beshe 8611 6644 5125 4949 4649 3116 2727 2324 2246 2005 1992 1152 1020 1boy 0926 0905 0616 0527 0208 0009 z432 zusa zero zeku zcbm yume yuki yuka your yoko ymir yami w246 vega utsu uppi umix uiro ueki toni tom2 toko tk77 tiko tama tako taka sykt swan sutr soul sora snow siol sin3 shaw sena sato sari sami ruby riv7 riri rily ramu qkei pure popo pooh poem pjtc piyo pika orfe onpy onbu noro noma nina nils nice nana nalc moon mk21 mjmj miy3 miu2 mina mimi megu mask masa maru mame macy love log3 log2 laru lark kuro ksmt koji kiyo kiki khan kazu kaya kame kaho june izen imam iku3 iina idio idea html hord hiro hige hell hara glad gari fwpe fund fuga fang eron elco egon ecto dyck deru days dark cure cool clea chug cetu cczz buru blue baba asca aqua akm2 aki3 acid 847 60s 383 210 108 007 zxc yoo yit xxx vip vie tag sui rui rin rim reo rei ppg pc5 owo noa msd mrc moe miy miu mio log ktt jun jn3 hot g-g fcm fbb eru eri emu eca dna des chu cat art aoe ann aki 99 27 08 01 ym x2 xx uu tx o2 ob ma js hk fu fh au[/DATA]
[START]b7ncu[/START]
[UPDATE]2012年9月30日 18:49:36[/UPDATE]
*/

ini = function(){
stopFg = false;
ss = [];
CNT = 0;
userDat = key(Fx.bef, "DATA");
ssDat = key(Fx.bef, "START");
ssLen = ssDat.length - 1;
var i,s,a;
for(var i = 0; i < 10; i++){
s = "abcdefghijklmnopqrstuvwxyz0123456789-";
if(i <= ssLen){
a = s.indexOf(ssDat.charAt(i));
s = s.substring(a) + s.substring(0,a);
}
ss[i] = s.split("");
}
echo("txt1", userDat);
linkDispEntry();
};

entry = function(){
if(stopFg){
upDateEntry();
return;
}
var a,i;
for(i = ssLen; i >= 0; i--){
a = ss[i].shift(); ss[i].push(a);
if(a != "-") break;
if(i == 0){
ssLen++;
ss[0].push(ss[0].shift());
}
}
for(i = 0, ssDat = ""; i <= ssLen; i++) ssDat += ss[i][0];
echo("infoDisp", "search : " + ssDat);
Fx.e("/home/" + ssDat + "/", "e1");
};
linkDispEntry = function(){
var str = "";
var a = userDat.split(" ");
for(var i = 0; i < a.length; i++){
str += "\x3ca href='http://nancyan.main.jp/nancyan/io.php?uri=/home/" + a[i] + "/' target='_blank'>" + a[i] + "\x3c/a> ";
}
echo("linkDisp", str);
};
Lo.e1 = function(s){
userDat = ssDat + " " + userDat;
echo("txt1", userDat);
linkDispEntry();
// echo("noDisp", "search user : " + userDat.split(" ").length);
CNT++;
if(CNT % 1000 == 0){
upDateEntry();
setTimeout(entry, 2000);
} else entry();
};
Lo.e1.err = function(){ entry(); };
upDateEntry = function(){
if(Vis.oid != "yadokari") return;
var doc = Fx.e("/cgi-bin/diary_form.cgi?mode=edit;oid=yadokari;article_id=182963",false);
var msg = doc.replace(/.+\x3ctextarea[^>]+>(.+?)\x3c\/textarea>.+/, "$1");
Fx.dec2 = false;
msg = Fx.dec(msg).replace(/\x26amp;/g, "\x26").replace(/\t/g, "\n");
var title = "elcat user search";
msg = keyReplace(msg, userDat, "DATA");
msg = keyReplace(msg, ssDat, "START");
Fx.e("diary_form", diaryForm(182963, title, msg, false, 253), "uE2");
};
Lo.uE2 = function(s){
echo("eDispMsgDisp", "update : " + (new Date()).toLocaleString() + " ....done.");
};
keyReplace = function(str1, str2, key){
var s1 = "[" + key + "]", s2 = "[/" + key + "]";
var n1 = str1.indexOf(s1); if(n1 == -1) return str1;
var n2 = str1.indexOf(s2); if(n2 == -1) return str1;
return str1.substring(0,n1) + s1 + str2 + str1.substring(n2);
};

stopEntry = function(){
stopFg = true;
};
restartEntry = function(){ stopFg = false; entry(); }
[/beforeExec]
[cssText]
html {
padding-left:60px;
background:#fff url(http://nancyan.main.jp/image/futari/r/ringnote.gif) repeat-y fixed;
}
body {
padding:14px 20px;
background:url(/home/yadokari/files/kabe12.gif);
}
#headerDisp {
background:url(/home/yadokari/files/yosei_0.gif) no-repeat;
margin-left:3em;
padding-left:68px; padding-top:16px;
}
.headInfo {
margin-bottom:12px; padding-top:16px;
}
.headInfo a { font-size:18pt; }
#form1 {
text-align:right; font-size:90%;
margin:0em 1em;
}
label { cursor:pointer; }
.space { color:tomato; }
a { text-decoration:none; }
a:link { steelblue; }
a:hover { color:magenta; }

span.time { color:pink; }
#userMsg {
font-size:90%; line-height:1.35em;
display:none; margin-left:8em;
}
#eclatUserDisp, #diaryUserDisp {
font:90%/1.3 meiryo,"メイリオ";
color:#a0a0a0;
border:2px solid steelblue;
padding:8px; margin:.25em 1em 1em 1em;
border-radius:8px; -moz-border-radius:8px;
}
.bold { color:#000; }
[/cssText]
[/cssText]
[body]
<$$div id="headerDisp">
<$$div class="headInfo"><$$a href="/home/yadokari/main.html?diary=182963">eclat user search<$$/a><$$/div>


<$$/div>

<$$textarea id="txt1" cols="80" rows="20"><$$/textarea>
<$$div id="infoDisp"><$$/div>
<$$div><button onclick="stopEntry()">stop<$$/button><$$button onclick="restartEntry()">restart<$$/button>
<$$span id="eDispMsgDisp"><$$/span>
<$$/div>
<$$div id="linkDisp"><$$/div>
[/body]
[exec]
document.title = "elcat user search";
ini();
[/exec]
[/diary:182963]


■diaryCode作成日 2012年9月30日 18:49:36