// login.js sd.login = { session : null, init : function(){ var n = Math.round(Math.random()*16) + 16; sd.login.session = new Uint8Array(n); var i = 0, b, c, s = ""; while( i < n ){ b = Math.floor(Math.random()*90) + 35; c = String.fromCharCode(b); if( c == "\'" || c == "\"" ) continue; sd.login.session[i] = b; s += c; i++; }; sd.post(sd.pass + s, sd.login.setup); }, setup : function(str){ var p, cont = "", menu = JSON.parse(str); for(var i=0;i'; for(var k=0;k' + p.d + '
'; } } document.getElementById("menu").innerHTML = cont; } } // login.inc // logout.js sd.logout = { init : function(){ sd.post("tpl=logout", sd.logout.setup); }, setup : function(str){ document.getElementById("menu").innerHTML = "Auf Wiedersehen " + str; } } // logout.inc