// includes/login.inc fetch_row() ){ $a[] = $row; } foreach( $a as $b ){ $ret .= '{'; for($i=0; $i<5; $i++ ){ $ret .= $keys[$i] .'"'. $b[$i] .'",'; } $ret[ strlen($ret) - 1 ] = '},'; } $ret[ strlen($ret) - 1 ] = ']'; ?> // js/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 div = documentGetElementById('thread'); var a = JSON.parse(str); var btn = document.createElement('span'); var t = documentCreateTextNode('ansehen'); btn.appendChild(t); btn.class = 'btn'; for(var i=0; i