il cassetto degli appunti

classifiche

 

Martedì, 22 Luglio 2008

MYBLOG

'; numero_blog += coda; creaegestisciblog = numero_blog; } else { sTestatina += coda; } } else { return null; } return "ok"; } function prova(){ alert("ciao"); } function blog_post_url(blog_id,type) { var urlBsCreate = "http://blog.alice.it/admin/index.php?url="; var urlencod = "http://blog.alice.it/admin/blog/post.php?blog_id="+blog_id+"&blog_type="+type; document.location.href=urlBsCreate+encodeURIComponent(urlencod); } function blog_admin_url_create(type) { var urlBsCreate = "http://blog.alice.it/admin/index.php?url="; var urlencod = ""; if(type =='photoblog') urlencod = "http://blog.alice.it/admin/blog/create_blog.php?blog_type=" + type + "&evnt=displayCreateBlog&partner=alice&mhash=0a0ddf07594942e908a61c0fa6079ad30c496516"; else urlencod = "http://blog.alice.it/admin/blog/create_blog.php?blog_type=weblog&evnt=displayCreateBlog&partner=alice&mhash=f4f65d51f9b6634caaa504d8128e700b848e454a"; document.location.href=urlBsCreate+encodeURIComponent(urlencod); } function blog_admin_url_create_old(type) { var urlBsCreate = "http://blog.alice.it/admin/index.php?url="; var urlencod = "http://blog.alice.it/admin/blog/create_blog.php?blog_type=" + type + "&evnt=displayCreateBlog&partner=alice&mhash=f4f65d51f9b6634caaa504d8128e700b848e454a"; document.location.href=urlBsCreate+encodeURIComponent(urlencod); } function blog_admin_url(input) { if (input == 'none') { alert('Selezionare un' opzione'); return false; } if (input) { //altrimenti document.location.href=input; } else { document.location.href='http://blog.alice.it/testhtml/tuttiblog.html'; } } var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; function encode64(input) { var output = ""; var chr1, chr2, chr3; var enc1, enc2, enc3, enc4; var i = 0; do { chr1 = input.charCodeAt(i++); chr2 = input.charCodeAt(i++); chr3 = input.charCodeAt(i++); enc1 = chr1 >> 2; enc2 = ((chr1 & 3) > 4); enc3 = ((chr2 & 15) > 6); enc4 = chr3 & 63; if (isNaN(chr2)) { enc3 = enc4 = 64; } else if (isNaN(chr3)) { enc4 = 64; } output = output + keyStr.charAt(enc1) + keyStr.charAt(enc2) + keyStr.charAt(enc3) + keyStr.charAt(enc4); } while (i > 4); chr2 = ((enc2 & 15) > 2); chr3 = ((enc3 & 3)

'; var bott='botte'; var test_btn=''; creaegestisciblog = test_btn; //funzione che disegna la testatina sulla base del valore dei cookie function designCommunityHeader(){ authe=tinsso_GetCookie("PAAA_AUTHE"); mail=tinsso_GetCookie("community.virgilio.it"); var urlRitornoNoError=document.location.href; urlRitornoNoError=urlRitornoNoError.replace("&loginError=true",""); urlRitornoNoError=urlRitornoNoError.replace("?loginError=true",""); urlRitornoNoError=urlRitornoNoError.replace("&refreshNick=true",""); urlRitornoNoError=urlRitornoNoError.replace("?refreshNick=true",""); if((null != mail)&&(null != authe)&&('_' != authe)&&((mail.split("###"))[1]==authe)) { mail_arr=mail.split('###'); var settato=(mail_arr[2].split('='))[1]; var nick=tinsso_GetCookie(mail_arr[0]+".comm.nick.virgilio.it"); nick_list = mail.split('###'); nick_list = nick_list.slice(3); var numero_nick = nick_list.length; var blogcookie = tinsso_GetCookie("BLOGDTA"); var cookieauthe = tinsso_GetCookie("PAAA_AUTHE"); var cookietestatina = tinsso_GetCookie("community.virgilio.it"); //layout bottone ESCI var logout=''; if(numero_nick>=1) { if (blogcookie != null) { //alert("blogcookie != null"); var findata = '_#' + nick_list[0]; if (blogcookie.indexOf('6ac1') == 0 || blogcookie.indexOf('6ac3') == 0) { if (stampa_dati_blog(blogcookie, nick_list[0]) == null) { //alert('Questo nick non ha i dati nel cookies, che e' di un altro, REFRESH da piattaforma'); document.write('n'); document.write('' + 'IPT>n'); } else { cambia=1; } } else { if (blogcookie == '_') { //alert('Nessun nick nei dati refresh dati blog da piattaforma'); document.write('n'); document.write('' + 'IPT>n'); } else if (blogcookie == findata) { //alert('Stesso nick in cookie blog e nessun blog aperto'); cambia=-1; } else { //alert('Nick diverso, refresh dati blog da piattaforma'); document.write('n'); document.write('' + 'IPT>n'); } } } else { if ( (cookieauthe != null) && (cookietestatina != null) ) { //alert('Nessun cookie blog, refresh dati blog da piattaforma'); document.write('n'); document.write('' + 'IPT>n'); } } //uno o pi� nick //intervallo di refresh del numero di messaggi non letti in millisecondi da parametrizzare! window.setInterval("getLocations(nick_list[0])", 600000); //chiamata a mu.jsp p�er refresh cookie e chiamata a Profile Manager /*var query_vars = read_querystring(); if(query_vars['refreshNick'] == 'true') { var nickTile=Math.floor(Math.random()*1000000); sTestatina=''; }*/ sTestatina+='

'; sTestatina+='

'; sTestatina+='

'; //verificare la diff tra escape e encodeUri var jumpto = 'http://blog.alice.it/testhome/aggiorna.php?ritorno='; for (i=1;i'+nick_list[i]+''; } sTestatina+='Crea nick'; sTestatina+='Gestione Profilo'; sTestatina+='

'; //messaggi non letti sTestatina+='

'; sTestatina+='

'; getLocations(nick_list[0]); /*if (isMLUser(mail_arr[0])){ sTestatina+='

'; } else {*/ sTestatina+='

'; //} sTestatina+=logout; sTestatina+='

'; document.getElementById('provaBott').innerHTML=creaegestisciblog; } else { if (blogcookie) document.cookie="BLOGDTA=_; path=/; domain=blog.alice.it"; //nessun nick sTestatina+='

'; /*if (isMLUser(mail_arr[0])){ sTestatina+='

'; } else {*/ sTestatina+='

'; //} sTestatina+=logout; sTestatina+='

'; } document.getElementById('mailhead').innerHTML=sTestatina; } else { //non autenticato var cuLogin=''; loginError ='false'; if (document.location.href.indexOf('loginError=true')!=-1) { loginError='true'; } var urlRitornoNoError=document.location.href; urlRitornoNoError=urlRitornoNoError.replace("&loginError=true",""); urlRitornoNoError=urlRitornoNoError.replace("?loginError=true",""); cuLogin+=''; document.getElementById('mailhead').innerHTML=cuLogin; var bottCrea =''; document.getElementById('provaBott').innerHTML=bottCrea; } } designCommunityHeader(); //-->

classificheultima modifica: 2008-07-22T00:12:18+02:00da
Reposta per primo quest’articolo